diff options
author | Maks Naumov <maksqwe1@ukr.net> | 2015-05-03 13:34:49 +0300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-05-04 18:24:21 +0200 |
commit | 9343386b91c3de6b5f238169d34390afc1ee069f (patch) | |
tree | f20b18ab46ea56fafe8ffa12dd91e65e444156c6 /source3/auth | |
parent | c3c820a661c092de31d56c16c8cd1ec57999d2f7 (diff) | |
download | samba-9343386b91c3de6b5f238169d34390afc1ee069f.tar.gz |
s3: Fix pam_authenticate() when lp_null_passwords() is true
(PAM_SILENT | lp_null_passwords() ? 0 : PAM_DISALLOW_NULL_AUTHTOK)
is always 0 when lp_null_passwords() == true.
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/pampass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c index bde7c226250..2a3195c8b42 100644 --- a/source3/auth/pampass.c +++ b/source3/auth/pampass.c @@ -524,7 +524,7 @@ static NTSTATUS smb_pam_auth(pam_handle_t *pamh, const char *user) */ DEBUG(4,("smb_pam_auth: PAM: Authenticate User: %s\n", user)); - pam_error = pam_authenticate(pamh, PAM_SILENT | lp_null_passwords() ? 0 : PAM_DISALLOW_NULL_AUTHTOK); + pam_error = pam_authenticate(pamh, PAM_SILENT | (lp_null_passwords() ? 0 : PAM_DISALLOW_NULL_AUTHTOK)); switch( pam_error ){ case PAM_AUTH_ERR: DEBUG(2, ("smb_pam_auth: PAM: Authentication Error for user %s\n", user)); |