From 6f4b5798c96ed69d965d6c3c005518f87afda8d6 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 8 May 2009 00:18:28 +0200 Subject: s3-selftest: need to enable lanman auth in order make RPC-SAMR-PASSWORDS pass. Guenther --- source3/rpc_server/srv_samr_nt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/rpc_server/srv_samr_nt.c') diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 6bd5635f2da..862917b4188 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -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)); } -- cgit