1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-03 04:23:50 +03:00

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

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2006-09-08 04:36:00 +00:00
committed by Gerald (Jerry) Carter
parent d9ddfdf9e8
commit 77b810f548

View File

@@ -224,6 +224,10 @@ function ldb_erase_partitions(info, ldb)
}
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");
}