mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#2678 complain if updateref is missing on a slave database
This commit is contained in:
parent
ff073b8cd5
commit
089a4852d6
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user