From ebbb93cc7a57a118b82b8f383d25f1eb022397d6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 18 Apr 2023 12:09:45 +0200 Subject: rpc: Add global_sid_Samba_NPA_Flags SID This will be used as a flexible way to pass per-RPC-connection flags over ncalrpc to the RPC server without having to modify named_pipe_auth_req_info6 every time something new needs to be passed. It's modeled after global_sid_Samba_SMB3. Bug: https://bugzilla.samba.org/show_bug.cgi?id=15361 Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- libcli/security/dom_sid.h | 3 +++ libcli/security/util_sid.c | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'libcli') diff --git a/libcli/security/dom_sid.h b/libcli/security/dom_sid.h index 98ee935ff97..bb81037b904 100644 --- a/libcli/security/dom_sid.h +++ b/libcli/security/dom_sid.h @@ -66,6 +66,9 @@ extern const struct dom_sid global_sid_Unix_NFS_Mode; extern const struct dom_sid global_sid_Unix_NFS_Other; 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 + struct auth_SidAttr; enum lsa_SidType; diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c index 0a8e114c338..6ee22284033 100644 --- a/libcli/security/util_sid.c +++ b/libcli/security/util_sid.c @@ -165,6 +165,13 @@ const struct dom_sid global_sid_Unix_NFS_Other = /* Unix other, MS NFS and Appl const struct dom_sid global_sid_Samba_SMB3 = {1, 1, {0,0,0,0,0,22}, {1397571891, }}; +const struct dom_sid global_sid_Samba_NPA_Flags = {1, + 1, + {0, 0, 0, 0, 0, 22}, + { + 2041152804, + }}; + /* Unused, left here for documentary purposes */ #if 0 #define SECURITY_NULL_SID_AUTHORITY 0 -- cgit v1.2.1