mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#2285 string_expand for acl set
This commit is contained in:
parent
c464b299d8
commit
cbf7b063e3
@ -982,7 +982,16 @@ dn_match_cleanup:;
|
||||
}
|
||||
|
||||
if ( b->a_set_pat.bv_len != 0 ) {
|
||||
if (aci_match_set( &b->a_set_pat, be, e, conn, op, 0 ) == 0) {
|
||||
struct berval bv;
|
||||
char buf[ACL_BUF_SIZE];
|
||||
if( b->a_set_style == ACL_STYLE_REGEX ){
|
||||
bv.bv_len = sizeof(buf) - 1;
|
||||
bv.bv_val = buf;
|
||||
string_expand( &bv, &b->a_set_pat, e->e_ndn, matches );
|
||||
}else{
|
||||
bv = b->a_set_pat;
|
||||
}
|
||||
if (aci_match_set( &bv, be, e, conn, op, 0 ) == 0) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user