From 07a21ba6f6957acf3aa2c9337367fac265f29934 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 24 Sep 2017 21:07:04 -0700 Subject: [PATCH] s4-rpc_server: Add back support for lsa over \\pipe\\netlogon optionally Pick up change from Samba: commit 31d625bcd2b0cb33dd98a37c202f5b371b871362 Author: Andrew Bartlett Date: Tue Dec 13 09:06:25 2016 +1300 s4-rpc_server: Add back support for lsa over \\pipe\\netlogon optionally The idea here is that perhaps some real client relies on this (and not just Samba torture commands), so we need a way to support it for the 4.6 release. If no such client emerges, it can be deprecated and removed in the normal way. Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Change-Id: Id20f98ffbc5eb4752bebee455e7b2b2c0f5017e0 Reviewed-on: https://code.wireshark.org/review/23703 Reviewed-by: Guy Harris --- tools/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm b/tools/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm index 7ca18a8483..fe5ca0bc5e 100644 --- a/tools/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm +++ b/tools/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm @@ -262,8 +262,11 @@ NTSTATUS dcerpc_server_$name\_init(void) .name = \"$name\", /* fill in all the operations */ +#ifdef DCESRV_INTERFACE_$uname\_INIT_SERVER + .init_server = DCESRV_INTERFACE_$uname\_INIT_SERVER, +#else .init_server = $name\__op_init_server, - +#endif .interface_by_uuid = $name\__op_interface_by_uuid, .interface_by_name = $name\__op_interface_by_name };