]> git.sur5r.net Git - openldap/commitdiff
fix ACI as a consequence of ITS#5804 (this is a hack; would need an API change)
authorPierangelo Masarati <ando@openldap.org>
Fri, 28 Nov 2008 23:15:03 +0000 (23:15 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 28 Nov 2008 23:15:03 +0000 (23:15 +0000)
servers/slapd/aci.c

index 88232f33e57b2ae8a90e98df1d72bd57e8cc04b1..5691bbc817fc436c42f8ba91a67bc46f5acdb870 100644 (file)
@@ -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;