From e2dd639931a877a9cce3162397f110fe339a5107 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 29 Sep 2009 08:30:21 +0000 Subject: [PATCH] Fix authz return code checking --- contrib/slapd-modules/nssov/nss-ldapd/nss/pam.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/slapd-modules/nssov/nss-ldapd/nss/pam.c b/contrib/slapd-modules/nssov/nss-ldapd/nss/pam.c index abeae198e3..3a35c4d5a7 100644 --- a/contrib/slapd-modules/nssov/nss-ldapd/nss/pam.c +++ b/contrib/slapd-modules/nssov/nss-ldapd/nss/pam.c @@ -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) { -- 2.39.5