svn commit: samba r26302 - in branches/SAMBA_4_0/source/scripting/libjs: .

abartlet at samba.org abartlet at samba.org
Wed Dec 5 01:25:41 GMT 2007


Author: abartlet
Date: 2007-12-05 01:25:39 +0000 (Wed, 05 Dec 2007)
New Revision: 26302

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

Log:
Print the error string for failed rootdse searches.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/scripting/libjs/provision.js


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/libjs/provision.js
===================================================================
--- branches/SAMBA_4_0/source/scripting/libjs/provision.js	2007-12-05 01:25:07 UTC (rev 26301)
+++ branches/SAMBA_4_0/source/scripting/libjs/provision.js	2007-12-05 01:25:39 UTC (rev 26302)
@@ -198,7 +198,10 @@
 	var j;
 
 	var res = ldb.search("(objectClass=*)", "", ldb.SCOPE_BASE, rootDSE_attrs);
-	assert(res.error == 0);
+	if (res.error != 0) {
+		info.message("rootdse search failed: " + res.errstr + "\n");
+		assert(res.error == 0);
+	}
 	assert(res.msgs.length == 1);
 	if (typeof(res.msgs[0].namingContexts) == "undefined") {
 		return;



More information about the samba-cvs mailing list