ITS#9575 Warn when specifying olcPasswordHash in the cn=config entry

This commit is contained in:
Ondřej Kuzník 2021-06-15 16:32:38 +01:00 committed by Quanah Gibson-Mount
parent 7eaad9d812
commit f016d88786

View File

@ -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] );