From: Pierangelo Masarati Date: Sat, 9 Aug 2008 10:29:31 +0000 (+0000) Subject: suffix must be defined before overlay configuration (ITS#5641) X-Git-Tag: LOCKER_IDS~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=69d8588ab436a3da75db84755e3e5ca1f3aaaad5;p=openldap suffix must be defined before overlay configuration (ITS#5641) --- diff --git a/servers/slapd/overlays/unique.c b/servers/slapd/overlays/unique.c index 0f6479b2a7..e28e6b3540 100644 --- a/servers/slapd/overlays/unique.c +++ b/servers/slapd/overlays/unique.c @@ -197,6 +197,15 @@ unique_new_domain_uri ( unique_domain_uri **urip, goto exit; } + if ( be->be_nsuffix == NULL ) { + snprintf( c->cr_msg, sizeof( c->cr_msg ), + "suffix must be set" ); + Debug ( LDAP_DEBUG_CONFIG, "unique config: %s\n", + c->cr_msg, NULL, NULL ); + rc = ARG_BAD_CONF; + goto exit; + } + if ( !dnIsSuffix ( &uri->ndn, &be->be_nsuffix[0] ) ) { snprintf( c->cr_msg, sizeof( c->cr_msg ), "dn <%s> is not a suffix of backend base dn <%s>",