summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/modules
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-07-04 11:06:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:59:06 -0500
commit3a78f7323a986703c9b7100f551b1c907a9e104b (patch)
treef2e07813d610d629e5e32f2740dce721a576c1de /source4/lib/ldb/modules
parent4ace7950d4fbd074611865eee816e748c56b7b83 (diff)
downloadsamba-3a78f7323a986703c9b7100f551b1c907a9e104b.tar.gz
samba-3a78f7323a986703c9b7100f551b1c907a9e104b.tar.bz2
samba-3a78f7323a986703c9b7100f551b1c907a9e104b.zip
r23703: Start to get Samba4 to again work with LDAP backends, after I turned
on metze's schema work. Andrew Bartlett (This used to be commit 3111bbdf64f57bf8d2638fd9829c071dcfeb4af1)
Diffstat (limited to 'source4/lib/ldb/modules')
-rw-r--r--source4/lib/ldb/modules/paged_searches.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/modules/paged_searches.c b/source4/lib/ldb/modules/paged_searches.c
index f4a06e841f..2022c39286 100644
--- a/source4/lib/ldb/modules/paged_searches.c
+++ b/source4/lib/ldb/modules/paged_searches.c
@@ -412,6 +412,7 @@ static int ps_init(struct ldb_module *module)
data = talloc(module, struct private_data);
if (data == NULL) {
+ ldb_set_errstring(module->ldb, "Out of Memory");
return LDB_ERR_OTHER;
}
module->private_data = data;
@@ -424,7 +425,7 @@ static int ps_init(struct ldb_module *module)
}
req->operation = LDB_SEARCH;
- req->op.search.base = ldb_dn_new(req, module->ldb, NULL);
+ req->op.search.base = ldb_dn_new(req, module->ldb, "");
req->op.search.scope = LDB_SCOPE_BASE;
req->op.search.tree = ldb_parse_tree(req, "objectClass=*");