diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-01-21 16:15:53 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-01-21 16:15:53 +0100 |
commit | f3ecb701335b1129947127d4c45eef970b66875c (patch) | |
tree | 4e670492610ad24817f6717bf1a9762df22cd7f5 /source3/lib/ldb/common/ldb.c | |
parent | 47951fc5d0085e124666b7667715bba98076820e (diff) | |
download | samba-f3ecb701335b1129947127d4c45eef970b66875c.tar.gz samba-f3ecb701335b1129947127d4c45eef970b66875c.tar.bz2 samba-f3ecb701335b1129947127d4c45eef970b66875c.zip |
Replace ldb_search() with ldb_search_exp_fmt(), like in Samba 4.
Diffstat (limited to 'source3/lib/ldb/common/ldb.c')
-rw-r--r-- | source3/lib/ldb/common/ldb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/ldb/common/ldb.c b/source3/lib/ldb/common/ldb.c index 495047f3a1..6e28528dbf 100644 --- a/source3/lib/ldb/common/ldb.c +++ b/source3/lib/ldb/common/ldb.c @@ -745,7 +745,7 @@ int ldb_build_rename_req(struct ldb_request **ret_req, note that ldb_search() will automatically replace a NULL 'base' value with the defaultNamingContext from the rootDSE if available. */ -int ldb_search(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, +static int _ldb_search(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, struct ldb_result **_res, const struct ldb_dn *base, enum ldb_scope scope, @@ -799,7 +799,7 @@ done: 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, +int ldb_search(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, ...) { @@ -819,7 +819,7 @@ int ldb_search_exp_fmt(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, struct ldb_ return LDB_ERR_OPERATIONS_ERROR; } - ret = ldb_search(ldb, ldb, &res, base, scope, attrs, expression); + ret = _ldb_search(ldb, ldb, &res, base, scope, attrs, expression); if (ret == LDB_SUCCESS) { talloc_steal(mem_ctx, res); |