From e6102ec99ea72dc5f850ef8a2d7a517a989ec46c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 18 Sep 2009 02:39:35 +0000 Subject: [PATCH] Fix: use attr_valfind, not value_find_ex --- contrib/slapd-modules/nssov/pam.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/slapd-modules/nssov/pam.c b/contrib/slapd-modules/nssov/pam.c index bf943a3cf4..adabdd5622 100644 --- a/contrib/slapd-modules/nssov/pam.c +++ b/contrib/slapd-modules/nssov/pam.c @@ -400,9 +400,9 @@ 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 || value_find_ex( nssov_pam_host_ad, + if (!a || attr_valfind( a, SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH, - a->a_vals, &global_host_bv, op->o_tmpmemctx )) { + &global_host_bv, NULL, op->o_tmpmemctx )) { rc = NSLCD_PAM_PERM_DENIED; authzmsg = hostmsg; goto finish; @@ -410,9 +410,9 @@ 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 || value_find_ex( nssov_pam_svc_ad, + if (!a || attr_valfind( a, SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH, - a->a_vals, &svc, op->o_tmpmemctx )) { + &svc, NULL, op->o_tmpmemctx )) { rc = NSLCD_PAM_PERM_DENIED; authzmsg = svcmsg; goto finish; -- 2.39.5