From 5cb6bf6f9d733cc085013174024785ab49a8bb51 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 19 Jun 2009 11:45:01 +0200 Subject: Add tldap_context_[gs]etattr This adds the ability to attach extended information to a tldap_context. This will become useful once we start to do automatic reconnects for example, a callback function might want attach a pointer to credentials so that it can rebind. The initial user of this will be a cached rootdse, so that things like the ability to do paged searches can be cached. --- source3/include/tldap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/include') diff --git a/source3/include/tldap.h b/source3/include/tldap.h index d57484c5f8..8e5664241e 100644 --- a/source3/include/tldap.h +++ b/source3/include/tldap.h @@ -46,6 +46,9 @@ struct tldap_mod { }; struct tldap_context *tldap_context_create(TALLOC_CTX *mem_ctx, int fd); +bool tldap_context_setattr(struct tldap_context *ld, + const char *name, const void *pptr); +void *tldap_context_getattr(struct tldap_context *ld, const char *name); struct tevent_req *tldap_sasl_bind_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, -- cgit