auth_server: set the workstation name
authorStefan Metzmacher <metze@samba.org>
Fri, 1 Aug 2008 15:22:54 +0000 (17:22 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Aug 2008 15:27:18 +0000 (17:27 +0200)
metze

source/auth/ntlm/auth_server.c

index 42606c14baeac408475d4fe337bf4bde6e9fdd24..bb8773e75e536677d91aaa8937c153d82e8108ba 100644 (file)
@@ -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 */