use fist backend only if there is no global ACL (ITS#3100)

This commit is contained in:
Pierangelo Masarati 2004-04-20 19:26:02 +00:00
parent dd0e285b12
commit b69a2acdf5

View File

@ -219,7 +219,15 @@ access_allowed_mask(
if ( be == NULL ) {
be = &backends[0];
be_null = 1;
op->o_bd = be;
#ifdef LDAP_DEVEL
/*
* FIXME: experimental; use first backend rules
* iff there is no global_acl (ITS#3100) */
if ( global_acl == NULL )
#endif
{
op->o_bd = be;
}
}
assert( be != NULL );