1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r13356: test utf8 usernames

This commit is contained in:
Simo Sorce 2006-02-05 21:25:18 +00:00 committed by Gerald (Jerry) Carter
parent 07fa55db32
commit 7ddec83a60

View File

@ -52,6 +52,15 @@ cn: LDAPtestUSER2
assert(ok);
}
ok = ldb.add("
dn: cn=ldaptestutf8user èùéìòà ,cn=users," + base_dn + "
objectClass: user
");
if (!ok) {
println(ldb.errstring());
assert(ok);
}
println("Testing ldb.search");
var res = ldb.search("(&(cn=ldaptestuser)(objectClass=user))");
@ -81,6 +90,21 @@ cn: LDAPtestUSER2
println(ldb.errstring());
assert(ok);
}
println("Testing ldb.search");
var res = ldb.search("(&(cn=ldaptestutf8user ÈÙÉÌÒÀ)(objectClass=user))");
assert(res[0].dn == "cn=ldaptestutf8user èùéìòà,cn=users," + base_dn);
assert(res[0].cn == "ldaptestutf8user èùéìòà");
assert(res[0].name == "ldaptestutf8user èùéìòà");
assert(res[0].objectGUID != undefined);
assert(res[0].whenCreated != undefined);
ok = ldb.del(res[0].dn);
if (!ok) {
println(ldb.errstring());
assert(ok);
}
}
function find_basedn(ldb)