diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-02-15 12:51:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:48:19 -0500 |
commit | 2b086ac63e660b7f65b3b2716326ceffd53aff99 (patch) | |
tree | 378f5e1d47ccbabd3340549fd0edc3f0fafc4fc5 | |
parent | 72162e08d32f455202a56a91b45889c07250dfba (diff) | |
download | samba-2b086ac63e660b7f65b3b2716326ceffd53aff99.tar.gz samba-2b086ac63e660b7f65b3b2716326ceffd53aff99.tar.bz2 samba-2b086ac63e660b7f65b3b2716326ceffd53aff99.zip |
r21361: let samba3sam.js pass when we'll use unicodePwd for storing the nt hash
jelmer: what should this test really test?
metze
(This used to be commit c8d903b606afb5dd11b8f1048a36943db02370e0)
-rwxr-xr-x | testprogs/ejs/samba3sam.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/testprogs/ejs/samba3sam.js b/testprogs/ejs/samba3sam.js index d69a1c1053..e0fab647b5 100755 --- a/testprogs/ejs/samba3sam.js +++ b/testprogs/ejs/samba3sam.js @@ -137,7 +137,7 @@ showInAdvancedViewOnly: TRUE dn: cn=Niemand,cn=Users,dc=vernstok,dc=nl objectClass: user unixName: bin -unicodePwd: geheim +sambaUnicodePwd: geheim cn: Niemand "); if (ok.error != 0) { @@ -147,27 +147,27 @@ cn: Niemand assert(ok.error == 0); println("Checking for existence of record (remote)"); - msg = ldb.search("(unixName=bin)", new Array('unixName','cn','dn', 'unicodePwd')); + msg = ldb.search("(unixName=bin)", new Array('unixName','cn','dn', 'sambaUnicodePwd')); assert(msg.error == 0); assert(msg.msgs.length == 1); assert(msg.msgs[0].cn == "Niemand"); - assert(msg.msgs[0].unicodePwd == "geheim"); + assert(msg.msgs[0].sambaUnicodePwd == "geheim"); println("Checking for existence of record (local && remote)"); - msg = ldb.search("(&(unixName=bin)(unicodePwd=geheim))", new Array('unixName','cn','dn', 'unicodePwd')); + msg = ldb.search("(&(unixName=bin)(sambaUnicodePwd=geheim))", new Array('unixName','cn','dn', 'sambaUnicodePwd')); assert(msg.error == 0); assert(msg.msgs.length == 1); // TODO: should check with more records assert(msg.msgs[0].cn == "Niemand"); assert(msg.msgs[0].unixName == "bin"); - assert(msg.msgs[0].unicodePwd == "geheim"); + assert(msg.msgs[0].sambaUnicodePwd == "geheim"); println("Checking for existence of record (local || remote)"); - msg = ldb.search("(|(unixName=bin)(unicodePwd=geheim))", new Array('unixName','cn','dn', 'unicodePwd')); + msg = ldb.search("(|(unixName=bin)(sambaUnicodePwd=geheim))", new Array('unixName','cn','dn', 'sambaUnicodePwd')); println("got " + msg.msgs.length + " replies"); assert(msg.error == 0); assert(msg.msgs.length == 1); // TODO: should check with more records assert(msg.msgs[0].cn == "Niemand"); - assert(msg.msgs[0].unixName == "bin" || msg.msgs[0].unicodePwd == "geheim"); + assert(msg.msgs[0].unixName == "bin" || msg.msgs[0].sambaUnicodePwd == "geheim"); println("Checking for data in destination database"); msg = s3.db.search("(cn=Niemand)"); |