|
|
@@ -261,6 +261,7 @@ slapi_onoff_t init_connection_nocanon;
|
|
|
slapi_onoff_t init_plugin_logging;
|
|
|
slapi_int_t init_connection_buffer;
|
|
|
slapi_int_t init_listen_backlog_size;
|
|
|
+slapi_onoff_t init_ignore_time_skew;
|
|
|
#ifdef MEMPOOL_EXPERIMENTAL
|
|
|
slapi_onoff_t init_mempool_switch;
|
|
|
#endif
|
|
|
@@ -1067,7 +1068,11 @@ static struct config_get_and_set {
|
|
|
{CONFIG_LISTEN_BACKLOG_SIZE, config_set_listen_backlog_size,
|
|
|
NULL, 0,
|
|
|
(void**)&global_slapdFrontendConfig.listen_backlog_size, CONFIG_INT,
|
|
|
- (ConfigGetFunc)config_get_listen_backlog_size, &init_listen_backlog_size}
|
|
|
+ (ConfigGetFunc)config_get_listen_backlog_size, &init_listen_backlog_size},
|
|
|
+ {CONFIG_IGNORE_TIME_SKEW, config_set_ignore_time_skew,
|
|
|
+ NULL, 0,
|
|
|
+ (void**)&global_slapdFrontendConfig.ignore_time_skew,
|
|
|
+ CONFIG_ON_OFF, (ConfigGetFunc)config_get_ignore_time_skew, &init_ignore_time_skew}
|
|
|
#ifdef MEMPOOL_EXPERIMENTAL
|
|
|
,{CONFIG_MEMPOOL_SWITCH_ATTRIBUTE, config_set_mempool_switch,
|
|
|
NULL, 0,
|
|
|
@@ -1510,6 +1515,7 @@ FrontendConfig_init () {
|
|
|
init_connection_nocanon = cfg->connection_nocanon = LDAP_ON;
|
|
|
init_plugin_logging = cfg->plugin_logging = LDAP_OFF;
|
|
|
init_listen_backlog_size = cfg->listen_backlog_size = DAEMON_LISTEN_SIZE;
|
|
|
+ init_ignore_time_skew = cfg->ignore_time_skew = LDAP_OFF;
|
|
|
#ifdef MEMPOOL_EXPERIMENTAL
|
|
|
init_mempool_switch = cfg->mempool_switch = LDAP_ON;
|
|
|
cfg->mempool_maxfreelist = 1024;
|
|
|
@@ -6988,6 +6994,18 @@ config_get_unhashed_pw_switch()
|
|
|
return retVal;
|
|
|
}
|
|
|
|
|
|
+int
|
|
|
+config_get_ignore_time_skew(void)
|
|
|
+{
|
|
|
+ int retVal;
|
|
|
+ slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig();
|
|
|
+ CFG_LOCK_READ(slapdFrontendConfig);
|
|
|
+ retVal = slapdFrontendConfig->ignore_time_skew;
|
|
|
+ CFG_UNLOCK_READ(slapdFrontendConfig);
|
|
|
+
|
|
|
+ return retVal;
|
|
|
+}
|
|
|
+
|
|
|
int
|
|
|
config_set_enable_turbo_mode( const char *attrname, char *value,
|
|
|
char *errorbuf, int apply )
|
|
|
@@ -7014,6 +7032,19 @@ config_set_connection_nocanon( const char *attrname, char *value,
|
|
|
return retVal;
|
|
|
}
|
|
|
|
|
|
+int
|
|
|
+config_set_ignore_time_skew( const char *attrname, char *value,
|
|
|
+ char *errorbuf, int apply )
|
|
|
+{
|
|
|
+ int retVal = LDAP_SUCCESS;
|
|
|
+ slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig();
|
|
|
+
|
|
|
+ retVal = config_set_onoff(attrname, value,
|
|
|
+ &(slapdFrontendConfig->ignore_time_skew),
|
|
|
+ errorbuf, apply);
|
|
|
+ return retVal;
|
|
|
+}
|
|
|
+
|
|
|
int
|
|
|
config_set_plugin_logging( const char *attrname, char *value,
|
|
|
char *errorbuf, int apply )
|