mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-26 16:52:55 -05:00
ITS#2707: fix 'access to dn.subtree="" by ...' directives
This commit is contained in:
parent
a1b9d3148e
commit
6f39517929
1 changed files with 8 additions and 2 deletions
|
|
@ -169,8 +169,14 @@ parse_acl(
|
|||
} else if ( strcasecmp( style, "subtree" ) == 0
|
||||
|| strcasecmp( style, "sub" ) == 0 )
|
||||
{
|
||||
a->acl_dn_style = ACL_STYLE_SUBTREE;
|
||||
ber_str2bv( right, 0, 1, &a->acl_dn_pat );
|
||||
if( *right == '\0' ) {
|
||||
a->acl_dn_pat.bv_val = ch_strdup( "*" );
|
||||
a->acl_dn_pat.bv_len = 1;
|
||||
|
||||
} else {
|
||||
a->acl_dn_style = ACL_STYLE_SUBTREE;
|
||||
ber_str2bv( right, 0, 1, &a->acl_dn_pat );
|
||||
}
|
||||
|
||||
} else if ( strcasecmp( style, "children" ) == 0 ) {
|
||||
a->acl_dn_style = ACL_STYLE_CHILDREN;
|
||||
|
|
|
|||
Loading…
Reference in a new issue