summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-04-25 16:36:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:37 -0500
commitba6f0b0c4867a5b3901c4dd75ffb9347b3477f64 (patch)
treeaa43bcec225fbc54ef0024b61403b05c16219d7e /source4/dsdb
parent9aeaac2c2bf37431ed60cfe86f25dd9ee5505937 (diff)
downloadsamba-ba6f0b0c4867a5b3901c4dd75ffb9347b3477f64.tar.gz
samba-ba6f0b0c4867a5b3901c4dd75ffb9347b3477f64.tar.bz2
samba-ba6f0b0c4867a5b3901c4dd75ffb9347b3477f64.zip
r22522: Print why we can't find these entries.
Andrew Bartlett (This used to be commit 465f1811683d22f4a3e3f5e693b3b29c59053cb4)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/samdb.c8
1 files changed, 7 insertions, 1 deletions
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);