diff options
author | Simo Sorce <idra@samba.org> | 2008-09-25 02:28:56 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-09-25 03:21:34 -0400 |
commit | 9bd63b97c9c3132a0b3c8c6bd1c67f8c31a54c3c (patch) | |
tree | af51399e30505f1111308f8d582934ab83d31396 /ldb/tools/ldbtest.c | |
parent | f698831f0ae0cd86225eb647ae4aeb813f08d3b5 (diff) | |
download | sssd-9bd63b97c9c3132a0b3c8c6bd1c67f8c31a54c3c.tar.gz sssd-9bd63b97c9c3132a0b3c8c6bd1c67f8c31a54c3c.tar.xz sssd-9bd63b97c9c3132a0b3c8c6bd1c67f8c31a54c3c.zip |
Sync ldb with upstream (includes uncommitted ldb async patches)
Diffstat (limited to 'ldb/tools/ldbtest.c')
-rw-r--r-- | ldb/tools/ldbtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldb/tools/ldbtest.c b/ldb/tools/ldbtest.c index 169ff02da..f3d6d621a 100644 --- a/ldb/tools/ldbtest.c +++ b/ldb/tools/ldbtest.c @@ -227,7 +227,7 @@ static void search_uid(struct ldb_context *ldb, struct ldb_dn *basedn, int nreco int ret; expr = talloc_asprintf(ldb, "(uid=TEST%d)", uid); - ret = ldb_search(ldb, basedn, LDB_SCOPE_SUBTREE, expr, NULL, &res); + ret = ldb_search(ldb, ldb, &res, basedn, LDB_SCOPE_SUBTREE, NULL, "%s", expr); if (ret != LDB_SUCCESS || (uid < nrecords && res->count != 1)) { printf("Failed to find %s - %s\n", expr, ldb_errstring(ldb)); @@ -354,7 +354,7 @@ static void start_test_index(struct ldb_context **ldb) basedn = ldb_dn_new(*ldb, *ldb, options->basedn); - ret = ldb_search(*ldb, basedn, LDB_SCOPE_SUBTREE, "uid=test", NULL, &res); + ret = ldb_search(*ldb, *ldb, &res, basedn, LDB_SCOPE_SUBTREE, NULL, "uid=test"); if (ret != LDB_SUCCESS) { printf("Search with (uid=test) filter failed!\n"); exit(1); |