summaryrefslogtreecommitdiff
path: root/libcli/security
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2023-04-18 12:47:04 +0200
committerVolker Lendecke <vl@samba.org>2023-05-16 11:54:32 +0000
commit59694ad0a4cc489f1baa4c2c94c6322c0f22c1df (patch)
tree2abfdc5792e6f264f89ca96585a1a3d5ab2d7b05 /libcli/security
parentbb3ea36e10079ad9c73c68d7ed8fce51ecb40ebe (diff)
downloadsamba-59694ad0a4cc489f1baa4c2c94c6322c0f22c1df.tar.gz
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
Diffstat (limited to 'libcli/security')
-rw-r--r--libcli/security/dom_sid.h1
1 files changed, 1 insertions, 0 deletions
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;