summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-02 13:25:20 +0200
committerStefan Metzmacher <metze@samba.org>2013-08-10 09:19:00 +0200
commitb5104768225ae0308aa3f22f8d9bca389ef3cb3a (patch)
treef7391c97efb04053f1f578b99b2c70747bb1609d /source4/auth
parent49f347eb11bd12a3f25b0fcb8ba36d4a36594868 (diff)
downloadsamba-b5104768225ae0308aa3f22f8d9bca389ef3cb3a.tar.gz
samba-b5104768225ae0308aa3f22f8d9bca389ef3cb3a.tar.bz2
samba-b5104768225ae0308aa3f22f8d9bca389ef3cb3a.zip
s4:gensec/schannel: use the correct computer_name from netlogon_creds_CredentialState
We need to use the same computer_name we used in the netr_Authenticate3 request. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/gensec/schannel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/auth/gensec/schannel.c b/source4/auth/gensec/schannel.c
index 3896a41828..91f166be38 100644
--- a/source4/auth/gensec/schannel.c
+++ b/source4/auth/gensec/schannel.c
@@ -94,17 +94,17 @@ static NTSTATUS schannel_update(struct gensec_security *gensec_security, TALLOC_
NL_FLAG_UTF8_DNS_DOMAIN_NAME |
NL_FLAG_UTF8_NETBIOS_COMPUTER_NAME;
bind_schannel.oem_netbios_domain.a = cli_credentials_get_domain(gensec_security->credentials);
- bind_schannel.oem_netbios_computer.a = cli_credentials_get_workstation(gensec_security->credentials);
+ bind_schannel.oem_netbios_computer.a = creds->computer_name;
bind_schannel.utf8_dns_domain = cli_credentials_get_realm(gensec_security->credentials);
/* w2k3 refuses us if we use the full DNS workstation?
why? perhaps because we don't fill in the dNSHostName
attribute in the machine account? */
- bind_schannel.utf8_netbios_computer = cli_credentials_get_workstation(gensec_security->credentials);
+ bind_schannel.utf8_netbios_computer = creds->computer_name;
#else
bind_schannel.Flags = NL_FLAG_OEM_NETBIOS_DOMAIN_NAME |
NL_FLAG_OEM_NETBIOS_COMPUTER_NAME;
bind_schannel.oem_netbios_domain.a = cli_credentials_get_domain(gensec_security->credentials);
- bind_schannel.oem_netbios_computer.a = cli_credentials_get_workstation(gensec_security->credentials);
+ bind_schannel.oem_netbios_computer.a = creds->computer_name;
#endif
ndr_err = ndr_push_struct_blob(out, out_mem_ctx, &bind_schannel,