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/examples | |
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/examples')
-rw-r--r-- | source3/lib/ldb/examples/ldbreader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/ldb/examples/ldbreader.c b/source3/lib/ldb/examples/ldbreader.c index 9ab21ee25f..35ea03b20e 100644 --- a/source3/lib/ldb/examples/ldbreader.c +++ b/source3/lib/ldb/examples/ldbreader.c @@ -56,7 +56,6 @@ static int vprintf_fn(void *private_data, const char *fmt, ...) int main(int argc, const char **argv) { struct ldb_context *ldb; - const char *expression = "(dn=*)"; struct ldb_result *resultMsg; int i; @@ -89,7 +88,7 @@ int main(int argc, const char **argv) confusing to start with. See RFC2254. */ if (LDB_SUCCESS != ldb_search(ldb, ldb, &resultMsg, NULL, LDB_SCOPE_DEFAULT, - NULL, expression) ) { + NULL, "(dn=*)") ) { printf("Problem in search\n"); exit(-1); } |