summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-08-01 17:22:54 +0200
committerStefan Metzmacher <metze@samba.org>2008-08-01 17:27:18 +0200
commitca086c9e2c9634763f3faff99b44e511aa626a3f (patch)
tree1f0d33a637d5811bb08c132be470c6dfb91f6dc7 /source4
parent9f5325ce394d4c6cae0d13cb9c3ddf87258ce5a9 (diff)
downloadsamba-ca086c9e2c9634763f3faff99b44e511aa626a3f.tar.gz
samba-ca086c9e2c9634763f3faff99b44e511aa626a3f.tar.bz2
samba-ca086c9e2c9634763f3faff99b44e511aa626a3f.zip
auth_server: set the workstation name
metze (This used to be commit 6d640ee4b84c72f6c2da0ee047c9bac916bf3e57)
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/ntlm/auth_server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/auth/ntlm/auth_server.c b/source4/auth/ntlm/auth_server.c
index 42606c14ba..bb8773e75e 100644
--- a/source4/auth/ntlm/auth_server.c
+++ b/source4/auth/ntlm/auth_server.c
@@ -71,6 +71,10 @@ static NTSTATUS server_get_challenge(struct auth_method_context *ctx, TALLOC_CTX
/* We don't want to get as far as the session setup */
io.in.credentials = cli_credentials_init_anon(mem_ctx);
+ cli_credentials_set_workstation(io.in.credentials,
+ lp_netbios_name(ctx->auth_ctx->lp_ctx),
+ CRED_SPECIFIED);
+
io.in.service = NULL;
io.in.workgroup = ""; /* only used with SPNEGO, disabled above */