|
@@ -1010,6 +1010,10 @@ static struct config_get_and_set {
|
|
|
NULL, 0,
|
|
NULL, 0,
|
|
|
(void**)&global_slapdFrontendConfig.allowed_sasl_mechs,
|
|
(void**)&global_slapdFrontendConfig.allowed_sasl_mechs,
|
|
|
CONFIG_STRING, (ConfigGetFunc)config_get_allowed_sasl_mechs, DEFAULT_ALLOWED_TO_DELETE_ATTRS},
|
|
CONFIG_STRING, (ConfigGetFunc)config_get_allowed_sasl_mechs, DEFAULT_ALLOWED_TO_DELETE_ATTRS},
|
|
|
|
|
+ {CONFIG_IGNORE_VATTRS, config_set_ignore_vattrs,
|
|
|
|
|
+ NULL, 0,
|
|
|
|
|
+ (void**)&global_slapdFrontendConfig.ignore_vattrs,
|
|
|
|
|
+ CONFIG_STRING, (ConfigGetFunc)config_get_ignore_vattrs, DEFAULT_ALLOWED_TO_DELETE_ATTRS},
|
|
|
#ifdef MEMPOOL_EXPERIMENTAL
|
|
#ifdef MEMPOOL_EXPERIMENTAL
|
|
|
,{CONFIG_MEMPOOL_SWITCH_ATTRIBUTE, config_set_mempool_switch,
|
|
,{CONFIG_MEMPOOL_SWITCH_ATTRIBUTE, config_set_mempool_switch,
|
|
|
NULL, 0,
|
|
NULL, 0,
|
|
@@ -1436,6 +1440,7 @@ FrontendConfig_init () {
|
|
|
init_disk_logging_critical = cfg->disk_logging_critical = LDAP_OFF;
|
|
init_disk_logging_critical = cfg->disk_logging_critical = LDAP_OFF;
|
|
|
init_ndn_cache_enabled = cfg->ndn_cache_enabled = LDAP_OFF;
|
|
init_ndn_cache_enabled = cfg->ndn_cache_enabled = LDAP_OFF;
|
|
|
cfg->ndn_cache_max_size = NDN_DEFAULT_SIZE;
|
|
cfg->ndn_cache_max_size = NDN_DEFAULT_SIZE;
|
|
|
|
|
+ cfg->ignore_vattrs = slapi_counter_new();
|
|
|
|
|
|
|
|
#ifdef MEMPOOL_EXPERIMENTAL
|
|
#ifdef MEMPOOL_EXPERIMENTAL
|
|
|
init_mempool_switch = cfg->mempool_switch = LDAP_ON;
|
|
init_mempool_switch = cfg->mempool_switch = LDAP_ON;
|
|
@@ -1561,6 +1566,20 @@ config_value_is_null( const char *attrname, const char *value, char *errorbuf,
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+int
|
|
|
|
|
+config_set_ignore_vattrs (const char *attrname, char *value, char *errorbuf, int apply )
|
|
|
|
|
+{
|
|
|
|
|
+ slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig();
|
|
|
|
|
+ int retVal = LDAP_SUCCESS;
|
|
|
|
|
+ int val;
|
|
|
|
|
+
|
|
|
|
|
+ retVal = config_set_onoff ( attrname, value, &val, errorbuf, apply);
|
|
|
|
|
+ if(retVal == LDAP_SUCCESS){
|
|
|
|
|
+ slapi_counter_set_value(slapdFrontendConfig->ignore_vattrs, val);
|
|
|
|
|
+ }
|
|
|
|
|
+ return retVal;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
int
|
|
int
|
|
|
config_set_disk_monitoring( const char *attrname, char *value, char *errorbuf, int apply )
|
|
config_set_disk_monitoring( const char *attrname, char *value, char *errorbuf, int apply )
|
|
|
{
|
|
{
|
|
@@ -4127,6 +4146,14 @@ config_get_port(){
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+int
|
|
|
|
|
+config_get_ignore_vattrs()
|
|
|
|
|
+{
|
|
|
|
|
+ slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig();
|
|
|
|
|
+
|
|
|
|
|
+ return slapi_counter_get_value(slapdFrontendConfig->ignore_vattrs);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
int
|
|
int
|
|
|
config_get_disk_monitoring(){
|
|
config_get_disk_monitoring(){
|
|
|
slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig();
|
|
slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig();
|