From f016d88786a1cc45e0a4c89dd639a96dc9ce6b64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Tue, 15 Jun 2021 16:32:38 +0100 Subject: [PATCH] ITS#9575 Warn when specifying olcPasswordHash in the cn=config entry --- servers/slapd/bconfig.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 8a545cad65..63d04967f3 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -2590,6 +2590,13 @@ config_passwd_hash(ConfigArgs *c) { } return 0; } + if ( 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 " + "the frontend database instead\n", + c->log ); + } for(i = 1; i < c->argc; i++) { if(!lutil_passwd_scheme(c->argv[i])) { snprintf( c->cr_msg, sizeof( c->cr_msg ), "<%s> scheme not available", c->argv[0] ); -- 2.47.3