mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-19 21:32:58 -05:00
Fix for slapadd'ing a config db
This commit is contained in:
parent
54adc170e5
commit
37ed2af7e7
1 changed files with 4 additions and 1 deletions
|
|
@ -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 a new issue