mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Fix for slapadd'ing a config db
This commit is contained in:
parent
54adc170e5
commit
37ed2af7e7
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user