summaryrefslogtreecommitdiffstats
path: root/source/lib/ldb/common/ldb.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-10-22 21:16:22 +0000
committerSimo Sorce <idra@samba.org>2006-10-22 21:16:22 +0000
commit6306bbc3bfadd57a381000f436d767fb43a259ad (patch)
tree0e0fba49c0957e9313011a580fd8e3fb1aa1efac /source/lib/ldb/common/ldb.c
parent693a24348a80b373486e8bbf0b9243f8c731588a (diff)
downloadsamba-6306bbc3bfadd57a381000f436d767fb43a259ad.tar.gz
samba-6306bbc3bfadd57a381000f436d767fb43a259ad.tar.xz
samba-6306bbc3bfadd57a381000f436d767fb43a259ad.zip
r19453: Expose helper functions
Diffstat (limited to 'source/lib/ldb/common/ldb.c')
-rw-r--r--source/lib/ldb/common/ldb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/lib/ldb/common/ldb.c b/source/lib/ldb/common/ldb.c
index 7648abf795e..0eacf214b5d 100644
--- a/source/lib/ldb/common/ldb.c
+++ b/source/lib/ldb/common/ldb.c
@@ -522,7 +522,7 @@ int ldb_request(struct ldb_context *ldb, struct ldb_request *req)
Use talloc_free to free the ldb_message returned in 'res', if successful
*/
-static int ldb_search_callback(struct ldb_context *ldb, void *context, struct ldb_reply *ares)
+int ldb_search_default_callback(struct ldb_context *ldb, void *context, struct ldb_reply *ares)
{
struct ldb_result *res;
int n;
@@ -564,6 +564,7 @@ static int ldb_search_callback(struct ldb_context *ldb, void *context, struct ld
res->refs[n] = talloc_move(res->refs, &ares->referral);
res->refs[n + 1] = NULL;
+ case LDB_REPLY_EXTENDED:
case LDB_REPLY_DONE:
/* Should do something here to detect if this never
* happens */
@@ -769,7 +770,7 @@ int ldb_search(struct ldb_context *ldb,
attrs,
NULL,
res,
- ldb_search_callback);
+ ldb_search_default_callback);
if (ret != LDB_SUCCESS) goto done;