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/spoolss
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
..
srv_iremotewinspool_nt.c s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
srv_iremotewinspool.c s3:rpc_server: Improve local dispatching 2020-04-08 22:23:05 +00:00
srv_spoolss_handle.h s3-spoolss: Create a sperate header file for 'struct printer_handle' 2017-01-06 12:28:18 +01:00
srv_spoolss_nt.c s3: pass DCE RPC handle type to create_policy_hnd 2020-04-28 22:55:29 +00:00
srv_spoolss_nt.h
srv_spoolss_util.c Revert "Use "localhost" to be ipv6 only friendly" 2018-03-19 15:34:32 +01:00
srv_spoolss_util.h s3-spoolss: add winreg_del_driver_package_internal() 2017-05-09 20:44:17 +02:00