diff options
author | Andreas Schneider <asn@samba.org> | 2014-11-14 10:03:07 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-12-08 10:16:13 +0100 |
commit | 4051499d2cb0cbb737edc12da28d9e6656fb9f71 (patch) | |
tree | d01aceb3cd66e0eee551a5f64de4cf7f0cd3af0f /source3 | |
parent | 8ca520e6b4fba0365e31df6c6b3c28ec66feb3e7 (diff) | |
download | samba-4051499d2cb0cbb737edc12da28d9e6656fb9f71.tar.gz |
s3-libsmb: Set the netbios_name in use_ccache case too.
If we do not set the netbios_name we are not able to connect to a
Windows DC.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10279
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 206f25d815024248214f076fd60c35862e9de8a1)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/ntlmssp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c index e8c9ebfe72..0a62b8b11b 100644 --- a/source3/libsmb/ntlmssp.c +++ b/source3/libsmb/ntlmssp.c @@ -383,6 +383,15 @@ static NTSTATUS ntlmssp3_client_challenge(struct ntlmssp_state *ntlmssp_state, wbcErr wbc_status; int i; + /* + * We need to set the netbios name or we are not able to connect + * a Windows DC. + */ + if (ntlmssp_state->server.netbios_domain == NULL || + ntlmssp_state->server.netbios_domain[0] == '\0') { + ntlmssp_state->server.netbios_domain = ntlmssp_state->domain; + } + params.account_name = ntlmssp_state->user; params.domain_name = ntlmssp_state->domain; params.level = WBC_CREDENTIAL_CACHE_LEVEL_NTLMSSP; |