From: Howard Chu Date: Thu, 15 Jun 2006 00:02:35 +0000 (+0000) Subject: Require rootDN to be present on logDB X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~104 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4976b9436d9b2739e5b0658ce33eeeb47ebf8d76;p=openldap Require rootDN to be present on logDB --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 275b8aaf5b..b60748c554 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -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;