]> git.sur5r.net Git - openldap/commitdiff
Fix authz return code checking
authorHoward Chu <hyc@openldap.org>
Tue, 29 Sep 2009 08:30:21 +0000 (08:30 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 29 Sep 2009 08:30:21 +0000 (08:30 +0000)
contrib/slapd-modules/nssov/nss-ldapd/nss/pam.c

index abeae198e36b0f3c6979241276eed78241a2b248..3a35c4d5a761d44625a4a29b7b9590d633ef0e47 100644 (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) {