From 4af8f37d64dc24e6747589b90eae253d930b311a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 16 Nov 2004 13:05:51 +0000 Subject: r3786: send a mechListMIC to make the current samba3 client happy metze (This used to be commit 2403186562698b8e13c20741a0cbed812e1b8e89) --- source4/libcli/auth/spnego.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source4/libcli/auth') diff --git a/source4/libcli/auth/spnego.c b/source4/libcli/auth/spnego.c index 316deaee0d..b6436fe8c6 100644 --- a/source4/libcli/auth/spnego.c +++ b/source4/libcli/auth/spnego.c @@ -465,11 +465,19 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA return nt_status; } else { const char **mechlist = gensec_security_oids(out_mem_ctx, OID_SPNEGO); + const char *mechListMIC; + + mechListMIC = talloc_asprintf(out_mem_ctx,"%s$@%s", + lp_netbios_name(), + lp_realm()); + if (!mechListMIC) { + return NT_STATUS_NO_MEMORY; + } spnego_out.type = SPNEGO_NEG_TOKEN_INIT; spnego_out.negTokenInit.mechTypes = mechlist; spnego_out.negTokenInit.reqFlags = 0; - spnego_out.negTokenInit.mechListMIC = null_data_blob; + spnego_out.negTokenInit.mechListMIC = data_blob(mechListMIC, strlen(mechListMIC)); spnego_out.negTokenInit.mechToken = unwrapped_out; if (spnego_write_data(out_mem_ctx, out, &spnego_out) == -1) { -- cgit