summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-13 12:59:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:20 -0500
commit518f41fec0075aff78bba85f435f0a7876b114d3 (patch)
tree4cce8ff4191964c07a804c821e8c39348252aef8
parent4bb31605556fcaf49e8f864c59994b8c0604f99b (diff)
downloadsamba-518f41fec0075aff78bba85f435f0a7876b114d3.tar.gz
samba-518f41fec0075aff78bba85f435f0a7876b114d3.tar.bz2
samba-518f41fec0075aff78bba85f435f0a7876b114d3.zip
r22825: let longhorn beta3 work with samba4
if we return a zero assoc_group_id longhorn beta3 stops after getting the bind_ack. metze (This used to be commit 09aea65960073cc8b50a4b39531490876f6d89ef)
-rw-r--r--source4/rpc_server/dcerpc_server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index fddbc6076a..95f537c9c2 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -603,7 +603,8 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
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);