mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r18248: Bail out with a error message if this search fails for some reason.
Andrew Bartlett
(This used to be commit 77b810f548
)
This commit is contained in:
parent
caa4bfce7c
commit
932265660e
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user