mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 13:40:37 -05:00
Fix adding ACLs to specific DBs vs global/frontend
This commit is contained in:
parent
e1ec64aaee
commit
d38dd74818
1 changed files with 8 additions and 0 deletions
|
|
@ -1243,6 +1243,14 @@ config_generic(ConfigArgs *c) {
|
|||
break;
|
||||
|
||||
case CFG_ACL:
|
||||
/* Don't append to the global ACL if we're on a specific DB */
|
||||
if ( c->be != frontendDB && frontendDB->be_acl && c->valx == -1 ) {
|
||||
AccessControl *a;
|
||||
c->valx = 0;
|
||||
for ( a=c->be->be_acl; a && a != frontendDB->be_acl;
|
||||
a = a->acl_next )
|
||||
c->valx++;
|
||||
}
|
||||
if ( parse_acl(c->be, c->fname, c->lineno, c->argc, c->argv, c->valx ) ) {
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue