mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Require rootDN to be present on logDB
This commit is contained in:
parent
d6ac2453a4
commit
4976b9436d
1 changed files with 8 additions and 0 deletions
|
|
@ -723,6 +723,14 @@ log_cf_gen(ConfigArgs *c)
|
|||
c->log, c->msg, c->value_dn.bv_val );
|
||||
rc = 1;
|
||||
}
|
||||
if ( BER_BVISEMPTY( &li->li_db->be_rootdn )) {
|
||||
snprintf( c->msg, sizeof( c->msg ),
|
||||
"<%s> no rootDN was configured for suffix",
|
||||
c->argv[0] );
|
||||
Debug( LDAP_DEBUG_ANY, "%s: %s \"%s\"\n",
|
||||
c->log, c->msg, c->value_dn.bv_val );
|
||||
rc = 1;
|
||||
}
|
||||
ch_free( c->value_dn.bv_val );
|
||||
ch_free( c->value_ndn.bv_val );
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue