From 59694ad0a4cc489f1baa4c2c94c6322c0f22c1df Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 18 Apr 2023 12:47:04 +0200 Subject: 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 Reviewed-by: Stefan Metzmacher Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Tue May 16 11:54:32 UTC 2023 on atb-devel-224 --- libcli/security/dom_sid.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libcli/security') diff --git a/libcli/security/dom_sid.h b/libcli/security/dom_sid.h index bb81037b904..d99713cb914 100644 --- a/libcli/security/dom_sid.h +++ b/libcli/security/dom_sid.h @@ -68,6 +68,7 @@ extern const struct dom_sid global_sid_Samba_SMB3; extern const struct dom_sid global_sid_Samba_NPA_Flags; #define SAMBA_NPA_FLAGS_NEED_IDLE 1 +#define SAMBA_NPA_FLAGS_WINBIND_OFF 2 struct auth_SidAttr; enum lsa_SidType; -- cgit v1.2.1