r21361: let samba3sam.js pass when we'll use unicodePwd for storing the nt hash
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Feb 2007 12:51:44 +0000 (12:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:48:19 +0000 (14:48 -0500)
jelmer: what should this test really test?

metze

testprogs/ejs/samba3sam.js

index d69a1c1053abf69613f10852895ec3d09e2a529a..e0fab647b585f2bbd150950aac6ce5acfe1320b1 100755 (executable)
@@ -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)");