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

r26302: Print the error string for failed rootdse searches.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2007-12-05 01:25:39 +01:00
committed by Stefan Metzmacher
parent 5e93ca2ea1
commit a7595d009a

View File

@@ -198,7 +198,10 @@ function ldb_erase_partitions(info, ldb, ldapbackend)
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;