ITS#9750 olcPasswordHash can only be made global in cn=config

This commit is contained in:
Ondřej Kuzník 2021-11-18 16:00:52 +00:00 committed by Quanah Gibson-Mount
parent c51320a6f6
commit e96bfd088e

View file

@ -2672,7 +2672,7 @@ config_passwd_hash(ConfigArgs *c) {
} }
return 0; 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 " Debug( LDAP_DEBUG_ANY, "%s: setting password scheme in the global "
"entry is deprecated. The server may refuse to start if " "entry is deprecated. The server may refuse to start if "
"it is provided by a loadable module, please move it to " "it is provided by a loadable module, please move it to "