From 48623df1a8fcfdf77aa9c12363cc48225e4739c5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 12 Nov 2001 19:37:48 +0000 Subject: [PATCH] Added backend_group result caching. --- servers/slapd/slap.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 48298e71e0..d37fc0d481 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -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 */ -- 2.39.5