1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3/rpc_server
Alexander Bokovoy c7a4578d06 s3: pass DCE RPC handle type to create_policy_hnd
Various RPC services expect policy handles of a specific type.

s3 RPC server did not allow to create policy handles with a specific
type while actually requiring that policy handle type itself in some
places.

Make sure we are able to specify the policy on-wire handle type when
creating the policy handle. The changes follow s4 DCE RPC server
implementation.

The original logic to always set on-wire handle type to 0 can be tracked
down to commit fdeea341ed when we didn't
really know about differences in on-wire handle types.

All but LSA trusted domain RPC calls do not check the on-wire handle
type in s3 RPC server.

Fixes trusted domain operations when Samba RPC client attempts to call
s3 RPC server to perform lsa_lsaRSetForestTrustInformation in FreeIPA.
This fix is a pre-requisite for FreeIPA-FreeIPA forest trust.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Apr 28 22:55:29 UTC 2020 on sn-devel-184
2020-04-28 22:55:29 +00:00
..
dfs s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
dssetup s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
echo s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
epmapper s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
eventlog s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
fss s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
initshutdown s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
lsa s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
mdssvc s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
netlogon s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
ntsvcs s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
samr s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
spoolss s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
srvsvc s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
svcctl s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
winreg s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
wkssvc s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
epmd.c s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
epmd.h s3:rpc_server: Reinitialize dcesrv_context in external epmd daemon 2020-03-20 15:36:32 +00:00
fssd.c s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
fssd.h s3:rpc_server: Reinitialize dcesrv_context in external fssd daemon 2020-03-20 15:36:32 +00:00
lsasd.c s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
lsasd.h s3:rpc_server: Reinitialize dcesrv_context in external lsasd daemon 2020-03-20 15:36:32 +00:00
mdssd.c s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
mdssd.h s3:rpc_server: Reinitialize dcesrv_context in external mdssd daemon 2020-03-20 15:36:32 +00:00
rpc_config.c s3:rpc_server: Setup dcesrv_context callbacks 2020-03-20 15:36:33 +00:00
rpc_config.h s3:rpc_server: Add global dcesrv_context init and shutdown functions 2020-03-20 15:36:32 +00:00
rpc_contexts.c s3:rpc_server: Set debug class in all rpc server related files 2019-07-22 16:49:15 +00:00
rpc_contexts.h
rpc_ep_register.c s3:rpc_server: Drop dcerpc_binding_vector usage in the server side 2020-03-20 15:36:34 +00:00
rpc_ep_register.h s3:rpc_server: Drop dcerpc_binding_vector usage in the server side 2020-03-20 15:36:34 +00:00
rpc_handles.c s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
rpc_modules.c s3:rpc_server: Remove unused RPC module init and shutdown callbacks 2020-03-20 15:36:36 +00:00
rpc_modules.h s3:rpc_server: Remove unused RPC module init and shutdown callbacks 2020-03-20 15:36:36 +00:00
rpc_ncacn_np.c s3:rpc_server: Improve local dispatching 2020-04-08 22:23:05 +00:00
rpc_ncacn_np.h s3:rpc_server: Retrieve dcesrv_context from parent context to open NP 2020-03-20 15:36:35 +00:00
rpc_pipes.h s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
rpc_server.c s3:rpc_server: Fix talloc_free() with references error on server exit 2020-04-01 10:28:43 +00:00
rpc_server.h s3:rpc_server: Remove s3 rpc server loop 2020-03-20 15:36:36 +00:00
rpc_service_setup.c s3:rpc_server: Drop dcerpc_binding_vector usage in the server side 2020-03-20 15:36:34 +00:00
rpc_service_setup.h s3:rpc_server: Drop dcerpc_binding_vector usage in the server side 2020-03-20 15:36:34 +00:00
rpc_sock_helper.c s3:rpc_server: Drop dcerpc_binding_vector usage in the server side 2020-03-20 15:36:34 +00:00
rpc_sock_helper.h s3:rpc_server: Drop dcerpc_binding_vector usage in the server side 2020-03-20 15:36:34 +00:00
srv_access_check.c s3:rpc_server: Set debug class in all rpc server related files 2019-07-22 16:49:15 +00:00
srv_access_check.h
srv_pipe_hnd.c s3:rpc_server: Retrieve dcesrv_context from parent context to open NP 2020-03-20 15:36:35 +00:00
srv_pipe_hnd.h s3:rpc_server: Retrieve dcesrv_context from parent context to open NP 2020-03-20 15:36:35 +00:00
srv_pipe.c s3:rpc_server: Remove s3 rpc server loop 2020-03-20 15:36:36 +00:00
srv_pipe.h s3:rpc_server: Remove s3 rpc server loop 2020-03-20 15:36:36 +00:00
wscript_build s3:rpc_server: Remove dead code 2020-03-20 17:11:28 +00:00