s3-selftest: need to enable lanman auth in order make RPC-SAMR-PASSWORDS pass.
authorGünther Deschner <gd@samba.org>
Thu, 7 May 2009 22:18:28 +0000 (00:18 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 7 May 2009 22:46:54 +0000 (00:46 +0200)
Guenther

selftest/target/Samba3.pm
source3/rpc_server/srv_samr_nt.c
source3/script/tests/selftest.sh

index 288ba8c8b76fdab35097f1ed92f0d486b577c6ae..3a51e6f4b2892cb87ee985ffe0134e548b800b2f 100644 (file)
@@ -117,6 +117,7 @@ sub setup_dc($$)
        my $dc_options = "
        domain master = yes
        domain logons = yes
+       lanman auth = yes
 ";
 
        my $vars = $self->provision($path,
index 6bd5635f2dabba24f153941c7d298829e5ae334d..862917b41882f3244172f79841b0f72ff13034eb 100644 (file)
@@ -1812,6 +1812,10 @@ NTSTATUS _samr_ChangePasswordUser(pipes_struct *p,
                lm_pass = pdb_get_lanman_passwd(pwd);
                nt_pass = pdb_get_nt_passwd(pwd);
 
+               if (!lm_pass || !nt_pass) {
+                       return NT_STATUS_WRONG_PASSWORD;
+               }
+
                memcpy(&lm_pwd.hash, lm_pass, sizeof(lm_pwd.hash));
                memcpy(&nt_pwd.hash, nt_pass, sizeof(nt_pwd.hash));
        }
index 15a0c06c1eb89bdd3388bcd80a96973a68cafb3a..d0695682579b3130f2bf1eb2d39fc76075330f4c 100755 (executable)
@@ -213,6 +213,7 @@ cat >$SERVERCONFFILE<<EOF
 
        domain master = yes
        domain logons = yes
+       lanman auth = yes
        time server = yes
 
        add user script = $PERL $SRCDIR/../lib/nss_wrapper/nss_wrapper.pl --path $NSS_WRAPPER_PASSWD --type passwd --action add --name %u