summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-05-04 14:28:28 +0000
committerGerald Carter <jerry@samba.org>2001-05-04 14:28:28 +0000
commitd5d6f01aaf8d344bb44dbe047c2f760ca220529e (patch)
tree03071ff8ba36d48a79d18d981cc02ba96cc510c2
parent09b287e1782938bc4472b88921ed1604eb91ac27 (diff)
downloadsamba-d5d6f01aaf8d344bb44dbe047c2f760ca220529e.tar.gz
samba-d5d6f01aaf8d344bb44dbe047c2f760ca220529e.tar.xz
samba-d5d6f01aaf8d344bb44dbe047c2f760ca220529e.zip
merge from 2.2 in password_ok() to ensure that we check the
return code from smb_pam_accountcheck()
-rw-r--r--source/smbd/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c
index 03d96bebc05..5820afacc8d 100644
--- a/source/smbd/password.c
+++ b/source/smbd/password.c
@@ -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,