]> git.sur5r.net Git - openldap/commitdiff
suffix must be defined before overlay configuration (ITS#5641)
authorPierangelo Masarati <ando@openldap.org>
Sat, 9 Aug 2008 10:29:31 +0000 (10:29 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 9 Aug 2008 10:29:31 +0000 (10:29 +0000)
servers/slapd/overlays/unique.c

index 0f6479b2a732aa829b88bbeedfdb938b115f478f..e28e6b3540cc8f4400c75008dd449038f66291a2 100644 (file)
@@ -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>",