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:
committed by
Stefan Metzmacher
parent
5e93ca2ea1
commit
a7595d009a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user