From b69a2acdf5f0749313f5fb99a5455251f9888c1f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 20 Apr 2004 19:26:02 +0000 Subject: [PATCH] use fist backend only if there is no global ACL (ITS#3100) --- servers/slapd/acl.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 ); -- 2.39.5