svn commit: samba r22522 - in branches/SAMBA_4_0/source/dsdb/samdb: .

abartlet at samba.org abartlet at samba.org
Wed Apr 25 16:36:48 GMT 2007


Author: abartlet
Date: 2007-04-25 16:36:46 +0000 (Wed, 25 Apr 2007)
New Revision: 22522

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22522

Log:
Print why we can't find these entries.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/samdb.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/samdb.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/samdb.c	2007-04-25 16:36:15 UTC (rev 22521)
+++ branches/SAMBA_4_0/source/dsdb/samdb/samdb.c	2007-04-25 16:36:46 UTC (rev 22522)
@@ -1163,6 +1163,8 @@
 
 	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 @@
 
 	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);



More information about the samba-cvs mailing list