1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4-netlogon: Push the netlogon server in the AD DC into multiple processes

This allows the NETLOGON server to scale better, as it is often a bottleneck

What we are doing here is keeping the forced single process only for
other servers that declare they use DCE/RPC handles.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andrew Bartlett 2016-11-21 13:31:39 +13:00
parent 86e706a32d
commit abbd0a88de

View File

@ -275,6 +275,19 @@ _PUBLIC_ NTSTATUS dcesrv_interface_register(struct dcesrv_context *dce_ctx,
char *ep_string = NULL;
bool use_single_process = true;
/*
* If we are not using handles, there is no need for force
* this service into using a single process.
*
* However, due to the way we listen for RPC packets, we can
* only do this if we have a single service per pipe or TCP
* port, so we still force a single combined process for
* ncalrpc.
*/
if (iface->flags & DCESRV_INTERFACE_FLAGS_HANDLES_NOT_USED) {
use_single_process = false;
}
status = dcerpc_parse_binding(dce_ctx, ep_name, &binding);
if (NT_STATUS_IS_ERR(status)) {