rpc_server3: Pass winbind_env_set() state through to rpcd_*
authorVolker Lendecke <vl@samba.org>
Tue, 18 Apr 2023 10:47:04 +0000 (12:47 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 16 May 2023 11:54:32 +0000 (11:54 +0000)
commit59694ad0a4cc489f1baa4c2c94c6322c0f22c1df
tree2abfdc5792e6f264f89ca96585a1a3d5ab2d7b05
parentbb3ea36e10079ad9c73c68d7ed8fce51ecb40ebe
rpc_server3: Pass winbind_env_set() state through to rpcd_*

Winbind can ask rpcd_lsad for LookupNames etc. This can recurse back
into winbind for getpwnam. We have the "_NO_WINBINDD" environment
variable set in winbind itself for this case, but this is lost on the
way into rpcd_lsad. Use a flag in global_sid_Samba_NPA_Flags to pass
this information to dcerpc_core, where it sets the variable on every
call if requested.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15361
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue May 16 11:54:32 UTC 2023 on atb-devel-224
libcli/security/dom_sid.h
librpc/rpc/dcesrv_core.c
librpc/rpc/dcesrv_core.h
source3/rpc_client/local_np.c
source3/rpc_server/rpc_worker.c