mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
ITS#8108 silence rootdn check on hidden backends
select_backend() skips hidden backends so it fails to match the rootdn of a database that has been hidden. rootpw tries to see if the rootdn matches the current backend but the check fails when hidden. Ignore this check on hidden backends since one cannot Bind to a hidden backend anyway.
This commit is contained in:
parent
4f82c10120
commit
d7bf6fcaae
1 changed files with 1 additions and 1 deletions
|
|
@ -3285,7 +3285,7 @@ config_rootpw(ConfigArgs *c) {
|
|||
}
|
||||
|
||||
tbe = select_backend(&c->be->be_rootndn, 0);
|
||||
if(tbe != c->be) {
|
||||
if(tbe != c->be && !SLAP_DBHIDDEN( c->be )) {
|
||||
snprintf( c->cr_msg, sizeof( c->cr_msg ), "<%s> can only be set when rootdn is under suffix",
|
||||
c->argv[0] );
|
||||
Debug(LDAP_DEBUG_ANY, "%s: %s\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue