|
@@ -271,6 +271,7 @@ slapi_int_t init_connection_buffer;
|
|
|
slapi_int_t init_listen_backlog_size;
|
|
slapi_int_t init_listen_backlog_size;
|
|
|
slapi_onoff_t init_ignore_time_skew;
|
|
slapi_onoff_t init_ignore_time_skew;
|
|
|
slapi_onoff_t init_dynamic_plugins;
|
|
slapi_onoff_t init_dynamic_plugins;
|
|
|
|
|
+slapi_onoff_t init_cn_uses_dn_syntax_in_dns;
|
|
|
#if defined (LINUX)
|
|
#if defined (LINUX)
|
|
|
slapi_int_t init_malloc_mxfast;
|
|
slapi_int_t init_malloc_mxfast;
|
|
|
slapi_int_t init_malloc_trim_threshold;
|
|
slapi_int_t init_malloc_trim_threshold;
|
|
@@ -1092,6 +1093,10 @@ static struct config_get_and_set {
|
|
|
NULL, 0,
|
|
NULL, 0,
|
|
|
(void**)&global_slapdFrontendConfig.dynamic_plugins, CONFIG_ON_OFF,
|
|
(void**)&global_slapdFrontendConfig.dynamic_plugins, CONFIG_ON_OFF,
|
|
|
(ConfigGetFunc)config_get_dynamic_plugins, &init_dynamic_plugins},
|
|
(ConfigGetFunc)config_get_dynamic_plugins, &init_dynamic_plugins},
|
|
|
|
|
+ {CONFIG_CN_USES_DN_SYNTAX_IN_DNS, config_set_cn_uses_dn_syntax_in_dns,
|
|
|
|
|
+ NULL, 0,
|
|
|
|
|
+ (void**)&global_slapdFrontendConfig.cn_uses_dn_syntax_in_dns, CONFIG_ON_OFF,
|
|
|
|
|
+ (ConfigGetFunc)config_get_cn_uses_dn_syntax_in_dns, &init_cn_uses_dn_syntax_in_dns},
|
|
|
#if defined(LINUX)
|
|
#if defined(LINUX)
|
|
|
{CONFIG_MALLOC_MXFAST, config_set_malloc_mxfast,
|
|
{CONFIG_MALLOC_MXFAST, config_set_malloc_mxfast,
|
|
|
NULL, 0,
|
|
NULL, 0,
|
|
@@ -1558,6 +1563,7 @@ FrontendConfig_init () {
|
|
|
init_listen_backlog_size = cfg->listen_backlog_size = DAEMON_LISTEN_SIZE;
|
|
init_listen_backlog_size = cfg->listen_backlog_size = DAEMON_LISTEN_SIZE;
|
|
|
init_ignore_time_skew = cfg->ignore_time_skew = LDAP_OFF;
|
|
init_ignore_time_skew = cfg->ignore_time_skew = LDAP_OFF;
|
|
|
init_dynamic_plugins = cfg->dynamic_plugins = LDAP_OFF;
|
|
init_dynamic_plugins = cfg->dynamic_plugins = LDAP_OFF;
|
|
|
|
|
+ init_cn_uses_dn_syntax_in_dns = cfg->cn_uses_dn_syntax_in_dns = LDAP_OFF;
|
|
|
#if defined(LINUX)
|
|
#if defined(LINUX)
|
|
|
init_malloc_mxfast = cfg->malloc_mxfast = DEFAULT_MALLOC_UNSET;
|
|
init_malloc_mxfast = cfg->malloc_mxfast = DEFAULT_MALLOC_UNSET;
|
|
|
init_malloc_trim_threshold = cfg->malloc_trim_threshold = DEFAULT_MALLOC_UNSET;
|
|
init_malloc_trim_threshold = cfg->malloc_trim_threshold = DEFAULT_MALLOC_UNSET;
|
|
@@ -3289,6 +3295,7 @@ config_set_dynamic_plugins( const char *attrname, char *value, char *errorbuf, i
|
|
|
|
|
|
|
|
return retVal;
|
|
return retVal;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
int
|
|
int
|
|
|
config_get_dynamic_plugins() {
|
|
config_get_dynamic_plugins() {
|
|
|
slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig();
|
|
slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig();
|
|
@@ -3301,6 +3308,34 @@ config_get_dynamic_plugins() {
|
|
|
return retVal;
|
|
return retVal;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+int
|
|
|
|
|
+config_set_cn_uses_dn_syntax_in_dns(const char *attrname, char *value, char *errorbuf, int apply)
|
|
|
|
|
+{
|
|
|
|
|
+ int retVal = LDAP_SUCCESS;
|
|
|
|
|
+ slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig();
|
|
|
|
|
+
|
|
|
|
|
+ retVal = config_set_onoff ( attrname,
|
|
|
|
|
+ value,
|
|
|
|
|
+ &(slapdFrontendConfig->cn_uses_dn_syntax_in_dns),
|
|
|
|
|
+ errorbuf,
|
|
|
|
|
+ apply);
|
|
|
|
|
+
|
|
|
|
|
+ return retVal;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+int
|
|
|
|
|
+config_get_cn_uses_dn_syntax_in_dns()
|
|
|
|
|
+{
|
|
|
|
|
+ slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig();
|
|
|
|
|
+ int retVal;
|
|
|
|
|
+
|
|
|
|
|
+ CFG_ONOFF_LOCK_READ(slapdFrontendConfig);
|
|
|
|
|
+ retVal = (int)slapdFrontendConfig->cn_uses_dn_syntax_in_dns;
|
|
|
|
|
+ CFG_ONOFF_UNLOCK_READ(slapdFrontendConfig);
|
|
|
|
|
+
|
|
|
|
|
+ return retVal;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
int
|
|
int
|
|
|
config_set_security( const char *attrname, char *value, char *errorbuf, int apply ) {
|
|
config_set_security( const char *attrname, char *value, char *errorbuf, int apply ) {
|
|
|
int retVal = LDAP_SUCCESS;
|
|
int retVal = LDAP_SUCCESS;
|