From: Pierangelo Masarati Date: Tue, 20 Apr 2004 19:26:02 +0000 (+0000) Subject: use fist backend only if there is no global ACL (ITS#3100) X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~456 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b69a2acdf5f0749313f5fb99a5455251f9888c1f;p=openldap use fist backend only if there is no global ACL (ITS#3100) --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 58d4e7db86..23abde734f 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -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 );