From: Ondřej Kuzník Date: Thu, 18 Nov 2021 16:00:52 +0000 (+0000) Subject: ITS#9750 olcPasswordHash can only be made global in cn=config X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e96bfd088e34cec005fa6f8f9793679975828b1e;p=thirdparty%2Fopenldap.git ITS#9750 olcPasswordHash can only be made global in cn=config --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index ad08090cae..f69177a100 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -2672,7 +2672,7 @@ config_passwd_hash(ConfigArgs *c) { } return 0; } - if ( c->table == Cft_Global ) { + if ( c->op == LDAP_MOD_ADD && c->table == Cft_Global ) { Debug( LDAP_DEBUG_ANY, "%s: setting password scheme in the global " "entry is deprecated. The server may refuse to start if " "it is provided by a loadable module, please move it to "