source: branches/samba-3.3.x/source/librpc/gen_ndr/security.h

Last change on this file was 221, checked in by Herwig Bauernfeind, 16 years ago

Update Samba 3.3 to 3.3.1

File size: 12.3 KB
Line 
1/* header auto-generated by pidl */
2
3#include <stdint.h>
4
5#include "librpc/gen_ndr/misc.h"
6#define dom_sid2 dom_sid
7#define dom_sid28 dom_sid
8#define dom_sid0 dom_sid
9#ifndef _HEADER_security
10#define _HEADER_security
11
12#define SEC_MASK_GENERIC ( 0xF0000000 )
13#define SEC_MASK_FLAGS ( 0x0F000000 )
14#define SEC_MASK_STANDARD ( 0x00FF0000 )
15#define SEC_MASK_SPECIFIC ( 0x0000FFFF )
16#define SEC_GENERIC_ALL ( 0x10000000 )
17#define SEC_GENERIC_EXECUTE ( 0x20000000 )
18#define SEC_GENERIC_WRITE ( 0x40000000 )
19#define SEC_GENERIC_READ ( 0x80000000 )
20#define SEC_FLAG_SYSTEM_SECURITY ( 0x01000000 )
21#define SEC_FLAG_MAXIMUM_ALLOWED ( 0x02000000 )
22#define SEC_STD_DELETE ( 0x00010000 )
23#define SEC_STD_READ_CONTROL ( 0x00020000 )
24#define SEC_STD_WRITE_DAC ( 0x00040000 )
25#define SEC_STD_WRITE_OWNER ( 0x00080000 )
26#define SEC_STD_SYNCHRONIZE ( 0x00100000 )
27#define SEC_STD_REQUIRED ( 0x000F0000 )
28#define SEC_STD_ALL ( 0x001F0000 )
29#define SEC_FILE_READ_DATA ( 0x00000001 )
30#define SEC_FILE_WRITE_DATA ( 0x00000002 )
31#define SEC_FILE_APPEND_DATA ( 0x00000004 )
32#define SEC_FILE_READ_EA ( 0x00000008 )
33#define SEC_FILE_WRITE_EA ( 0x00000010 )
34#define SEC_FILE_EXECUTE ( 0x00000020 )
35#define SEC_FILE_READ_ATTRIBUTE ( 0x00000080 )
36#define SEC_FILE_WRITE_ATTRIBUTE ( 0x00000100 )
37#define SEC_FILE_ALL ( 0x000001ff )
38#define SEC_DIR_LIST ( 0x00000001 )
39#define SEC_DIR_ADD_FILE ( 0x00000002 )
40#define SEC_DIR_ADD_SUBDIR ( 0x00000004 )
41#define SEC_DIR_READ_EA ( 0x00000008 )
42#define SEC_DIR_WRITE_EA ( 0x00000010 )
43#define SEC_DIR_TRAVERSE ( 0x00000020 )
44#define SEC_DIR_DELETE_CHILD ( 0x00000040 )
45#define SEC_DIR_READ_ATTRIBUTE ( 0x00000080 )
46#define SEC_DIR_WRITE_ATTRIBUTE ( 0x00000100 )
47#define SEC_REG_QUERY_VALUE ( 0x00000001 )
48#define SEC_REG_SET_VALUE ( 0x00000002 )
49#define SEC_REG_CREATE_SUBKEY ( 0x00000004 )
50#define SEC_REG_ENUM_SUBKEYS ( 0x00000008 )
51#define SEC_REG_NOTIFY ( 0x00000010 )
52#define SEC_REG_CREATE_LINK ( 0x00000020 )
53#define SEC_ADS_CREATE_CHILD ( 0x00000001 )
54#define SEC_ADS_DELETE_CHILD ( 0x00000002 )
55#define SEC_ADS_LIST ( 0x00000004 )
56#define SEC_ADS_SELF_WRITE ( 0x00000008 )
57#define SEC_ADS_READ_PROP ( 0x00000010 )
58#define SEC_ADS_WRITE_PROP ( 0x00000020 )
59#define SEC_ADS_DELETE_TREE ( 0x00000040 )
60#define SEC_ADS_LIST_OBJECT ( 0x00000080 )
61#define SEC_ADS_CONTROL_ACCESS ( 0x00000100 )
62#define SEC_RIGHTS_FILE_READ ( SEC_STD_READ_CONTROL|SEC_STD_SYNCHRONIZE|SEC_FILE_READ_DATA|SEC_FILE_READ_ATTRIBUTE|SEC_FILE_READ_EA )
63#define SEC_RIGHTS_FILE_WRITE ( SEC_STD_READ_CONTROL|SEC_STD_SYNCHRONIZE|SEC_FILE_WRITE_DATA|SEC_FILE_WRITE_ATTRIBUTE|SEC_FILE_WRITE_EA|SEC_FILE_APPEND_DATA )
64#define SEC_RIGHTS_FILE_EXECUTE ( SEC_STD_SYNCHRONIZE|SEC_STD_READ_CONTROL|SEC_FILE_READ_ATTRIBUTE|SEC_FILE_EXECUTE )
65#define SEC_RIGHTS_FILE_ALL ( SEC_STD_ALL|SEC_FILE_ALL )
66#define SEC_RIGHTS_DIR_READ ( SEC_RIGHTS_FILE_READ )
67#define SEC_RIGHTS_DIR_WRITE ( SEC_RIGHTS_FILE_WRITE )
68#define SEC_RIGHTS_DIR_EXECUTE ( SEC_RIGHTS_FILE_EXECUTE )
69#define SEC_RIGHTS_DIR_ALL ( SEC_RIGHTS_FILE_ALL )
70#define STANDARD_RIGHTS_ALL_ACCESS ( SEC_STD_ALL )
71#define STANDARD_RIGHTS_MODIFY_ACCESS ( SEC_STD_READ_CONTROL )
72#define STANDARD_RIGHTS_EXECUTE_ACCESS ( SEC_STD_READ_CONTROL )
73#define STANDARD_RIGHTS_READ_ACCESS ( SEC_STD_READ_CONTROL )
74#define STANDARD_RIGHTS_WRITE_ACCESS ( (SEC_STD_WRITE_OWNER|SEC_STD_WRITE_DAC|SEC_STD_DELETE) )
75#define STANDARD_RIGHTS_REQUIRED_ACCESS ( (SEC_STD_DELETE|SEC_STD_READ_CONTROL|SEC_STD_WRITE_DAC|SEC_STD_WRITE_OWNER) )
76#define SID_NULL ( "S-1-0-0" )
77#define NAME_WORLD ( "WORLD" )
78#define SID_WORLD_DOMAIN ( "S-1-1" )
79#define SID_WORLD ( "S-1-1-0" )
80#define SID_CREATOR_OWNER_DOMAIN ( "S-1-3" )
81#define SID_CREATOR_OWNER ( "S-1-3-0" )
82#define SID_CREATOR_GROUP ( "S-1-3-1" )
83#define NAME_NT_AUTHORITY ( "NT AUTHORITY" )
84#define SID_NT_AUTHORITY ( "S-1-5" )
85#define SID_NT_DIALUP ( "S-1-5-1" )
86#define SID_NT_NETWORK ( "S-1-5-2" )
87#define SID_NT_BATCH ( "S-1-5-3" )
88#define SID_NT_INTERACTIVE ( "S-1-5-4" )
89#define SID_NT_SERVICE ( "S-1-5-6" )
90#define SID_NT_ANONYMOUS ( "S-1-5-7" )
91#define SID_NT_PROXY ( "S-1-5-8" )
92#define SID_NT_ENTERPRISE_DCS ( "S-1-5-9" )
93#define SID_NT_SELF ( "S-1-5-10" )
94#define SID_NT_AUTHENTICATED_USERS ( "S-1-5-11" )
95#define SID_NT_RESTRICTED ( "S-1-5-12" )
96#define SID_NT_TERMINAL_SERVER_USERS ( "S-1-5-13" )
97#define SID_NT_REMOTE_INTERACTIVE ( "S-1-5-14" )
98#define SID_NT_THIS_ORGANISATION ( "S-1-5-15" )
99#define SID_NT_SYSTEM ( "S-1-5-18" )
100#define SID_NT_LOCAL_SERVICE ( "S-1-5-19" )
101#define SID_NT_NETWORK_SERVICE ( "S-1-5-20" )
102#define NAME_BUILTIN ( "BUILTIN" )
103#define SID_BUILTIN ( "S-1-5-32" )
104#define SID_BUILTIN_ADMINISTRATORS ( "S-1-5-32-544" )
105#define SID_BUILTIN_USERS ( "S-1-5-32-545" )
106#define SID_BUILTIN_GUESTS ( "S-1-5-32-546" )
107#define SID_BUILTIN_POWER_USERS ( "S-1-5-32-547" )
108#define SID_BUILTIN_ACCOUNT_OPERATORS ( "S-1-5-32-548" )
109#define SID_BUILTIN_SERVER_OPERATORS ( "S-1-5-32-549" )
110#define SID_BUILTIN_PRINT_OPERATORS ( "S-1-5-32-550" )
111#define SID_BUILTIN_BACKUP_OPERATORS ( "S-1-5-32-551" )
112#define SID_BUILTIN_REPLICATOR ( "S-1-5-32-552" )
113#define SID_BUILTIN_RAS_SERVERS ( "S-1-5-32-553" )
114#define SID_BUILTIN_PREW2K ( "S-1-5-32-554" )
115#define DOMAIN_RID_LOGON ( 9 )
116#define DOMAIN_RID_ADMINISTRATOR ( 500 )
117#define DOMAIN_RID_GUEST ( 501 )
118#define DOMAIN_RID_ADMINS ( 512 )
119#define DOMAIN_RID_USERS ( 513 )
120#define DOMAIN_RID_DOMAIN_MEMBERS ( 515 )
121#define DOMAIN_RID_DCS ( 516 )
122#define DOMAIN_RID_CERT_ADMINS ( 517 )
123#define DOMAIN_RID_SCHEMA_ADMINS ( 518 )
124#define DOMAIN_RID_ENTERPRISE_ADMINS ( 519 )
125#define NT4_ACL_REVISION ( SECURITY_ACL_REVISION_NT4 )
126#define SD_REVISION ( SECURITY_DESCRIPTOR_REVISION_1 )
127enum sec_privilege
128#ifndef USE_UINT_ENUMS
129 {
130 SEC_PRIV_SECURITY=1,
131 SEC_PRIV_BACKUP=2,
132 SEC_PRIV_RESTORE=3,
133 SEC_PRIV_SYSTEMTIME=4,
134 SEC_PRIV_SHUTDOWN=5,
135 SEC_PRIV_REMOTE_SHUTDOWN=6,
136 SEC_PRIV_TAKE_OWNERSHIP=7,
137 SEC_PRIV_DEBUG=8,
138 SEC_PRIV_SYSTEM_ENVIRONMENT=9,
139 SEC_PRIV_SYSTEM_PROFILE=10,
140 SEC_PRIV_PROFILE_SINGLE_PROCESS=11,
141 SEC_PRIV_INCREASE_BASE_PRIORITY=12,
142 SEC_PRIV_LOAD_DRIVER=13,
143 SEC_PRIV_CREATE_PAGEFILE=14,
144 SEC_PRIV_INCREASE_QUOTA=15,
145 SEC_PRIV_CHANGE_NOTIFY=16,
146 SEC_PRIV_UNDOCK=17,
147 SEC_PRIV_MANAGE_VOLUME=18,
148 SEC_PRIV_IMPERSONATE=19,
149 SEC_PRIV_CREATE_GLOBAL=20,
150 SEC_PRIV_ENABLE_DELEGATION=21,
151 SEC_PRIV_INTERACTIVE_LOGON=22,
152 SEC_PRIV_NETWORK_LOGON=23,
153 SEC_PRIV_REMOTE_INTERACTIVE_LOGON=24
154}
155#else
156 { __donnot_use_enum_sec_privilege=0x7FFFFFFF}
157#define SEC_PRIV_SECURITY ( 1 )
158#define SEC_PRIV_BACKUP ( 2 )
159#define SEC_PRIV_RESTORE ( 3 )
160#define SEC_PRIV_SYSTEMTIME ( 4 )
161#define SEC_PRIV_SHUTDOWN ( 5 )
162#define SEC_PRIV_REMOTE_SHUTDOWN ( 6 )
163#define SEC_PRIV_TAKE_OWNERSHIP ( 7 )
164#define SEC_PRIV_DEBUG ( 8 )
165#define SEC_PRIV_SYSTEM_ENVIRONMENT ( 9 )
166#define SEC_PRIV_SYSTEM_PROFILE ( 10 )
167#define SEC_PRIV_PROFILE_SINGLE_PROCESS ( 11 )
168#define SEC_PRIV_INCREASE_BASE_PRIORITY ( 12 )
169#define SEC_PRIV_LOAD_DRIVER ( 13 )
170#define SEC_PRIV_CREATE_PAGEFILE ( 14 )
171#define SEC_PRIV_INCREASE_QUOTA ( 15 )
172#define SEC_PRIV_CHANGE_NOTIFY ( 16 )
173#define SEC_PRIV_UNDOCK ( 17 )
174#define SEC_PRIV_MANAGE_VOLUME ( 18 )
175#define SEC_PRIV_IMPERSONATE ( 19 )
176#define SEC_PRIV_CREATE_GLOBAL ( 20 )
177#define SEC_PRIV_ENABLE_DELEGATION ( 21 )
178#define SEC_PRIV_INTERACTIVE_LOGON ( 22 )
179#define SEC_PRIV_NETWORK_LOGON ( 23 )
180#define SEC_PRIV_REMOTE_INTERACTIVE_LOGON ( 24 )
181#endif
182;
183
184/* bitmap security_ace_flags */
185#define SEC_ACE_FLAG_OBJECT_INHERIT ( 0x01 )
186#define SEC_ACE_FLAG_CONTAINER_INHERIT ( 0x02 )
187#define SEC_ACE_FLAG_NO_PROPAGATE_INHERIT ( 0x04 )
188#define SEC_ACE_FLAG_INHERIT_ONLY ( 0x08 )
189#define SEC_ACE_FLAG_INHERITED_ACE ( 0x10 )
190#define SEC_ACE_FLAG_VALID_INHERIT ( 0x0f )
191#define SEC_ACE_FLAG_SUCCESSFUL_ACCESS ( 0x40 )
192#define SEC_ACE_FLAG_FAILED_ACCESS ( 0x80 )
193
194enum security_ace_type
195#ifndef USE_UINT_ENUMS
196 {
197 SEC_ACE_TYPE_ACCESS_ALLOWED=0,
198 SEC_ACE_TYPE_ACCESS_DENIED=1,
199 SEC_ACE_TYPE_SYSTEM_AUDIT=2,
200 SEC_ACE_TYPE_SYSTEM_ALARM=3,
201 SEC_ACE_TYPE_ALLOWED_COMPOUND=4,
202 SEC_ACE_TYPE_ACCESS_ALLOWED_OBJECT=5,
203 SEC_ACE_TYPE_ACCESS_DENIED_OBJECT=6,
204 SEC_ACE_TYPE_SYSTEM_AUDIT_OBJECT=7,
205 SEC_ACE_TYPE_SYSTEM_ALARM_OBJECT=8
206}
207#else
208 { __donnot_use_enum_security_ace_type=0x7FFFFFFF}
209#define SEC_ACE_TYPE_ACCESS_ALLOWED ( 0 )
210#define SEC_ACE_TYPE_ACCESS_DENIED ( 1 )
211#define SEC_ACE_TYPE_SYSTEM_AUDIT ( 2 )
212#define SEC_ACE_TYPE_SYSTEM_ALARM ( 3 )
213#define SEC_ACE_TYPE_ALLOWED_COMPOUND ( 4 )
214#define SEC_ACE_TYPE_ACCESS_ALLOWED_OBJECT ( 5 )
215#define SEC_ACE_TYPE_ACCESS_DENIED_OBJECT ( 6 )
216#define SEC_ACE_TYPE_SYSTEM_AUDIT_OBJECT ( 7 )
217#define SEC_ACE_TYPE_SYSTEM_ALARM_OBJECT ( 8 )
218#endif
219;
220
221/* bitmap security_ace_object_flags */
222#define SEC_ACE_OBJECT_TYPE_PRESENT ( 0x00000001 )
223#define SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT ( 0x00000002 )
224
225union security_ace_object_type {
226 struct GUID type;/* [case(SEC_ACE_OBJECT_TYPE_PRESENT)] */
227}/* [nodiscriminant] */;
228
229union security_ace_object_inherited_type {
230 struct GUID inherited_type;/* [case(SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT)] */
231}/* [nodiscriminant] */;
232
233struct security_ace_object {
234 uint32_t flags;
235 union security_ace_object_type type;/* [switch_is(flags&SEC_ACE_OBJECT_TYPE_PRESENT)] */
236 union security_ace_object_inherited_type inherited_type;/* [switch_is(flags&SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT)] */
237};
238
239union security_ace_object_ctr {
240 struct security_ace_object object;/* [case(SEC_ACE_TYPE_ACCESS_ALLOWED_OBJECT)] */
241}/* [public,nodiscriminant] */;
242
243struct security_ace {
244 enum security_ace_type type;
245 uint8_t flags;
246 uint16_t size;/* [value(ndr_size_security_ace(r,ndr->flags))] */
247 uint32_t access_mask;
248 union security_ace_object_ctr object;/* [switch_is(type)] */
249 struct dom_sid trustee;
250}/* [gensize,public,nopull,nosize] */;
251
252enum security_acl_revision
253#ifndef USE_UINT_ENUMS
254 {
255 SECURITY_ACL_REVISION_NT4=2,
256 SECURITY_ACL_REVISION_ADS=4
257}
258#else
259 { __donnot_use_enum_security_acl_revision=0x7FFFFFFF}
260#define SECURITY_ACL_REVISION_NT4 ( 2 )
261#define SECURITY_ACL_REVISION_ADS ( 4 )
262#endif
263;
264
265struct security_acl {
266 enum security_acl_revision revision;
267 uint16_t size;/* [value(ndr_size_security_acl(r,ndr->flags))] */
268 uint32_t num_aces;/* [range(0,1000)] */
269 struct security_ace *aces;
270}/* [gensize,public,nosize] */;
271
272enum security_descriptor_revision
273#ifndef USE_UINT_ENUMS
274 {
275 SECURITY_DESCRIPTOR_REVISION_1=1
276}
277#else
278 { __donnot_use_enum_security_descriptor_revision=0x7FFFFFFF}
279#define SECURITY_DESCRIPTOR_REVISION_1 ( 1 )
280#endif
281;
282
283/* bitmap security_descriptor_type */
284#define SEC_DESC_OWNER_DEFAULTED ( 0x0001 )
285#define SEC_DESC_GROUP_DEFAULTED ( 0x0002 )
286#define SEC_DESC_DACL_PRESENT ( 0x0004 )
287#define SEC_DESC_DACL_DEFAULTED ( 0x0008 )
288#define SEC_DESC_SACL_PRESENT ( 0x0010 )
289#define SEC_DESC_SACL_DEFAULTED ( 0x0020 )
290#define SEC_DESC_DACL_TRUSTED ( 0x0040 )
291#define SEC_DESC_SERVER_SECURITY ( 0x0080 )
292#define SEC_DESC_DACL_AUTO_INHERIT_REQ ( 0x0100 )
293#define SEC_DESC_SACL_AUTO_INHERIT_REQ ( 0x0200 )
294#define SEC_DESC_DACL_AUTO_INHERITED ( 0x0400 )
295#define SEC_DESC_SACL_AUTO_INHERITED ( 0x0800 )
296#define SEC_DESC_DACL_PROTECTED ( 0x1000 )
297#define SEC_DESC_SACL_PROTECTED ( 0x2000 )
298#define SEC_DESC_RM_CONTROL_VALID ( 0x4000 )
299#define SEC_DESC_SELF_RELATIVE ( 0x8000 )
300
301struct security_descriptor {
302 enum security_descriptor_revision revision;
303 uint16_t type;
304 struct dom_sid *owner_sid;/* [relative] */
305 struct dom_sid *group_sid;/* [relative] */
306 struct security_acl *sacl;/* [relative] */
307 struct security_acl *dacl;/* [relative] */
308}/* [gensize,public,flag(LIBNDR_FLAG_LITTLE_ENDIAN),nosize] */;
309
310struct sec_desc_buf {
311 uint32_t sd_size;/* [value(ndr_size_security_descriptor(sd,ndr->flags)),range(0,0x40000)] */
312 struct security_descriptor *sd;/* [unique,subcontext(4)] */
313}/* [public] */;
314
315struct security_token {
316 struct dom_sid *user_sid;/* [unique] */
317 struct dom_sid *group_sid;/* [unique] */
318 uint32_t num_sids;
319 struct dom_sid **sids;/* [unique,size_is(num_sids)] */
320 uint64_t privilege_mask;
321}/* [public] */;
322
323/* bitmap security_secinfo */
324#define SECINFO_OWNER ( 0x00000001 )
325#define SECINFO_GROUP ( 0x00000002 )
326#define SECINFO_DACL ( 0x00000004 )
327#define SECINFO_SACL ( 0x00000008 )
328#define SECINFO_UNPROTECTED_SACL ( 0x10000000 )
329#define SECINFO_UNPROTECTED_DACL ( 0x20000000 )
330#define SECINFO_PROTECTED_SACL ( 0x40000000 )
331#define SECINFO_PROTECTED_DACL ( 0x80000000 )
332
333#endif /* _HEADER_security */
Note: See TracBrowser for help on using the repository browser.