]> git.sur5r.net Git - openldap/commitdiff
Fix for slapadd'ing a config db
authorHoward Chu <hyc@openldap.org>
Thu, 12 May 2005 03:24:34 +0000 (03:24 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 12 May 2005 03:24:34 +0000 (03:24 +0000)
servers/slapd/bconfig.c

index b738a9871e8b7304f48255250786076138bf35bd..c6588f9699654a34e61a728380642a867716e4c9 100644 (file)
@@ -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 */