Fix authz return code checking

This commit is contained in:
Howard Chu 2009-09-29 08:30:21 +00:00
parent 992a20ee0a
commit e2dd639931

View file

@ -441,6 +441,7 @@ int pam_sm_acct_mgmt(
if (rc != PAM_IGNORE)
pam_warn(appconv, "LDAP authorization failed", PAM_ERROR_MSG, no_warn);
} else {
rc = ctx2.authz;
if (ctx2.authzmsg && ctx2.authzmsg[0])
pam_warn(appconv, ctx2.authzmsg, PAM_TEXT_INFO, no_warn);
if (ctx2.authz == PAM_SUCCESS) {