]> 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 00:19:17 +0000 (00:19 +0000)
servers/slapd/bconfig.c

index ad08090cae715b9b1658fd3a01ea31d290428aca..f69177a100e69764bfbdfdd95494a0e93bff1648 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 "