X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Facl.c;h=50511134b12f55537979035c1bc034cc1eae0c75;hb=17f95a3fd30247a0735a3526d85b46178304748d;hp=de9cda67bc4343afdb164b89394f242ffe84df70;hpb=827ea96e163abe93717ba2672f32abf60de88b6b;p=openldap diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index de9cda67bc..50511134b1 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -1,7 +1,7 @@ /* acl.c - routines to parse and check acl's */ /* $OpenLDAP$ */ /* - * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ @@ -121,7 +121,7 @@ access_allowed( { int ret = 1; int count; - AccessControl *a; + AccessControl *a = NULL; #ifdef LDAP_DEBUG char accessmaskbuf[ACCESSMASK_MAXLEN]; @@ -888,7 +888,8 @@ dn_match_cleanup:; at != NULL; at = attrs_find( at->a_next, b->a_dn_at ) ) { - if( value_find( b->a_dn_at, at->a_vals, &bv ) == 0 ) { + if( value_find_ex( b->a_dn_at, + SLAP_MR_VALUE_NORMALIZED_MATCH, at->a_vals, &bv ) == 0 ) { /* found it */ match = 1; break; @@ -1801,7 +1802,7 @@ aci_mask( at != NULL; at = attrs_find( at->a_next, ad ) ) { - if (value_find( ad, at->a_vals, &bv) == 0 ) { + if (value_find_ex( ad, SLAP_MR_VALUE_NORMALIZED_MATCH, at->a_vals, &bv) == 0 ) { rc = 1; break; }