summaryrefslogtreecommitdiffstats
path: root/ldap
diff options
context:
space:
mode:
Diffstat (limited to 'ldap')
-rw-r--r--ldap/servers/slapd/config.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/ldap/servers/slapd/config.c b/ldap/servers/slapd/config.c
index 75777699..fe62e9b1 100644
--- a/ldap/servers/slapd/config.c
+++ b/ldap/servers/slapd/config.c
@@ -375,7 +375,33 @@ slapd_bootstrap_config(const char *configdir)
CONFIG_SASLPATH_ATTRIBUTE, errorbuf);
}
}
+#if defined(ENABLE_LDAPI)
+ /* set the ldapi file path; needed in main */
+ workpath[0] = '\0';
+ if (entry_has_attr_and_value(e, CONFIG_LDAPI_FILENAME_ATTRIBUTE,
+ workpath, sizeof(workpath)))
+ {
+ if (config_set_ldapi_filename(CONFIG_LDAPI_FILENAME_ATTRIBUTE,
+ workpath, errorbuf, CONFIG_APPLY) != LDAP_SUCCESS)
+ {
+ LDAPDebug(LDAP_DEBUG_ANY, "%s: %s: %s. \n", configfile,
+ CONFIG_LDAPI_FILENAME_ATTRIBUTE, errorbuf);
+ }
+ }
+ /* set the ldapi switch; needed in main */
+ workpath[0] = '\0';
+ if (entry_has_attr_and_value(e, CONFIG_LDAPI_SWITCH_ATTRIBUTE,
+ workpath, sizeof(workpath)))
+ {
+ if (config_set_ldapi_switch(CONFIG_LDAPI_SWITCH_ATTRIBUTE,
+ workpath, errorbuf, CONFIG_APPLY) != LDAP_SUCCESS)
+ {
+ LDAPDebug(LDAP_DEBUG_ANY, "%s: %s: %s. \n", configfile,
+ CONFIG_LDAPI_SWITCH_ATTRIBUTE, errorbuf);
+ }
+ }
+#endif
/* see if the entry is a child of the plugin base dn */
if (slapi_sdn_isparent(&plug_dn,
slapi_entry_get_sdn_const(e)))