mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-10 14:23:34 -05:00
ITS#10436 Config handling
Stuff that can crash slap* tools and similar nits
This commit is contained in:
parent
f656b68309
commit
6eb2b1c4e3
2 changed files with 9 additions and 4 deletions
|
|
@ -1580,7 +1580,7 @@ config_generic(ConfigArgs *c) {
|
|||
break;
|
||||
|
||||
case CFG_LASTBIND_PRECISION:
|
||||
c->be->be_lastbind_precision = 0;
|
||||
c->be->be_lastbind_precision = c->ca_desc->arg_default.v_uint;
|
||||
break;
|
||||
|
||||
case CFG_LASTBIND_ASSERT:
|
||||
|
|
@ -2011,7 +2011,9 @@ config_generic(ConfigArgs *c) {
|
|||
mask |= 1;
|
||||
}
|
||||
new_daemon_threads = mask+1;
|
||||
config_push_cleanup( c, config_resize_lthreads );
|
||||
if ( CONFIG_ONLINE_ADD( c ) ) {
|
||||
config_push_cleanup( c, config_resize_lthreads );
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
@ -5689,7 +5691,9 @@ done:
|
|||
schema_destroy_one( ca, colst, nocs, last );
|
||||
} else if ( ca->num_cleanups ) {
|
||||
ca->reply.err = rc;
|
||||
config_run_cleanup( ca );
|
||||
if ( slapMode & SLAP_SERVER_MODE ) {
|
||||
config_run_cleanup( ca );
|
||||
}
|
||||
}
|
||||
}
|
||||
done_noop:
|
||||
|
|
|
|||
|
|
@ -743,8 +743,9 @@ config_logging(ConfigArgs *c) {
|
|||
} else if ( c->op == LDAP_MOD_DELETE ) {
|
||||
switch(c->type) {
|
||||
case CFG_LOGLEVEL:
|
||||
/* If missing, the default is stored in ldap_syslog? */
|
||||
if ( !c->line ) {
|
||||
config_syslog = 0;
|
||||
config_syslog = LDAP_DEBUG_NONE;
|
||||
} else {
|
||||
i = verb_to_mask( c->line, loglevel_ops );
|
||||
config_syslog &= ~loglevel_ops[i].mask;
|
||||
|
|
|
|||
Loading…
Reference in a new issue