From 4433b1b8d5f5f1062f570769154ecfd32e8644b2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 26 Mar 2012 03:01:58 -0700 Subject: [PATCH] ITS#7205 fix check for existing suffix --- servers/slapd/bconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 9326185e10..ae2e76fd92 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -3070,7 +3070,8 @@ config_suffix(ConfigArgs *c) } #endif - if (SLAP_DB_ONE_SUFFIX( c->be ) && c->be->be_suffix ) { + if (SLAP_DB_ONE_SUFFIX( c->be ) && c->be->be_suffix && + !BER_BVISNULL( &c->be->be_suffix[0] )) { snprintf( c->cr_msg, sizeof( c->cr_msg ), "<%s> Only one suffix is allowed on this %s backend", c->argv[0], c->be->bd_info->bi_type ); Debug(LDAP_DEBUG_ANY, "%s: %s\n", -- 2.39.5