summaryrefslogtreecommitdiff
path: root/usr/src/lib/passwdutil/ldap_attr.c
diff options
context:
space:
mode:
authorgww <gww@eng.sun.com>2009-03-16 09:28:25 -0700
committergww <gww@eng.sun.com>2009-03-16 09:28:25 -0700
commit5477a4d989e6d7fd2f930dff9db421fbc4370d07 (patch)
treef9c7008f0e0d604a74557cd63d1ad63b476ec806 /usr/src/lib/passwdutil/ldap_attr.c
parent00d8429482fd21aa3a8dd58d0d47a1fcb7bf8db1 (diff)
downloadillumos-joyent-5477a4d989e6d7fd2f930dff9db421fbc4370d07.tar.gz
6812488 account lockout needs to perform additional checks
Diffstat (limited to 'usr/src/lib/passwdutil/ldap_attr.c')
-rw-r--r--usr/src/lib/passwdutil/ldap_attr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/lib/passwdutil/ldap_attr.c b/usr/src/lib/passwdutil/ldap_attr.c
index 7a29614bf3..c0bb113ec0 100644
--- a/usr/src/lib/passwdutil/ldap_attr.c
+++ b/usr/src/lib/passwdutil/ldap_attr.c
@@ -699,8 +699,9 @@ ldap_update(attrlist *items, pwu_repository_t *rep, void *buf)
break; /* not managing passwordAccount */
if (spw->sp_pwdp == NULL) {
spw->sp_pwdp = LOCKSTRING;
- } else if (strncmp(spw->sp_pwdp, LOCKSTRING,
- sizeof (LOCKSTRING)-1) != 0) {
+ } else if ((strncmp(spw->sp_pwdp, LOCKSTRING,
+ sizeof (LOCKSTRING)-1) != 0) &&
+ (strcmp(spw->sp_pwdp, NOLOGINSTRING) != 0)) {
len = sizeof (LOCKSTRING)-1 +
strlen(spw->sp_pwdp) + 1 +
sizeof ("{crypt}");