mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
s4-rpc_server: ensure we get a new endpoint for netlogon
If we share the single process RPC servers with the multi-process RPC servers on the same endpoint, they will default to running in an single process BUG: https://bugzilla.samba.org/show_bug.cgi?id=12939 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
0554bc237f
commit
bc48c4b54b
@ -354,8 +354,15 @@ _PUBLIC_ NTSTATUS dcesrv_interface_register(struct dcesrv_context *dce_ctx,
|
||||
* If we have mulitiple endpoints on port 0, they each
|
||||
* get an epemeral port (currently by walking up from
|
||||
* 1024).
|
||||
*
|
||||
* Because one endpoint can only have one process
|
||||
* model, we add a new IP_TCP endpoint for each model.
|
||||
*
|
||||
* This woks in conjunction with the forced overwrite
|
||||
* of ep->use_single_process below.
|
||||
*/
|
||||
if (!use_single_process && transport == NCACN_IP_TCP) {
|
||||
if (ep->use_single_process != use_single_process
|
||||
&& transport == NCACN_IP_TCP) {
|
||||
add_ep = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user