mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-11 09:22:54 -05:00
for consistency, always allow 'onelevel' as an alias for 'one' in dnstyle
This commit is contained in:
parent
2b44c72d84
commit
39574bcb5f
1 changed files with 4 additions and 2 deletions
|
|
@ -184,7 +184,8 @@ parse_acl(
|
|||
a->acl_dn_style = ACL_STYLE_BASE;
|
||||
ber_str2bv( right, 0, 1, &a->acl_dn_pat );
|
||||
|
||||
} else if ( strcasecmp( style, "one" ) == 0 ) {
|
||||
} else if ( strcasecmp( style, "onelevel" ) == 0
|
||||
|| strcasecmp( style, "one" ) == 0 ) {
|
||||
a->acl_dn_style = ACL_STYLE_ONE;
|
||||
ber_str2bv( right, 0, 1, &a->acl_dn_pat );
|
||||
|
||||
|
|
@ -401,7 +402,8 @@ parse_acl(
|
|||
{
|
||||
sty = ACL_STYLE_BASE;
|
||||
|
||||
} else if ( strcasecmp( style, "one" ) == 0 ) {
|
||||
} else if ( strcasecmp( style, "onelevel" ) == 0 ||
|
||||
strcasecmp( style, "one" ) == 0 ) {
|
||||
sty = ACL_STYLE_ONE;
|
||||
|
||||
} else if ( strcasecmp( style, "subtree" ) == 0 ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue