]> git.sur5r.net Git - openldap/commitdiff
Added backend_group result caching.
authorHoward Chu <hyc@openldap.org>
Mon, 12 Nov 2001 19:37:48 +0000 (19:37 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 12 Nov 2001 19:37:48 +0000 (19:37 +0000)
servers/slapd/slap.h

index 48298e71e04d85b996d0a7a337a5b9d8af2c69e5..d37fc0d481bbbb27ac7bbdb9c119e68440256148 100644 (file)
@@ -1178,6 +1178,19 @@ typedef struct slap_op {
        void    *o_private;     /* anything the backend needs     */
 } Operation;
 
+/*
+ * Caches the result of a backend_group check for ACL evaluation
+ */
+typedef struct slap_gacl {
+       struct slap_gacl *next;
+       Backend *be;
+       ObjectClass *oc;
+       AttributeDescription *at;
+       int res;
+       int len;
+       char ndn[1];
+} GroupAssertion;
+
 /*
  * represents a connection from an ldap client
  */
@@ -1210,6 +1223,7 @@ typedef struct slap_conn {
        Backend *c_authz_backend;
 
        AuthorizationInformation c_authz;
+       GroupAssertion *c_groups;
 
        ber_int_t       c_protocol;     /* version of the LDAP protocol used by client */