mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fix ACI as a consequence of ITS#5804 (this is a hack; would need an API change)
This commit is contained in:
parent
74636cfb51
commit
a7b4be5b33
@ -400,11 +400,15 @@ aci_group_member (
|
|||||||
if ( grp_oc != NULL && grp_ad != NULL ) {
|
if ( grp_oc != NULL && grp_ad != NULL ) {
|
||||||
char buf[ ACI_BUF_SIZE ];
|
char buf[ ACI_BUF_SIZE ];
|
||||||
struct berval bv, ndn;
|
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_len = sizeof( buf ) - 1;
|
||||||
bv.bv_val = (char *)&buf;
|
bv.bv_val = (char *)&buf;
|
||||||
if ( acl_string_expand( &bv, &subjdn,
|
if ( acl_string_expand( &bv, &subjdn,
|
||||||
e->e_ndn, nmatch, matches ) )
|
&e->e_nname, NULL, &amatches ) )
|
||||||
{
|
{
|
||||||
rc = LDAP_OTHER;
|
rc = LDAP_OTHER;
|
||||||
goto done;
|
goto done;
|
||||||
|
Loading…
Reference in New Issue
Block a user