From 3a78f7323a986703c9b7100f551b1c907a9e104b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 4 Jul 2007 11:06:32 +0000 Subject: 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) --- source4/lib/ldb/modules/paged_searches.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/lib') 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=*"); -- cgit