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

abartlet at samba.org abartlet at samba.org
Fri Sep 8 04:36:01 GMT 2006


Author: abartlet
Date: 2006-09-08 04:36:00 +0000 (Fri, 08 Sep 2006)
New Revision: 18248

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

Log:
Bail out with a error message if this search fails for some reason.

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	2006-09-08 04:35:41 UTC (rev 18247)
+++ branches/SAMBA_4_0/source/scripting/libjs/provision.js	2006-09-08 04:36:00 UTC (rev 18248)
@@ -224,6 +224,10 @@
 			}
 			
 			var res3 = ldb.search("(|(objectclass=*)(dn=*))", basedn, ldb.SCOPE_SUBTREE, attrs);
+			if (typeof(res3) == "undefined") {
+				info.message("ldb search failed: " + ldb.errstring() + "\n");
+				continue;
+			}
 			if (res3.length != 0) {
 				info.message("Failed to delete all records under " + basedn + ", " + res3.length + " records remaining\n");
 			}



More information about the samba-cvs mailing list