1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

r16068: Check against the correct result in the ldap.js test

Andrew Bartlett
(This used to be commit 52b4e83a1c2cd47bf2f8b6d65419dae12631725a)
This commit is contained in:
Andrew Bartlett 2006-06-06 22:31:20 +00:00 committed by Gerald (Jerry) Carter
parent 4f619f4874
commit 7707d453c6

View File

@ -160,9 +160,9 @@ objectClass: user
println("Testing ldb.search for (&(cn=ldaptestuser)(objectCategory=cn=person,cn=schema,cn=configuration," + base_dn + "))");
var res2 = ldb.search("(&(cn=ldaptestuser)(objectCategory=cn=person,cn=schema,cn=configuration," + base_dn + "))");
if (res.length != 1) {
if (res2.length != 1) {
println("Could not find (&(cn=ldaptestuser)(objectCategory=cn=person,cn=schema,cn=configuration," + base_dn + "))");
assert(res.length == 1);
assert(res2.length == 1);
}
assert(res[0].dn == res2[0].dn);