From 63a70ba0ad306e39311db3145d85323276e02c02 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 6 Jun 2009 21:06:33 +0200 Subject: Prepare control support We will have arrays of controls passed to tldap.c. Follow a mantra from the classic book "Thinking Forth" by Leo Brodie: Favor counts over terminators :-) This makes the parameter lists to tldap pretty long, but everyone will have wrapper routines anyway, see for example tldap_search_fmt. And the OpenLDAP manpages call the non-_ext routines deprecated, probably for a reason. --- source3/lib/tldap_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/tldap_util.c') diff --git a/source3/lib/tldap_util.c b/source3/lib/tldap_util.c index 042665f15f..3698264bd6 100644 --- a/source3/lib/tldap_util.c +++ b/source3/lib/tldap_util.c @@ -343,7 +343,7 @@ int tldap_search_fmt(struct tldap_context *ld, const char *base, int scope, } ret = tldap_search(ld, base, scope, filter, attrs, num_attrs, attrsonly, - NULL /*sctrls*/, NULL /*cctrls*/, + NULL /*sctrls*/, 0, NULL /*cctrls*/, 0, 0 /*timelimit*/, 0 /*sizelimit*/, 0 /*deref*/, mem_ctx, res, NULL); TALLOC_FREE(filter); @@ -404,7 +404,7 @@ struct tevent_req *tldap_fetch_rootdse_send(TALLOC_CTX *mem_ctx, subreq = tldap_search_send( mem_ctx, ev, ld, "", TLDAP_SCOPE_BASE, "(objectclass=*)", - attrs, ARRAY_SIZE(attrs), 0, NULL, NULL, 0, 0, 0); + attrs, ARRAY_SIZE(attrs), 0, NULL, 0, NULL, 0, 0, 0, 0); if (tevent_req_nomem(subreq, req)) { return tevent_req_post(req, ev); } -- cgit