summaryrefslogtreecommitdiff
path: root/source4/auth/ntlm/auth_sam.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-08-08 14:05:16 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-08-08 14:05:16 +1000
commit185788f416be9ab07588f70755583e9a4ec02418 (patch)
treea8bde8bd48d76cad53c2585c5ac89935e48ea028 /source4/auth/ntlm/auth_sam.c
parentfb7c5c26971fbe2d00c7c3b0689e3380c7a6e999 (diff)
downloadsamba-185788f416be9ab07588f70755583e9a4ec02418.tar.gz
samba-185788f416be9ab07588f70755583e9a4ec02418.tar.bz2
samba-185788f416be9ab07588f70755583e9a4ec02418.zip
Always set a session key, even for the 'no password' case.
This is for bug 5664 reported by Tom <hto@arcor.de>. Andrew Bartlett (This used to be commit a106a4ccc435d149072fb884caf95e5517cd4204)
Diffstat (limited to 'source4/auth/ntlm/auth_sam.c')
-rw-r--r--source4/auth/ntlm/auth_sam.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/auth/ntlm/auth_sam.c b/source4/auth/ntlm/auth_sam.c
index 2c13cd963d..1b8233b8a4 100644
--- a/source4/auth/ntlm/auth_sam.c
+++ b/source4/auth/ntlm/auth_sam.c
@@ -156,6 +156,8 @@ static NTSTATUS authsam_password_ok(struct auth_context *auth_context,
if (lp_null_passwords(auth_context->lp_ctx)) {
DEBUG(3,("Account for user '%s' has no password and null passwords are allowed.\n",
user_info->mapped.account_name));
+ *lm_sess_key = data_blob(NULL, 0);
+ *user_sess_key = data_blob(NULL, 0);
return NT_STATUS_OK;
} else {
DEBUG(3,("Account for user '%s' has no password and null passwords are NOT allowed.\n",