diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-12-30 16:53:08 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-03-24 17:34:56 +0100 |
commit | dee63fe4ca5d8dad820ff8b5f15edba41e6be65f (patch) | |
tree | a88813584a5ac1f728f3073d71d5cd76e9687801 /source3/utils | |
parent | 2dfc78a41a34e181ba9dcacf58010ddb0883a619 (diff) | |
download | samba-dee63fe4ca5d8dad820ff8b5f15edba41e6be65f.tar.gz samba-dee63fe4ca5d8dad820ff8b5f15edba41e6be65f.tar.bz2 samba-dee63fe4ca5d8dad820ff8b5f15edba41e6be65f.zip |
s3:ntlmssp: use client.netbios_name instead of workstation
metze
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/ntlm_auth.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index 3eb34a7d9a..049aa309e6 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -571,7 +571,7 @@ static NTSTATUS winbind_pw_check(struct ntlmssp_state *ntlmssp_state, DATA_BLOB char *unix_name = NULL; nt_status = contact_winbind_auth_crap(ntlmssp_state->user, ntlmssp_state->domain, - ntlmssp_state->workstation, + ntlmssp_state->client.netbios_name, &ntlmssp_state->chal, &ntlmssp_state->lm_resp, &ntlmssp_state->nt_resp, @@ -595,7 +595,7 @@ static NTSTATUS winbind_pw_check(struct ntlmssp_state *ntlmssp_state, DATA_BLOB DEBUG(NT_STATUS_EQUAL(nt_status, NT_STATUS_ACCESS_DENIED) ? 0 : 3, ("Login for user [%s]\\[%s]@[%s] failed due to [%s]\n", ntlmssp_state->domain, ntlmssp_state->user, - ntlmssp_state->workstation, + ntlmssp_state->client.netbios_name, error_string ? error_string : "unknown error (NULL)")); ntlmssp_state->callback_private = NULL; } @@ -629,7 +629,8 @@ static NTSTATUS local_pw_check(struct ntlmssp_state *ntlmssp_state, DATA_BLOB *u ntlmssp_state->user); } else { DEBUG(3, ("Login for user [%s]\\[%s]@[%s] failed due to [%s]\n", - ntlmssp_state->domain, ntlmssp_state->user, ntlmssp_state->workstation, + ntlmssp_state->domain, ntlmssp_state->user, + ntlmssp_state->client.netbios_name, nt_errstr(nt_status))); ntlmssp_state->callback_private = NULL; } |