Commit 3801b179 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Fix authz return code checking

parent fbeda733
...@@ -441,6 +441,7 @@ int pam_sm_acct_mgmt( ...@@ -441,6 +441,7 @@ int pam_sm_acct_mgmt(
if (rc != PAM_IGNORE) if (rc != PAM_IGNORE)
pam_warn(appconv, "LDAP authorization failed", PAM_ERROR_MSG, no_warn); pam_warn(appconv, "LDAP authorization failed", PAM_ERROR_MSG, no_warn);
} else { } else {
rc = ctx2.authz;
if (ctx2.authzmsg && ctx2.authzmsg[0]) if (ctx2.authzmsg && ctx2.authzmsg[0])
pam_warn(appconv, ctx2.authzmsg, PAM_TEXT_INFO, no_warn); pam_warn(appconv, ctx2.authzmsg, PAM_TEXT_INFO, no_warn);
if (ctx2.authz == PAM_SUCCESS) { if (ctx2.authz == PAM_SUCCESS) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment