diff options
author | gww <gww@eng.sun.com> | 2009-03-16 09:28:25 -0700 |
---|---|---|
committer | gww <gww@eng.sun.com> | 2009-03-16 09:28:25 -0700 |
commit | 5477a4d989e6d7fd2f930dff9db421fbc4370d07 (patch) | |
tree | f9c7008f0e0d604a74557cd63d1ad63b476ec806 /usr/src/lib/passwdutil/ldap_attr.c | |
parent | 00d8429482fd21aa3a8dd58d0d47a1fcb7bf8db1 (diff) | |
download | illumos-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.c | 5 |
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}"); |