diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-12-05 16:20:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:22 -0500 |
commit | 91adcd0bae35d178ae8803605a705911de7d093d (patch) | |
tree | 1c9ae2923af4e14c2a27fe516aba807bfb80469a /source3/lib/ldb | |
parent | 5b1f85a83277e153a47761afe8a231ac5d67c2d9 (diff) | |
download | samba-91adcd0bae35d178ae8803605a705911de7d093d.tar.gz samba-91adcd0bae35d178ae8803605a705911de7d093d.tar.xz samba-91adcd0bae35d178ae8803605a705911de7d093d.zip |
r20046: Add ldb_search_exp_fmt and port comment to 4
(This used to be commit 1fe41c96f53b0d83e8779050e2149a5e70b5dad0)
Diffstat (limited to 'source3/lib/ldb')
-rw-r--r-- | source3/lib/ldb/include/ldb.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/lib/ldb/include/ldb.h b/source3/lib/ldb/include/ldb.h index 17a2ec75569..44f9e5f3df7 100644 --- a/source3/lib/ldb/include/ldb.h +++ b/source3/lib/ldb/include/ldb.h @@ -990,6 +990,16 @@ int ldb_search(struct ldb_context *ldb, const char * const *attrs, struct ldb_result **res); /* + * a useful search function where you can easily define the expression and + * that takes a memory context where results are allocated +*/ + +int ldb_search_exp_fmt(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, + struct ldb_result **result, struct ldb_dn *base, + enum ldb_scope scope, const char * const *attrs, + const char *exp_fmt, ...); + +/* like ldb_search() but takes a parse tree */ int ldb_search_bytree(struct ldb_context *ldb, |