1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

merge from 2.2 in password_ok() to ensure that we check the

return code from smb_pam_accountcheck()
(This used to be commit d5d6f01aaf)
This commit is contained in:
Gerald Carter 2001-05-04 14:28:28 +00:00
parent e62b35ac69
commit 1f7a451c1e

View File

@ -626,7 +626,7 @@ BOOL password_ok(char *user, char *password, int pwlen, struct passwd *pwd)
*/
if (ret)
return smb_pam_accountcheck(user);
return (smb_pam_accountcheck(user) == NT_STATUS_NOPROBLEMO);
}
return pass_check(user, password, pwlen, pwd,