]> git.sur5r.net Git - openldap/commitdiff
use fist backend only if there is no global ACL (ITS#3100)
authorPierangelo Masarati <ando@openldap.org>
Tue, 20 Apr 2004 19:26:02 +0000 (19:26 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 20 Apr 2004 19:26:02 +0000 (19:26 +0000)
servers/slapd/acl.c

index 58d4e7db8682e1feaaa062ef77c75f466d0c1b7f..23abde734f17c7e8b0df39829ff78ecc9f688b29 100644 (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 );