svn commit: samba r22825 - in branches/SAMBA_4_0/source/rpc_server: .

metze at samba.org metze at samba.org
Sun May 13 12:59:43 GMT 2007


Author: metze
Date: 2007-05-13 12:59:42 +0000 (Sun, 13 May 2007)
New Revision: 22825

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

Log:
let longhorn beta3 work with samba4

if we return a zero assoc_group_id longhorn beta3 stops
after getting the bind_ack.

metze
Modified:
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c	2007-05-13 12:52:13 UTC (rev 22824)
+++ branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c	2007-05-13 12:59:42 UTC (rev 22825)
@@ -603,7 +603,8 @@
 	pkt.pfc_flags = DCERPC_PFC_FLAG_FIRST | DCERPC_PFC_FLAG_LAST;
 	pkt.u.bind_ack.max_xmit_frag = 0x2000;
 	pkt.u.bind_ack.max_recv_frag = 0x2000;
-	pkt.u.bind_ack.assoc_group_id = call->pkt.u.bind.assoc_group_id;
+	/* we need to send a non zero assoc_group_id here to make longhorn happy, it also matches samba3 */
+	pkt.u.bind_ack.assoc_group_id = 0x12345678;
 	if (iface) {
 		/* FIXME: Use pipe name as specified by endpoint instead of interface name */
 		pkt.u.bind_ack.secondary_address = talloc_asprintf(call, "\\PIPE\\%s", iface->name);



More information about the samba-cvs mailing list