From 7d975bb848948d740fc81fb3e8c3cc372c76031c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 23 Oct 2009 12:34:41 +1100 Subject: s4:dsdb Add error string in 'no such object' because of 0 replies case --- source4/dsdb/samdb/ldb_modules/util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c index 476eb08ed0..372cad62e2 100644 --- a/source4/dsdb/samdb/ldb_modules/util.c +++ b/source4/dsdb/samdb/ldb_modules/util.c @@ -70,6 +70,9 @@ int dsdb_module_search_dn(struct ldb_module *module, if (res->count != 1) { /* we may be reading a DB that does not have the 'check base on search' option... */ ret = LDB_ERR_NO_SUCH_OBJECT; + ldb_asprintf_errstring(ldb_module_get_ctx(module), + "dsdb_module_search_dn: did not find base dn %s (%d results)", + ldb_dn_get_linearized(basedn), res->count); } else { *_res = talloc_steal(mem_ctx, res); } -- cgit