summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2022-12-15 11:58:11 +1300
committerAndrew Bartlett <abartlet@samba.org>2023-02-08 00:03:39 +0000
commit5147f011d9b2b37dd46939d4b50d71d50a6776c1 (patch)
tree8bc905a41fb9da6e6f3a916b6982f41b4860b7a7 /librpc
parente3fdb2d00152d86558a2ba29b92fd36440055461 (diff)
downloadsamba-5147f011d9b2b37dd46939d4b50d71d50a6776c1.tar.gz
auth: Shorten long SID flags combinations
The combination MANDATORY | ENABLED_BY_DEFAULT | ENABLED is very commonly used, and introducing a shorter alias for it makes the code clearer. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/security.idl5
1 files changed, 5 insertions, 0 deletions
diff --git a/librpc/idl/security.idl b/librpc/idl/security.idl
index 3d2c8a33903..05c40618a10 100644
--- a/librpc/idl/security.idl
+++ b/librpc/idl/security.idl
@@ -665,6 +665,11 @@ interface security
SE_GROUP_LOGON_ID = 0xC0000000
} security_GroupAttrs;
+ const uint32 SE_GROUP_DEFAULT_FLAGS =
+ SE_GROUP_MANDATORY |
+ SE_GROUP_ENABLED_BY_DEFAULT |
+ SE_GROUP_ENABLED;
+
/* This is not yet sent over the network, but is simply defined in IDL */
typedef [public] struct {
uint32 num_sids;