do not allow back-meta with no targets

This commit is contained in:
Pierangelo Masarati 2007-01-26 23:03:46 +00:00
parent f58ea89c20
commit 196fd6308d

View file

@ -138,6 +138,13 @@ meta_back_db_open(
not_always_anon_non_prescriptive = 0,
rc;
if ( mi->mi_ntargets == 0 ) {
Debug( LDAP_DEBUG_ANY,
"meta_back_db_open: no targets defined\n",
0, 0, 0 );
return 1;
}
for ( i = 0; i < mi->mi_ntargets; i++ ) {
slap_bindconf sb = { BER_BVNULL };
metatarget_t *mt = mi->mi_targets[ i ];