s4-rpc_server: Allow listener for RPC servers to use multiple processes
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 Oct 2016 21:36:51 +0000 (10:36 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 20 Dec 2016 00:11:23 +0000 (01:11 +0100)
commit6dc14b0a5d225ca8752088a1ee25edee46c1f956
tree3135586e60568c0bd1c482413568f9e2452e95ac
parentffb8b50e3c07c833fb7b1a583d21f9dc1166a0a6
s4-rpc_server: Allow listener for RPC servers to use multiple processes

To do this we must get the ncacn_ip_tcp listener to split out (for example)
netlogon onto a distinct port, so we change the registration code to split up each
ncacn_ip_tcp registration to create a new interface for indicated services.

The new option "rpc server port" allows control of the default port and
"rpc server port:netlogon" (also valid for any other pipe from the IDL name)
allows us to both work around limitations in socket_wrapper against
double-binding and allows specification of the port by the administrator.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
docs-xml/smbdotconf/protocol/rpcserverport.xml [new file with mode: 0644]
source4/rpc_server/dcerpc_server.c
source4/rpc_server/dcerpc_server.h
source4/rpc_server/service_rpc.c