From: Howard Chu Date: Mon, 22 Sep 2003 18:54:08 +0000 (+0000) Subject: ITS#2678 complain if updateref is missing on a slave database X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~678 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=089a4852d60aa5420a35317a1f6f6df4429a2684;p=openldap ITS#2678 complain if updateref is missing on a slave database --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index f0adee39b0..55f9228c86 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -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 );