mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Added backend_group result caching.
This commit is contained in:
parent
a0a24d73dc
commit
48623df1a8
@ -1178,6 +1178,19 @@ typedef struct slap_op {
|
|||||||
void *o_private; /* anything the backend needs */
|
void *o_private; /* anything the backend needs */
|
||||||
} Operation;
|
} 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
|
* represents a connection from an ldap client
|
||||||
*/
|
*/
|
||||||
@ -1210,6 +1223,7 @@ typedef struct slap_conn {
|
|||||||
Backend *c_authz_backend;
|
Backend *c_authz_backend;
|
||||||
|
|
||||||
AuthorizationInformation c_authz;
|
AuthorizationInformation c_authz;
|
||||||
|
GroupAssertion *c_groups;
|
||||||
|
|
||||||
ber_int_t c_protocol; /* version of the LDAP protocol used by client */
|
ber_int_t c_protocol; /* version of the LDAP protocol used by client */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user