1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-16 15:11:52 +00:00

Don't put an extra space after password prompts, because it violates POLA,

makes FreeBSD inconsistent with previous releases and "other unices" as well
as with some internal password-asking services (e.g. ftp) within the same
release.
This commit is contained in:
Maxim Sobolev 2001-10-25 15:51:50 +00:00
parent 6df68c6102
commit bc3a4bf55d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85485
2 changed files with 7 additions and 7 deletions

View File

@ -228,9 +228,9 @@ static const char *compat_princ_component(krb5_context, krb5_principal, int);
static void compat_free_data_contents(krb5_context, krb5_data *);
#define USER_PROMPT "Username: "
#define PASSWORD_PROMPT "Password: "
#define NEW_PASSWORD_PROMPT "New Password: "
#define NEW_PASSWORD_PROMPT_2 "New Password (again): "
#define PASSWORD_PROMPT "Password:"
#define NEW_PASSWORD_PROMPT "New Password:"
#define NEW_PASSWORD_PROMPT_2 "New Password (again):"
enum { PAM_OPT_AUTH_AS_SELF=PAM_OPT_STD_MAX, PAM_OPT_CCACHE, PAM_OPT_FORWARDABLE, PAM_OPT_NO_CCACHE, PAM_OPT_REUSE_CCACHE };

View File

@ -60,10 +60,10 @@ __FBSDID("$FreeBSD$");
#include "pam_mod_misc.h"
#define USER_PROMPT "Username: "
#define PASSWORD_PROMPT "Password: "
#define PASSWORD_PROMPT_EXPIRED "\nPassword expired\nOld Password: "
#define NEW_PASSWORD_PROMPT_1 "New Password: "
#define NEW_PASSWORD_PROMPT_2 "New Password (again): "
#define PASSWORD_PROMPT "Password:"
#define PASSWORD_PROMPT_EXPIRED "\nPassword expired\nOld Password:"
#define NEW_PASSWORD_PROMPT_1 "New Password:"
#define NEW_PASSWORD_PROMPT_2 "New Password (again):"
#define PASSWORD_HASH "md5"
#define DEFAULT_WARN (2L * 7L * 86400L) /* Two weeks */
#define MAX_TRIES 3