From: Pierangelo Masarati Date: Fri, 28 Nov 2008 23:15:03 +0000 (+0000) Subject: fix ACI as a consequence of ITS#5804 (this is a hack; would need an API change) X-Git-Tag: ACLCHECK_0~1041 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7b4be5b3372758611a72633565071360d9c23e8;p=openldap fix ACI as a consequence of ITS#5804 (this is a hack; would need an API change) --- diff --git a/servers/slapd/aci.c b/servers/slapd/aci.c index 88232f33e5..5691bbc817 100644 --- a/servers/slapd/aci.c +++ b/servers/slapd/aci.c @@ -400,11 +400,15 @@ aci_group_member ( if ( grp_oc != NULL && grp_ad != NULL ) { char buf[ ACI_BUF_SIZE ]; struct berval bv, ndn; + AclRegexMatches amatches = { 0 }; + + amatches.dn_count = nmatch; + AC_MEMCPY( amatches.dn_data, matches, sizeof( amatches.dn_data ) ); bv.bv_len = sizeof( buf ) - 1; bv.bv_val = (char *)&buf; if ( acl_string_expand( &bv, &subjdn, - e->e_ndn, nmatch, matches ) ) + &e->e_nname, NULL, &amatches ) ) { rc = LDAP_OTHER; goto done;