From: Howard Chu Date: Thu, 12 May 2005 03:24:34 +0000 (+0000) Subject: Fix for slapadd'ing a config db X-Git-Tag: OPENLDAP_AC_BP~661 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=37ed2af7e7407a0a47ef112e905c4f01702703c1;p=openldap Fix for slapadd'ing a config db --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index b738a9871e..c6588f9699 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -2559,7 +2559,10 @@ read_config(const char *fname, const char *dir) { cfdir = SLAPD_DEFAULT_CONFIGDIR; } /* if fname is defaulted, try reading .d */ - if ( config_setup_ldif( be, cfdir, !fname )) + rc = config_setup_ldif( be, cfdir, !fname ); + + /* It's OK if the base object doesn't exist yet */ + if ( rc && rc != LDAP_NO_SUCH_OBJECT ) return 1; /* If we read the config from back-ldif, nothing to do here */