4 miscellaneous IDL structures
11 const string SID_NULL = "S-1-0-0";
13 /* the world domain */
14 const string SID_WORLD_DOMAIN = "S-1-1";
15 const string SID_WORLD = "S-1-1-0";
17 /* SECURITY_CREATOR_SID_AUTHORITY */
18 const string SID_CREATOR_OWNER_DOMAIN = "S-1-3";
19 const string SID_CREATOR_OWNER = "S-1-3-0";
20 const string SID_CREATOR_GROUP = "S-1-3-1";
22 /* SECURITY_NT_AUTHORITY */
23 const string SID_NT_AUTHORITY = "S-1-5";
24 const string SID_NETWORK = "S-1-5-2";
25 const string SID_ANONYMOUS = "S-1-5-7";
26 const string SID_AUTHENTICATED_USERS = "S-1-5-11";
27 const string SID_SYSTEM = "S-1-5-18";
29 /* SECURITY_BUILTIN_DOMAIN_RID */
30 const string SID_BUILTIN = "S-1-5-32";
31 const string SID_BUILTIN_ADMINISTRATORS = "S-1-5-32-544";
32 const string SID_BUILTIN_USERS = "S-1-5-32-545";
33 const string SID_BUILTIN_GUESTS = "S-1-5-32-546";
34 const string SID_BUILTIN_POWER_USERS = "S-1-5-32-547";
35 const string SID_BUILTIN_ACCOUNT_OPERATORS = "S-1-5-32-548";
36 const string SID_BUILTIN_SERVER_OPERATORS = "S-1-5-32-549";
37 const string SID_BUILTIN_PRINT_OPERATORS = "S-1-5-32-550";
38 const string SID_BUILTIN_BACKUP_OPERATORS = "S-1-5-32-551";
39 const string SID_BUILTIN_REPLICATOR = "S-1-5-32-552";
41 typedef [public,noprint] struct {
44 uint16 time_hi_and_version;
49 /* a domain SID. Note that unlike Samba3 this contains a pointer,
50 so you can't copy them using assignment */
51 typedef [public,noprint] struct {
52 uint8 sid_rev_num; /**< SID revision number */
53 uint8 num_auths; /**< Number of sub-authorities */
54 uint8 id_auth[6]; /**< Identifier Authority */
55 uint32 sub_auths[num_auths];
58 typedef [public] struct {
59 uint8 type; /* xxxx_xxxx_ACE_TYPE - e.g allowed / denied etc */
60 uint8 flags; /* xxxx_INHERIT_xxxx - e.g OBJECT_INHERIT_ACE */
61 [value(ndr_size_security_ace(r))] uint16 size;
65 /* the 'obj' part is present when type is XXXX_TYPE_XXXX_OBJECT */
76 typedef [public] struct {
78 [value(ndr_size_security_acl(r))] uint16 size;
80 security_ace aces[num_aces];
84 typedef [public] struct {
86 uint16 type; /* SEC_DESC_xxxx flags */
87 [relative] dom_sid *owner_sid;
88 [relative] dom_sid *group_sid;
89 [relative] security_acl *sacl; /* system ACL */
90 [relative] security_acl *dacl; /* user (discretionary) ACL */
91 } security_descriptor;
93 typedef [public] struct {
98 /* this is also used in samr and netlogon */
99 typedef [public, flag(NDR_PAHEX)] struct {
100 uint16 units_per_week;
101 [size_is(1260), length_is(units_per_week/8)] uint8 *bitmap;