summaryrefslogtreecommitdiffstats
path: root/libcli/auth/netlogon_creds_cli.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-01-17 14:08:59 +0100
committerStefan Metzmacher <metze@samba.org>2014-01-22 17:12:05 +0100
commit387ed2e15df085274f72cebda341040a1e767a4b (patch)
tree9a558dc117bf17190025cd2782df032524c8aba1 /libcli/auth/netlogon_creds_cli.c
parent8cf4eff201aa9e1ba8127311bcfc2a357fb4ef03 (diff)
downloadsamba-387ed2e15df085274f72cebda341040a1e767a4b.tar.gz
samba-387ed2e15df085274f72cebda341040a1e767a4b.tar.xz
samba-387ed2e15df085274f72cebda341040a1e767a4b.zip
libcli/auth: don't alter the computer_name in cluster mode.
This breaks NTLMv2 authentication. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli/auth/netlogon_creds_cli.c')
-rw-r--r--libcli/auth/netlogon_creds_cli.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c
index 37bdf742570..88893ad7d3a 100644
--- a/libcli/auth/netlogon_creds_cli.c
+++ b/libcli/auth/netlogon_creds_cli.c
@@ -261,28 +261,12 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
bool seal_secure_channel = true;
enum dcerpc_AuthLevel auth_level = DCERPC_AUTH_LEVEL_NONE;
bool neutralize_nt4_emulation = false;
- struct server_id self = {
- .vnn = NONCLUSTER_VNN,
- .unique_id = SERVERID_UNIQUE_ID_NOT_TO_VERIFY,
- };
-
- if (msg_ctx != NULL) {
- self = messaging_server_id(msg_ctx);
- }
*_context = NULL;
- if (self.vnn != NONCLUSTER_VNN) {
- client_computer = talloc_asprintf(frame,
- "%s_cluster_vnn_%u",
- lpcfg_netbios_name(lp_ctx),
- (unsigned)self.vnn);
- if (client_computer == NULL) {
- TALLOC_FREE(frame);
- return NT_STATUS_NO_MEMORY;
- }
- } else {
- client_computer = lpcfg_netbios_name(lp_ctx);
+ client_computer = lpcfg_netbios_name(lp_ctx);
+ if (strlen(client_computer) > 15) {
+ return NT_STATUS_INVALID_PARAMETER_MIX;
}
/*