]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9750 olcPasswordHash can only be made global in cn=config
authorOndřej Kuzník <ondra@mistotebe.net>
Thu, 18 Nov 2021 16:00:52 +0000 (16:00 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 14 Dec 2021 16:45:20 +0000 (16:45 +0000)
servers/slapd/bconfig.c

index 23132e1e275b2735bf80fd068d64acdd20ef164c..2c398ff97b9e008092eb04cb5f9fd51535eceb1b 100644 (file)
@@ -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 "