svn commit: samba r3786 - in branches/SAMBA_4_0/source/libcli/auth: .

metze at samba.org metze at samba.org
Tue Nov 16 13:05:52 GMT 2004


Author: metze
Date: 2004-11-16 13:05:51 +0000 (Tue, 16 Nov 2004)
New Revision: 3786

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3786

Log:
send a mechListMIC to make the current samba3 client happy

metze

Modified:
   branches/SAMBA_4_0/source/libcli/auth/spnego.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/auth/spnego.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/auth/spnego.c	2004-11-16 11:17:59 UTC (rev 3785)
+++ branches/SAMBA_4_0/source/libcli/auth/spnego.c	2004-11-16 13:05:51 UTC (rev 3786)
@@ -465,11 +465,19 @@
 			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) {



More information about the samba-cvs mailing list