Added backend_group result caching.

This commit is contained in:
Howard Chu 2001-11-12 19:37:48 +00:00
parent a0a24d73dc
commit 48623df1a8

View 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 */