diff options
author | Volker Lendecke <vl@samba.org> | 2023-04-18 12:09:45 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2023-05-16 10:53:40 +0000 |
commit | ebbb93cc7a57a118b82b8f383d25f1eb022397d6 (patch) | |
tree | d486d983305f2b214a578fd6d4bf3f441fe98d77 /libcli | |
parent | 1d11e0489b2c91fc05c6befc0463695d7102abcc (diff) | |
download | samba-ebbb93cc7a57a118b82b8f383d25f1eb022397d6.tar.gz |
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 <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/security/dom_sid.h | 3 | ||||
-rw-r--r-- | libcli/security/util_sid.c | 7 |
2 files changed, 10 insertions, 0 deletions
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 |