mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
ITS#9575 Warn when specifying olcPasswordHash in the cn=config entry
This commit is contained in:
parent
7eaad9d812
commit
f016d88786
@ -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] );
|
||||
|
Loading…
Reference in New Issue
Block a user