summaryrefslogtreecommitdiff
path: root/usr/src/cmd/login
diff options
context:
space:
mode:
authorJoep Vesseur <Joep.Vesseur@Sun.COM>2008-11-15 21:52:23 +0100
committerJoep Vesseur <Joep.Vesseur@Sun.COM>2008-11-15 21:52:23 +0100
commit57c407852ad197a758d9fc3212bd9484cacf2a69 (patch)
tree626f102c94ec1b57cb5e6d8f2f72340bae6f7029 /usr/src/cmd/login
parent728bdc9be5faf84b5dca42f545967bd4910d608e (diff)
downloadillumos-joyent-57c407852ad197a758d9fc3212bd9484cacf2a69.tar.gz
PSARC 2007/700 Enforcement of PASSREQ=YES
4652487 pam_unix_account does not honor PAM_DISALLOW_NULL_AUTHTOK for root 5070350 pam_unix account allows users with blank passwords if aging prevents change 6494527 PASSREQ not always enforced
Diffstat (limited to 'usr/src/cmd/login')
-rw-r--r--usr/src/cmd/login/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/login/login.c b/usr/src/cmd/login/login.c
index 98e42468e2..39b0fe76d1 100644
--- a/usr/src/cmd/login/login.c
+++ b/usr/src/cmd/login/login.c
@@ -958,7 +958,7 @@ verify_passwd(void)
{
int error;
char *user;
- int flag = 0;
+ int flag = (Passreqflag ? PAM_DISALLOW_NULL_AUTHTOK : 0);
/*
* PAM authenticates the user for us.