From 4976b9436d9b2739e5b0658ce33eeeb47ebf8d76 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 15 Jun 2006 00:02:35 +0000 Subject: [PATCH] Require rootDN to be present on logDB --- servers/slapd/overlays/accesslog.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.5