1 --- a/source3/librpc/rpc/rpc_common.c
2 +++ b/source3/librpc/rpc/rpc_common.c
3 @@ -92,9 +92,11 @@ bool smb_register_ndr_interface(const st
5 static bool initialize_interfaces(void)
8 if (!smb_register_ndr_interface(&ndr_table_lsarpc)) {
12 #ifdef ACTIVE_DIRECTORY
13 if (!smb_register_ndr_interface(&ndr_table_dssetup)) {
15 --- a/source3/smbd/server_exit.c
16 +++ b/source3/smbd/server_exit.c
17 @@ -162,7 +162,9 @@ static void exit_server_common(enum serv
22 rpc_lsarpc_shutdown();
27 --- a/source3/rpc_server/rpc_ep_setup.c
28 +++ b/source3/rpc_server/rpc_ep_setup.c
29 @@ -508,6 +508,7 @@ static bool srvsvc_init_cb(void *ptr)
34 static bool lsarpc_init_cb(void *ptr)
36 struct dcesrv_ep_context *ep_ctx =
37 @@ -556,6 +557,7 @@ static bool lsarpc_init_cb(void *ptr)
44 static bool samr_init_cb(void *ptr)
45 @@ -1106,12 +1108,14 @@ bool dcesrv_ep_setup(struct tevent_conte
50 lsarpc_cb.init = lsarpc_init_cb;
51 lsarpc_cb.shutdown = NULL;
52 lsarpc_cb.private_data = ep_ctx;
53 if (!NT_STATUS_IS_OK(rpc_lsarpc_init(&lsarpc_cb))) {
59 samr_cb.init = samr_init_cb;
60 --- a/source3/rpc_server/rpc_handles.c
61 +++ b/source3/rpc_server/rpc_handles.c
62 @@ -63,7 +63,10 @@ static bool is_samr_lsa_pipe(const struc
64 ndr_syntax_id_equal(syntax, &ndr_table_samr.syntax_id) ||
66 - ndr_syntax_id_equal(syntax, &ndr_table_lsarpc.syntax_id);
68 + ndr_syntax_id_equal(syntax, &ndr_table_lsarpc.syntax_id) ||
73 size_t num_pipe_handles(struct pipes_struct *p)