From ba6f0b0c4867a5b3901c4dd75ffb9347b3477f64 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 25 Apr 2007 16:36:46 +0000 Subject: r22522: Print why we can't find these entries. Andrew Bartlett (This used to be commit 465f1811683d22f4a3e3f5e693b3b29c59053cb4) --- source4/dsdb/samdb/samdb.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4/dsdb/samdb/samdb.c') diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c index dab2a23226..2208bb9333 100644 --- a/source4/dsdb/samdb/samdb.c +++ b/source4/dsdb/samdb/samdb.c @@ -1163,6 +1163,8 @@ struct ldb_dn *samdb_ntds_settings_dn(struct ldb_context *ldb) ret = ldb_search(ldb, ldb_dn_new(tmp_ctx, ldb, ""), LDB_SCOPE_BASE, NULL, root_attrs, &root_res); if (ret) { + DEBUG(1,("Searching for dsServiceName in rootDSE failed: %s\n", + ldb_errstring(ldb))); goto failed; } talloc_steal(tmp_ctx, root_res); @@ -1414,11 +1416,15 @@ BOOL samdb_is_pdc(struct ldb_context *ldb) tmp_ctx = talloc_new(ldb); if (tmp_ctx == NULL) { - goto failed; + DEBUG(1, ("talloc_new failed in samdb_is_pdc")); + return False; } ret = ldb_search(ldb, ldb_get_default_basedn(ldb), LDB_SCOPE_BASE, NULL, dom_attrs, &dom_res); if (ret) { + DEBUG(1,("Searching for fSMORoleOwner in %s failed: %s\n", + ldb_dn_get_linearized(ldb_get_default_basedn(ldb)), + ldb_errstring(ldb))); goto failed; } talloc_steal(tmp_ctx, dom_res); -- cgit