mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
r18977: Seperate these asserts, so we know which fired.
Andrew Bartlett
(This used to be commit 9b2003618b
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
6cb33a5467
commit
eaa427801a
@ -550,7 +550,8 @@ function provision_dns(subobj, message, paths, session_info, credentials)
|
||||
|
||||
var attrs = new Array("objectGUID");
|
||||
res = ldb.search("objectGUID=*", subobj.BASEDN, ldb.SCOPE_BASE, attrs);
|
||||
assert(res.length == 1 && res[0].objectGUID != undefined)
|
||||
assert(res.length == 1);
|
||||
assert(res[0].objectGUID != undefined);
|
||||
subobj.DOMAINGUID = res[0].objectGUID;
|
||||
|
||||
subobj.HOSTGUID = searchone(ldb, subobj.BASEDN, "(&(objectClass=computer)(cn=" + subobj.NETBIOSNAME + "))", "objectGUID");
|
||||
|
Reference in New Issue
Block a user