summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools/ldbsearch.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-08-25 12:59:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:46 -0500
commit88b04ab6e65137079b2dad76d1cea07e7ea9ab80 (patch)
tree7357d0b7a7b602cb5f6fd508bffbe47592d2d270 /source4/lib/ldb/tools/ldbsearch.c
parentfd4e294c41a568c9f7d196361bb19fdeab3f4fde (diff)
downloadsamba-88b04ab6e65137079b2dad76d1cea07e7ea9ab80.tar.gz
samba-88b04ab6e65137079b2dad76d1cea07e7ea9ab80.tar.bz2
samba-88b04ab6e65137079b2dad76d1cea07e7ea9ab80.zip
r17830: Set the default_basedn (hey, it comes from the "default" naming contex :-)
once at connection time, after modules have been loaded. Introduce a function to retrieve the value where needed. (This used to be commit 0caf6a44e03393c645030a9288e7dfd31e97c98b)
Diffstat (limited to 'source4/lib/ldb/tools/ldbsearch.c')
-rw-r--r--source4/lib/ldb/tools/ldbsearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/tools/ldbsearch.c b/source4/lib/ldb/tools/ldbsearch.c
index f151164559..e6b8a48a95 100644
--- a/source4/lib/ldb/tools/ldbsearch.c
+++ b/source4/lib/ldb/tools/ldbsearch.c
@@ -219,7 +219,7 @@ static int do_search(struct ldb_context *ldb,
sctx->refs = 0;
if (basedn == NULL) {
- basedn = ldb_auto_basedn(ldb);
+ basedn = ldb_get_default_basedn(ldb);
}
req->operation = LDB_SEARCH;