summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-04-23 18:38:37 +0000
committerKevin Steves <stevesk@pobox.com>2001-04-23 18:38:37 +0000
commit706e7a9cf93fad3a8b0b7cd524c44d9e17e64da7 (patch)
treeb0b742e123df1fdcc96bd562c7119c836f338434
parent265fb440e777b05795b6643058032af75d7f5b0e (diff)
- (stevesk) auth-pam.c: use PERMIT_NO_PASSWD
-rw-r--r--ChangeLog3
-rw-r--r--auth-pam.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 19fe40b59..3773ac9b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
4 [ssh-keygen.1 ssh.1 sshd.8] 4 [ssh-keygen.1 ssh.1 sshd.8]
5 document hostbased and other cleanup 5 document hostbased and other cleanup
6 - (stevesk) start_pam() doesn't use DNS now for sshd -u0. 6 - (stevesk) start_pam() doesn't use DNS now for sshd -u0.
7 - (stevesk) auth-pam.c: use PERMIT_NO_PASSWD
7 8
820010422 920010422
9 - OpenBSD CVS Sync 10 - OpenBSD CVS Sync
@@ -5232,4 +5233,4 @@
5232 - Wrote replacements for strlcpy and mkdtemp 5233 - Wrote replacements for strlcpy and mkdtemp
5233 - Released 1.0pre1 5234 - Released 1.0pre1
5234 5235
5235$Id: ChangeLog,v 1.1162 2001/04/23 17:55:26 stevesk Exp $ 5236$Id: ChangeLog,v 1.1163 2001/04/23 18:38:37 stevesk Exp $
diff --git a/auth-pam.c b/auth-pam.c
index 91854a400..2b3308a97 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -35,7 +35,7 @@
35 35
36extern char *__progname; 36extern char *__progname;
37 37
38RCSID("$Id: auth-pam.c,v 1.36 2001/04/23 17:28:29 stevesk Exp $"); 38RCSID("$Id: auth-pam.c,v 1.37 2001/04/23 18:38:37 stevesk Exp $");
39 39
40#define NEW_AUTHTOK_MSG \ 40#define NEW_AUTHTOK_MSG \
41 "Warning: Your password has expired, please change it now" 41 "Warning: Your password has expired, please change it now"
@@ -209,7 +209,7 @@ int auth_pam_password(struct passwd *pw, const char *password)
209 /* deny if no user. */ 209 /* deny if no user. */
210 if (pw == NULL) 210 if (pw == NULL)
211 return 0; 211 return 0;
212 if (pw->pw_uid == 0 && options.permit_root_login == 2) 212 if (pw->pw_uid == 0 && options.permit_root_login == PERMIT_NO_PASSWD)
213 return 0; 213 return 0;
214 if (*password == '\0' && options.permit_empty_passwd == 0) 214 if (*password == '\0' && options.permit_empty_passwd == 0)
215 return 0; 215 return 0;