From 87199c95cb2aabc4bea697208f31e7ecc320b86e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 23 Apr 2015 05:58:50 +0100 Subject: [PATCH] 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. --- servers/slapd/bconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 2579050ca7..aa74b89f25 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -3039,7 +3039,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", -- 2.39.5