summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-19 11:45:01 +0200
committerVolker Lendecke <vl@samba.org>2009-06-19 14:28:22 +0200
commit5cb6bf6f9d733cc085013174024785ab49a8bb51 (patch)
treed4be30f7eb7310f618db6324c42caea27bd8a251 /source3/include
parent862ae382b80ef158317193ffbbbc9580a50e011c (diff)
downloadsamba-5cb6bf6f9d733cc085013174024785ab49a8bb51.tar.gz
samba-5cb6bf6f9d733cc085013174024785ab49a8bb51.tar.bz2
samba-5cb6bf6f9d733cc085013174024785ab49a8bb51.zip
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.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/tldap.h3
1 files changed, 3 insertions, 0 deletions
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,