]> git.sur5r.net Git - openldap/commitdiff
Fix usage flags for normalizing
authorHoward Chu <hyc@openldap.org>
Tue, 29 Sep 2009 08:11:52 +0000 (08:11 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 29 Sep 2009 08:11:52 +0000 (08:11 +0000)
contrib/slapd-modules/nssov/pam.c

index adabdd56226ebad1db54509138d6eb5037f9ced6..a6d7a0eb8c3b00bc21f4f411bf2f785d58a27806 100644 (file)
@@ -401,7 +401,8 @@ int pam_authz(nssov_info *ni,TFILE *fp,Operation *op)
        if ((ni->ni_pam_opts & NI_PAM_USERHOST) && nssov_pam_host_ad) {
                a = attr_find(e->e_attrs, nssov_pam_host_ad);
                if (!a || attr_valfind( a,
-                       SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH,
+                       SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH |
+                       SLAP_MR_VALUE_OF_SYNTAX,
                        &global_host_bv, NULL, op->o_tmpmemctx )) {
                        rc = NSLCD_PAM_PERM_DENIED;
                        authzmsg = hostmsg;
@@ -411,7 +412,8 @@ int pam_authz(nssov_info *ni,TFILE *fp,Operation *op)
        if ((ni->ni_pam_opts & NI_PAM_USERSVC) && nssov_pam_svc_ad) {
                a = attr_find(e->e_attrs, nssov_pam_svc_ad);
                if (!a || attr_valfind( a,
-                       SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH,
+                       SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH |
+                       SLAP_MR_VALUE_OF_SYNTAX,
                        &svc, NULL, op->o_tmpmemctx )) {
                        rc = NSLCD_PAM_PERM_DENIED;
                        authzmsg = svcmsg;