summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/back-ldbm/ldbm_config.h
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2007-12-04 00:50:19 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2007-12-04 00:50:19 +0000
commit4b56e87e61399e6c7d5501e06ada3f22ffb4b728 (patch)
tree4d5d7ee18fe449fff9e6fd91e4cd5239585fcef2 /ldap/servers/slapd/back-ldbm/ldbm_config.h
parent7ff698e16687700f0dc0273cdbbfe5cfe88cbefd (diff)
downloadds-4b56e87e61399e6c7d5501e06ada3f22ffb4b728.tar.gz
ds-4b56e87e61399e6c7d5501e06ada3f22ffb4b728.tar.xz
ds-4b56e87e61399e6c7d5501e06ada3f22ffb4b728.zip
Resolves: #231093
Summary: db2bak: crash bug (comment #8, 11) Description: Set the strong requirement: nsslapd-directory must have some value. to guarantee it: 1) checking errors from ldbm_config_directory_set. If the check fails, don't start the server. 2) if nsslapd-directory does not exist or the value is empty in dse.ldif, issuing an error message and returning the error code. 3) since it was difficult to distinguish the nsslapd-directory empty value from the initial default value, introduced CONFIG_FLAG_SKIP_DEFAULT_SETTING flag to tell the backend config code to skip setting the default value
Diffstat (limited to 'ldap/servers/slapd/back-ldbm/ldbm_config.h')
-rw-r--r--ldap/servers/slapd/back-ldbm/ldbm_config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_config.h b/ldap/servers/slapd/back-ldbm/ldbm_config.h
index 7a2ea5be..dbd38edf 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_config.h
+++ b/ldap/servers/slapd/back-ldbm/ldbm_config.h
@@ -72,6 +72,7 @@ typedef void *config_get_fn_t(void *arg);
#define CONFIG_FLAG_PREVIOUSLY_SET 1
#define CONFIG_FLAG_ALWAYS_SHOW 2
#define CONFIG_FLAG_ALLOW_RUNNING_CHANGE 4
+#define CONFIG_FLAG_SKIP_DEFAULT_SETTING 8
struct config_info {
char *config_name;