]> git.sur5r.net Git - openldap/commitdiff
ITS#2678 complain if updateref is missing on a slave database
authorHoward Chu <hyc@openldap.org>
Mon, 22 Sep 2003 18:54:08 +0000 (18:54 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 22 Sep 2003 18:54:08 +0000 (18:54 +0000)
servers/slapd/backend.c

index f0adee39b08cd7304cae2768466c12e85074e11c..55f9228c860cb1088d94348d41204439b96fe6bb 100644 (file)
@@ -336,6 +336,23 @@ int backend_startup(Backend *be)
 
        /* open each backend database */
        for( i = 0; i < nBackendDB; i++ ) {
+               if ( backendDB[i].be_update_ndn.bv_val && (
+                       !backendDB[i].be_update_refs &&
+                       !backendDB[i].syncinfo &&
+                       !default_referral ) ) {
+#ifdef NEW_LOGGING
+                       LDAP_LOG( BACKEND, CRIT, 
+                               "backend_startup: slave \"%s\" updateref missing\n",
+                               backendDB[i].be_suffix[0].bv_val, 0, 0 );
+                               
+#else
+                       Debug( LDAP_DEBUG_ANY,
+                               "backend_startup: slave \"%s\" updateref missing\n",
+                               backendDB[i].be_suffix[0].bv_val, 0, 0 );
+#endif
+                       return -1;
+               }
+
                /* append global access controls */
                acl_append( &backendDB[i].be_acl, global_acl );