mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
More ACL to dn="" bug fixing... and add test006-acl check
This commit is contained in:
parent
98a2e41911
commit
ef3d895cb8
@ -118,7 +118,9 @@ parse_acl(
|
||||
}
|
||||
|
||||
if ( strcasecmp( argv[i], "*" ) == 0 ) {
|
||||
if( a->acl_dn_pat.bv_len != 0 ) {
|
||||
if( a->acl_dn_pat.bv_len ||
|
||||
( a->acl_dn_style != ACL_STYLE_REGEX ) )
|
||||
{
|
||||
fprintf( stderr,
|
||||
"%s: line %d: dn pattern"
|
||||
" already specified in to clause.\n",
|
||||
@ -142,7 +144,9 @@ parse_acl(
|
||||
}
|
||||
|
||||
if ( strcasecmp( left, "dn" ) == 0 ) {
|
||||
if( a->acl_dn_pat.bv_len != 0 ) {
|
||||
if( a->acl_dn_pat.bv_len != 0 ||
|
||||
( a->acl_dn_style != ACL_STYLE_REGEX ) )
|
||||
{
|
||||
fprintf( stderr,
|
||||
"%s: line %d: dn pattern"
|
||||
" already specified in to clause.\n",
|
||||
@ -230,7 +234,9 @@ parse_acl(
|
||||
a->acl_dn_pat.bv_len = 0;
|
||||
}
|
||||
|
||||
if( a->acl_dn_pat.bv_len != 0 ) {
|
||||
if( a->acl_dn_pat.bv_len != 0 ||
|
||||
( a->acl_dn_style != ACL_STYLE_REGEX ) )
|
||||
{
|
||||
if ( a->acl_dn_style != ACL_STYLE_REGEX ) {
|
||||
struct berval bv;
|
||||
rc = dnNormalize2( NULL, &a->acl_dn_pat, &bv);
|
||||
|
@ -34,6 +34,9 @@ rootpw secret
|
||||
# cn=monitor, cn=schema, and cn=config
|
||||
#
|
||||
|
||||
access to dn="" by * read
|
||||
access to dn.base="" by * read
|
||||
|
||||
access to attr=objectclass
|
||||
by * =rsc stop
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user