summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-23 12:34:41 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-23 15:42:33 +1100
commit7d975bb848948d740fc81fb3e8c3cc372c76031c (patch)
treeb93d1f73677569bdebea469768dfbb99719780ec
parent26b61aca2f064e0b657eb9f4b09283ad00b13d87 (diff)
downloadsamba-7d975bb848948d740fc81fb3e8c3cc372c76031c.tar.gz
samba-7d975bb848948d740fc81fb3e8c3cc372c76031c.tar.bz2
samba-7d975bb848948d740fc81fb3e8c3cc372c76031c.zip
s4:dsdb Add error string in 'no such object' because of 0 replies case
-rw-r--r--source4/dsdb/samdb/ldb_modules/util.c3
1 files changed, 3 insertions, 0 deletions
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);
}