lsa: add LSA_TRUSTED_DOMAIN access masks.
[Samba.git] / librpc / gen_ndr / lsa.h
bloba0af5712834b7c602c270da1a731c1ebabd5d762
1 /* header auto-generated by pidl */
3 #include <stdint.h>
5 #include "libcli/util/ntstatus.h"
7 #include "librpc/gen_ndr/misc.h"
8 #include "librpc/gen_ndr/security.h"
9 #ifndef _HEADER_lsarpc
10 #define _HEADER_lsarpc
12 #define LSA_POLICY_ALL_ACCESS ( (STANDARD_RIGHTS_REQUIRED_ACCESS|LSA_POLICY_VIEW_LOCAL_INFORMATION|LSA_POLICY_VIEW_AUDIT_INFORMATION|LSA_POLICY_GET_PRIVATE_INFORMATION|LSA_POLICY_TRUST_ADMIN|LSA_POLICY_CREATE_ACCOUNT|LSA_POLICY_CREATE_SECRET|LSA_POLICY_CREATE_PRIVILEGE|LSA_POLICY_SET_DEFAULT_QUOTA_LIMITS|LSA_POLICY_SET_AUDIT_REQUIREMENTS|LSA_POLICY_AUDIT_LOG_ADMIN|LSA_POLICY_SERVER_ADMIN|LSA_POLICY_LOOKUP_NAMES) )
13 #define LSA_POLICY_READ ( (STANDARD_RIGHTS_READ_ACCESS|LSA_POLICY_VIEW_LOCAL_INFORMATION|LSA_POLICY_VIEW_AUDIT_INFORMATION|LSA_POLICY_GET_PRIVATE_INFORMATION) )
14 #define LSA_POLICY_WRITE ( (STANDARD_RIGHTS_READ_ACCESS|LSA_POLICY_TRUST_ADMIN|LSA_POLICY_CREATE_ACCOUNT|LSA_POLICY_CREATE_SECRET|LSA_POLICY_CREATE_PRIVILEGE|LSA_POLICY_SET_DEFAULT_QUOTA_LIMITS|LSA_POLICY_SET_AUDIT_REQUIREMENTS|LSA_POLICY_AUDIT_LOG_ADMIN|LSA_POLICY_SERVER_ADMIN) )
15 #define LSA_POLICY_EXECUTE ( (STANDARD_RIGHTS_EXECUTE_ACCESS|LSA_POLICY_VIEW_LOCAL_INFORMATION|LSA_POLICY_LOOKUP_NAMES) )
16 #define LSA_ACCOUNT_ALL_ACCESS ( (STANDARD_RIGHTS_REQUIRED_ACCESS|LSA_ACCOUNT_VIEW|LSA_ACCOUNT_ADJUST_PRIVILEGES|LSA_ACCOUNT_ADJUST_QUOTAS|LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS) )
17 #define LSA_ACCOUNT_READ ( (STANDARD_RIGHTS_READ_ACCESS|LSA_ACCOUNT_VIEW) )
18 #define LSA_ACCOUNT_WRITE ( (STANDARD_RIGHTS_READ_ACCESS|LSA_ACCOUNT_ADJUST_PRIVILEGES|LSA_ACCOUNT_ADJUST_QUOTAS|LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS) )
19 #define LSA_ACCOUNT_EXECUTE ( (STANDARD_RIGHTS_EXECUTE_ACCESS) )
20 #define LSA_SECRET_ALL_ACCESS ( (LSA_SECRET_QUERY_VALUE|LSA_SECRET_SET_VALUE|SEC_STD_DELETE|STANDARD_RIGHTS_READ_ACCESS|SEC_STD_WRITE_DAC|SEC_STD_WRITE_OWNER) )
21 #define LSA_SECRET_READ ( (LSA_SECRET_QUERY_VALUE|STANDARD_RIGHTS_READ_ACCESS) )
22 #define LSA_SECRET_WRITE ( (LSA_SECRET_SET_VALUE|STANDARD_RIGHTS_READ_ACCESS) )
23 #define LSA_SECRET_EXECUTE ( (STANDARD_RIGHTS_READ_ACCESS) )
24 #define LSA_TRUSTED_DOMAIN_ALL_ACCESS ( (LSA_TRUSTED_QUERY_DOMAIN_NAME|LSA_TRUSTED_QUERY_CONTROLLERS|LSA_TRUSTED_SET_CONTROLLERS|LSA_TRUSTED_QUERY_POSIX|LSA_TRUSTED_SET_POSIX|LSA_TRUSTED_SET_AUTH|LSA_TRUSTED_QUERY_AUTH|SEC_STD_DELETE|STANDARD_RIGHTS_READ_ACCESS|SEC_STD_WRITE_DAC|SEC_STD_WRITE_OWNER) )
25 #define LSA_TRUSTED_DOMAIN_READ ( (LSA_TRUSTED_QUERY_DOMAIN_NAME|STANDARD_RIGHTS_READ_ACCESS) )
26 #define LSA_TRUSTED_DOMAIN_WRITE ( (LSA_TRUSTED_SET_CONTROLLERS|LSA_TRUSTED_SET_POSIX|LSA_TRUSTED_SET_AUTH|STANDARD_RIGHTS_READ_ACCESS) )
27 #define LSA_TRUSTED_DOMAIN_EXECUTE ( (LSA_TRUSTED_QUERY_DOMAIN_NAME|LSA_TRUSTED_QUERY_POSIX|STANDARD_RIGHTS_READ_ACCESS) )
28 #define LSA_ENUM_TRUST_DOMAIN_MULTIPLIER ( 60 )
29 #define LSA_REF_DOMAIN_LIST_MULTIPLIER ( 32 )
30 #define LSA_ENUM_TRUST_DOMAIN_EX_MULTIPLIER ( 82 )
31 #define LSA_CLIENT_REVISION_NO_DNS ( 0x00000001 )
32 #define LSA_CLIENT_REVISION_DNS ( 0x00000002 )
33 #define LSA_LOOKUP_OPTIONS_NO_ISOLATED ( 0x80000000 )
34 struct lsa_String {
35 uint16_t length;/* [value(2*strlen_m(string))] */
36 uint16_t size;/* [value(2*strlen_m(string))] */
37 const char *string;/* [unique,charset(UTF16),length_is(length/2),size_is(size/2)] */
38 }/* [public] */;
40 struct lsa_StringLarge {
41 uint16_t length;/* [value(2*strlen_m(string))] */
42 uint16_t size;/* [value(2*strlen_m_term(string))] */
43 const char *string;/* [unique,charset(UTF16),length_is(length/2),size_is(size/2)] */
44 }/* [public] */;
46 struct lsa_Strings {
47 uint32_t count;
48 struct lsa_String *names;/* [unique,size_is(count)] */
49 }/* [public] */;
51 struct lsa_AsciiString {
52 uint16_t length;/* [value(strlen_m(string))] */
53 uint16_t size;/* [value(strlen_m(string))] */
54 const char *string;/* [unique,charset(DOS),length_is(length),size_is(size)] */
55 }/* [public] */;
57 struct lsa_AsciiStringLarge {
58 uint16_t length;/* [value(strlen_m(string))] */
59 uint16_t size;/* [value(strlen_m_term(string))] */
60 const char *string;/* [unique,charset(DOS),length_is(length),size_is(size)] */
61 }/* [public] */;
63 struct lsa_BinaryString {
64 uint16_t length;
65 uint16_t size;
66 uint16_t *array;/* [unique,length_is(length/2),size_is(size/2)] */
67 }/* [public] */;
69 struct lsa_LUID {
70 uint32_t low;
71 uint32_t high;
74 struct lsa_PrivEntry {
75 struct lsa_StringLarge name;
76 struct lsa_LUID luid;
79 struct lsa_PrivArray {
80 uint32_t count;
81 struct lsa_PrivEntry *privs;/* [unique,size_is(count)] */
84 struct lsa_QosInfo {
85 uint32_t len;
86 uint16_t impersonation_level;
87 uint8_t context_mode;
88 uint8_t effective_only;
91 struct lsa_ObjectAttribute {
92 uint32_t len;
93 uint8_t *root_dir;/* [unique] */
94 const char *object_name;/* [unique,charset(UTF16)] */
95 uint32_t attributes;
96 struct security_descriptor *sec_desc;/* [unique] */
97 struct lsa_QosInfo *sec_qos;/* [unique] */
100 /* bitmap lsa_PolicyAccessMask */
101 #define LSA_POLICY_VIEW_LOCAL_INFORMATION ( 0x00000001 )
102 #define LSA_POLICY_VIEW_AUDIT_INFORMATION ( 0x00000002 )
103 #define LSA_POLICY_GET_PRIVATE_INFORMATION ( 0x00000004 )
104 #define LSA_POLICY_TRUST_ADMIN ( 0x00000008 )
105 #define LSA_POLICY_CREATE_ACCOUNT ( 0x00000010 )
106 #define LSA_POLICY_CREATE_SECRET ( 0x00000020 )
107 #define LSA_POLICY_CREATE_PRIVILEGE ( 0x00000040 )
108 #define LSA_POLICY_SET_DEFAULT_QUOTA_LIMITS ( 0x00000080 )
109 #define LSA_POLICY_SET_AUDIT_REQUIREMENTS ( 0x00000100 )
110 #define LSA_POLICY_AUDIT_LOG_ADMIN ( 0x00000200 )
111 #define LSA_POLICY_SERVER_ADMIN ( 0x00000400 )
112 #define LSA_POLICY_LOOKUP_NAMES ( 0x00000800 )
113 #define LSA_POLICY_NOTIFICATION ( 0x00001000 )
115 /* bitmap lsa_AccountAccessMask */
116 #define LSA_ACCOUNT_VIEW ( 0x00000001 )
117 #define LSA_ACCOUNT_ADJUST_PRIVILEGES ( 0x00000002 )
118 #define LSA_ACCOUNT_ADJUST_QUOTAS ( 0x00000004 )
119 #define LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS ( 0x00000008 )
121 /* bitmap lsa_SecretAccessMask */
122 #define LSA_SECRET_SET_VALUE ( 0x00000001 )
123 #define LSA_SECRET_QUERY_VALUE ( 0x00000002 )
125 /* bitmap lsa_TrustedAccessMask */
126 #define LSA_TRUSTED_QUERY_DOMAIN_NAME ( 0x00000001 )
127 #define LSA_TRUSTED_QUERY_CONTROLLERS ( 0x00000002 )
128 #define LSA_TRUSTED_SET_CONTROLLERS ( 0x00000004 )
129 #define LSA_TRUSTED_QUERY_POSIX ( 0x00000008 )
130 #define LSA_TRUSTED_SET_POSIX ( 0x00000010 )
131 #define LSA_TRUSTED_SET_AUTH ( 0x00000020 )
132 #define LSA_TRUSTED_QUERY_AUTH ( 0x00000040 )
134 struct lsa_AuditLogInfo {
135 uint32_t percent_full;
136 uint32_t maximum_log_size;
137 uint64_t retention_time;
138 uint8_t shutdown_in_progress;
139 uint64_t time_to_shutdown;
140 uint32_t next_audit_record;
143 enum lsa_PolicyAuditPolicy
144 #ifndef USE_UINT_ENUMS
146 LSA_AUDIT_POLICY_NONE=(int)(0),
147 LSA_AUDIT_POLICY_SUCCESS=(int)(1),
148 LSA_AUDIT_POLICY_FAILURE=(int)(2),
149 LSA_AUDIT_POLICY_ALL=(int)((LSA_AUDIT_POLICY_SUCCESS|LSA_AUDIT_POLICY_FAILURE)),
150 LSA_AUDIT_POLICY_CLEAR=(int)(4)
152 #else
153 { __donnot_use_enum_lsa_PolicyAuditPolicy=0x7FFFFFFF}
154 #define LSA_AUDIT_POLICY_NONE ( 0 )
155 #define LSA_AUDIT_POLICY_SUCCESS ( 1 )
156 #define LSA_AUDIT_POLICY_FAILURE ( 2 )
157 #define LSA_AUDIT_POLICY_ALL ( (LSA_AUDIT_POLICY_SUCCESS|LSA_AUDIT_POLICY_FAILURE) )
158 #define LSA_AUDIT_POLICY_CLEAR ( 4 )
159 #endif
162 enum lsa_PolicyAuditEventType
163 #ifndef USE_UINT_ENUMS
165 LSA_AUDIT_CATEGORY_SYSTEM=(int)(0),
166 LSA_AUDIT_CATEGORY_LOGON=(int)(1),
167 LSA_AUDIT_CATEGORY_FILE_AND_OBJECT_ACCESS=(int)(2),
168 LSA_AUDIT_CATEGORY_USE_OF_USER_RIGHTS=(int)(3),
169 LSA_AUDIT_CATEGORY_PROCCESS_TRACKING=(int)(4),
170 LSA_AUDIT_CATEGORY_SECURITY_POLICY_CHANGES=(int)(5),
171 LSA_AUDIT_CATEGORY_ACCOUNT_MANAGEMENT=(int)(6),
172 LSA_AUDIT_CATEGORY_DIRECTORY_SERVICE_ACCESS=(int)(7),
173 LSA_AUDIT_CATEGORY_ACCOUNT_LOGON=(int)(8)
175 #else
176 { __donnot_use_enum_lsa_PolicyAuditEventType=0x7FFFFFFF}
177 #define LSA_AUDIT_CATEGORY_SYSTEM ( 0 )
178 #define LSA_AUDIT_CATEGORY_LOGON ( 1 )
179 #define LSA_AUDIT_CATEGORY_FILE_AND_OBJECT_ACCESS ( 2 )
180 #define LSA_AUDIT_CATEGORY_USE_OF_USER_RIGHTS ( 3 )
181 #define LSA_AUDIT_CATEGORY_PROCCESS_TRACKING ( 4 )
182 #define LSA_AUDIT_CATEGORY_SECURITY_POLICY_CHANGES ( 5 )
183 #define LSA_AUDIT_CATEGORY_ACCOUNT_MANAGEMENT ( 6 )
184 #define LSA_AUDIT_CATEGORY_DIRECTORY_SERVICE_ACCESS ( 7 )
185 #define LSA_AUDIT_CATEGORY_ACCOUNT_LOGON ( 8 )
186 #endif
189 struct lsa_AuditEventsInfo {
190 uint32_t auditing_mode;
191 enum lsa_PolicyAuditPolicy *settings;/* [unique,size_is(count)] */
192 uint32_t count;
195 struct lsa_DomainInfo {
196 struct lsa_StringLarge name;
197 struct dom_sid2 *sid;/* [unique] */
200 struct lsa_PDAccountInfo {
201 struct lsa_String name;
204 enum lsa_Role
205 #ifndef USE_UINT_ENUMS
207 LSA_ROLE_BACKUP=(int)(2),
208 LSA_ROLE_PRIMARY=(int)(3)
210 #else
211 { __donnot_use_enum_lsa_Role=0x7FFFFFFF}
212 #define LSA_ROLE_BACKUP ( 2 )
213 #define LSA_ROLE_PRIMARY ( 3 )
214 #endif
217 struct lsa_ServerRole {
218 enum lsa_Role role;
221 struct lsa_ReplicaSourceInfo {
222 struct lsa_String source;
223 struct lsa_String account;
226 struct lsa_DefaultQuotaInfo {
227 uint32_t paged_pool;
228 uint32_t non_paged_pool;
229 uint32_t min_wss;
230 uint32_t max_wss;
231 uint32_t pagefile;
232 uint64_t unknown;
235 struct lsa_ModificationInfo {
236 uint64_t modified_id;
237 NTTIME db_create_time;
240 struct lsa_AuditFullSetInfo {
241 uint8_t shutdown_on_full;
244 struct lsa_AuditFullQueryInfo {
245 uint8_t shutdown_on_full;
246 uint8_t log_is_full;
249 struct lsa_DnsDomainInfo {
250 struct lsa_StringLarge name;
251 struct lsa_StringLarge dns_domain;
252 struct lsa_StringLarge dns_forest;
253 struct GUID domain_guid;
254 struct dom_sid2 *sid;/* [unique] */
257 enum lsa_PolicyInfo
258 #ifndef USE_UINT_ENUMS
260 LSA_POLICY_INFO_AUDIT_LOG=(int)(1),
261 LSA_POLICY_INFO_AUDIT_EVENTS=(int)(2),
262 LSA_POLICY_INFO_DOMAIN=(int)(3),
263 LSA_POLICY_INFO_PD=(int)(4),
264 LSA_POLICY_INFO_ACCOUNT_DOMAIN=(int)(5),
265 LSA_POLICY_INFO_ROLE=(int)(6),
266 LSA_POLICY_INFO_REPLICA=(int)(7),
267 LSA_POLICY_INFO_QUOTA=(int)(8),
268 LSA_POLICY_INFO_MOD=(int)(9),
269 LSA_POLICY_INFO_AUDIT_FULL_SET=(int)(10),
270 LSA_POLICY_INFO_AUDIT_FULL_QUERY=(int)(11),
271 LSA_POLICY_INFO_DNS=(int)(12),
272 LSA_POLICY_INFO_DNS_INT=(int)(13),
273 LSA_POLICY_INFO_L_ACCOUNT_DOMAIN=(int)(14)
275 #else
276 { __donnot_use_enum_lsa_PolicyInfo=0x7FFFFFFF}
277 #define LSA_POLICY_INFO_AUDIT_LOG ( 1 )
278 #define LSA_POLICY_INFO_AUDIT_EVENTS ( 2 )
279 #define LSA_POLICY_INFO_DOMAIN ( 3 )
280 #define LSA_POLICY_INFO_PD ( 4 )
281 #define LSA_POLICY_INFO_ACCOUNT_DOMAIN ( 5 )
282 #define LSA_POLICY_INFO_ROLE ( 6 )
283 #define LSA_POLICY_INFO_REPLICA ( 7 )
284 #define LSA_POLICY_INFO_QUOTA ( 8 )
285 #define LSA_POLICY_INFO_MOD ( 9 )
286 #define LSA_POLICY_INFO_AUDIT_FULL_SET ( 10 )
287 #define LSA_POLICY_INFO_AUDIT_FULL_QUERY ( 11 )
288 #define LSA_POLICY_INFO_DNS ( 12 )
289 #define LSA_POLICY_INFO_DNS_INT ( 13 )
290 #define LSA_POLICY_INFO_L_ACCOUNT_DOMAIN ( 14 )
291 #endif
294 union lsa_PolicyInformation {
295 struct lsa_AuditLogInfo audit_log;/* [case(LSA_POLICY_INFO_AUDIT_LOG)] */
296 struct lsa_AuditEventsInfo audit_events;/* [case(LSA_POLICY_INFO_AUDIT_EVENTS)] */
297 struct lsa_DomainInfo domain;/* [case(LSA_POLICY_INFO_DOMAIN)] */
298 struct lsa_PDAccountInfo pd;/* [case(LSA_POLICY_INFO_PD)] */
299 struct lsa_DomainInfo account_domain;/* [case(LSA_POLICY_INFO_ACCOUNT_DOMAIN)] */
300 struct lsa_ServerRole role;/* [case(LSA_POLICY_INFO_ROLE)] */
301 struct lsa_ReplicaSourceInfo replica;/* [case(LSA_POLICY_INFO_REPLICA)] */
302 struct lsa_DefaultQuotaInfo quota;/* [case(LSA_POLICY_INFO_QUOTA)] */
303 struct lsa_ModificationInfo mod;/* [case(LSA_POLICY_INFO_MOD)] */
304 struct lsa_AuditFullSetInfo auditfullset;/* [case(LSA_POLICY_INFO_AUDIT_FULL_SET)] */
305 struct lsa_AuditFullQueryInfo auditfullquery;/* [case(LSA_POLICY_INFO_AUDIT_FULL_QUERY)] */
306 struct lsa_DnsDomainInfo dns;/* [case(LSA_POLICY_INFO_DNS)] */
307 struct lsa_DomainInfo l_account_domain;/* [case(LSA_POLICY_INFO_L_ACCOUNT_DOMAIN)] */
308 }/* [switch_type(uint16)] */;
310 struct lsa_SidPtr {
311 struct dom_sid2 *sid;/* [unique] */
314 struct lsa_SidArray {
315 uint32_t num_sids;/* [range(0,1000)] */
316 struct lsa_SidPtr *sids;/* [unique,size_is(num_sids)] */
317 }/* [public] */;
319 struct lsa_DomainList {
320 uint32_t count;
321 struct lsa_DomainInfo *domains;/* [unique,size_is(count)] */
324 enum lsa_SidType
325 #ifndef USE_UINT_ENUMS
327 SID_NAME_USE_NONE=(int)(0),
328 SID_NAME_USER=(int)(1),
329 SID_NAME_DOM_GRP=(int)(2),
330 SID_NAME_DOMAIN=(int)(3),
331 SID_NAME_ALIAS=(int)(4),
332 SID_NAME_WKN_GRP=(int)(5),
333 SID_NAME_DELETED=(int)(6),
334 SID_NAME_INVALID=(int)(7),
335 SID_NAME_UNKNOWN=(int)(8),
336 SID_NAME_COMPUTER=(int)(9)
338 #else
339 { __donnot_use_enum_lsa_SidType=0x7FFFFFFF}
340 #define SID_NAME_USE_NONE ( 0 )
341 #define SID_NAME_USER ( 1 )
342 #define SID_NAME_DOM_GRP ( 2 )
343 #define SID_NAME_DOMAIN ( 3 )
344 #define SID_NAME_ALIAS ( 4 )
345 #define SID_NAME_WKN_GRP ( 5 )
346 #define SID_NAME_DELETED ( 6 )
347 #define SID_NAME_INVALID ( 7 )
348 #define SID_NAME_UNKNOWN ( 8 )
349 #define SID_NAME_COMPUTER ( 9 )
350 #endif
353 struct lsa_TranslatedSid {
354 enum lsa_SidType sid_type;
355 uint32_t rid;
356 uint32_t sid_index;
359 struct lsa_TransSidArray {
360 uint32_t count;/* [range(0,1000)] */
361 struct lsa_TranslatedSid *sids;/* [unique,size_is(count)] */
364 struct lsa_RefDomainList {
365 uint32_t count;/* [range(0,1000)] */
366 struct lsa_DomainInfo *domains;/* [unique,size_is(count)] */
367 uint32_t max_size;
370 enum lsa_LookupNamesLevel
371 #ifndef USE_UINT_ENUMS
373 LSA_LOOKUP_NAMES_ALL=(int)(1),
374 LSA_LOOKUP_NAMES_DOMAINS_ONLY=(int)(2),
375 LSA_LOOKUP_NAMES_PRIMARY_DOMAIN_ONLY=(int)(3),
376 LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY=(int)(4),
377 LSA_LOOKUP_NAMES_FOREST_TRUSTS_ONLY=(int)(5),
378 LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY2=(int)(6),
379 LSA_LOOKUP_NAMES_RODC_REFERRAL_TO_FULL_DC=(int)(7)
381 #else
382 { __donnot_use_enum_lsa_LookupNamesLevel=0x7FFFFFFF}
383 #define LSA_LOOKUP_NAMES_ALL ( 1 )
384 #define LSA_LOOKUP_NAMES_DOMAINS_ONLY ( 2 )
385 #define LSA_LOOKUP_NAMES_PRIMARY_DOMAIN_ONLY ( 3 )
386 #define LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY ( 4 )
387 #define LSA_LOOKUP_NAMES_FOREST_TRUSTS_ONLY ( 5 )
388 #define LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY2 ( 6 )
389 #define LSA_LOOKUP_NAMES_RODC_REFERRAL_TO_FULL_DC ( 7 )
390 #endif
393 struct lsa_TranslatedName {
394 enum lsa_SidType sid_type;
395 struct lsa_String name;
396 uint32_t sid_index;
399 struct lsa_TransNameArray {
400 uint32_t count;/* [range(0,1000)] */
401 struct lsa_TranslatedName *names;/* [unique,size_is(count)] */
404 struct lsa_LUIDAttribute {
405 struct lsa_LUID luid;
406 uint32_t attribute;
409 struct lsa_PrivilegeSet {
410 uint32_t count;/* [range(0,1000)] */
411 uint32_t unknown;
412 struct lsa_LUIDAttribute *set;/* [size_is(count)] */
415 /* bitmap lsa_SystemAccessModeFlags */
416 #define LSA_POLICY_MODE_INTERACTIVE ( 0x00000001 )
417 #define LSA_POLICY_MODE_NETWORK ( 0x00000002 )
418 #define LSA_POLICY_MODE_BATCH ( 0x00000004 )
419 #define LSA_POLICY_MODE_SERVICE ( 0x00000010 )
420 #define LSA_POLICY_MODE_PROXY ( 0x00000020 )
421 #define LSA_POLICY_MODE_DENY_INTERACTIVE ( 0x00000040 )
422 #define LSA_POLICY_MODE_DENY_NETWORK ( 0x00000080 )
423 #define LSA_POLICY_MODE_DENY_BATCH ( 0x00000100 )
424 #define LSA_POLICY_MODE_DENY_SERVICE ( 0x00000200 )
425 #define LSA_POLICY_MODE_REMOTE_INTERACTIVE ( 0x00000400 )
426 #define LSA_POLICY_MODE_DENY_REMOTE_INTERACTIVE ( 0x00000800 )
427 #define LSA_POLICY_MODE_ALL ( 0x00000FF7 )
428 #define LSA_POLICY_MODE_ALL_NT4 ( 0x00000037 )
430 struct lsa_DATA_BUF {
431 uint32_t length;
432 uint32_t size;
433 uint8_t *data;/* [unique,length_is(length),size_is(size)] */
434 }/* [flag(LIBNDR_PRINT_ARRAY_HEX)] */;
436 struct lsa_DATA_BUF2 {
437 uint32_t size;/* [range(0,65536)] */
438 uint8_t *data;/* [unique,size_is(size)] */
439 }/* [flag(LIBNDR_PRINT_ARRAY_HEX)] */;
441 enum lsa_TrustDomInfoEnum
442 #ifndef USE_UINT_ENUMS
444 LSA_TRUSTED_DOMAIN_INFO_NAME=(int)(1),
445 LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS=(int)(2),
446 LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET=(int)(3),
447 LSA_TRUSTED_DOMAIN_INFO_PASSWORD=(int)(4),
448 LSA_TRUSTED_DOMAIN_INFO_BASIC=(int)(5),
449 LSA_TRUSTED_DOMAIN_INFO_INFO_EX=(int)(6),
450 LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO=(int)(7),
451 LSA_TRUSTED_DOMAIN_INFO_FULL_INFO=(int)(8),
452 LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL=(int)(9),
453 LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL=(int)(10),
454 LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL=(int)(11),
455 LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_2_INTERNAL=(int)(12),
456 LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES=(int)(13)
458 #else
459 { __donnot_use_enum_lsa_TrustDomInfoEnum=0x7FFFFFFF}
460 #define LSA_TRUSTED_DOMAIN_INFO_NAME ( 1 )
461 #define LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS ( 2 )
462 #define LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET ( 3 )
463 #define LSA_TRUSTED_DOMAIN_INFO_PASSWORD ( 4 )
464 #define LSA_TRUSTED_DOMAIN_INFO_BASIC ( 5 )
465 #define LSA_TRUSTED_DOMAIN_INFO_INFO_EX ( 6 )
466 #define LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO ( 7 )
467 #define LSA_TRUSTED_DOMAIN_INFO_FULL_INFO ( 8 )
468 #define LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL ( 9 )
469 #define LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL ( 10 )
470 #define LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL ( 11 )
471 #define LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_2_INTERNAL ( 12 )
472 #define LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES ( 13 )
473 #endif
476 /* bitmap lsa_TrustDirection */
477 #define LSA_TRUST_DIRECTION_INBOUND ( 0x00000001 )
478 #define LSA_TRUST_DIRECTION_OUTBOUND ( 0x00000002 )
480 enum lsa_TrustType
481 #ifndef USE_UINT_ENUMS
483 LSA_TRUST_TYPE_DOWNLEVEL=(int)(0x00000001),
484 LSA_TRUST_TYPE_UPLEVEL=(int)(0x00000002),
485 LSA_TRUST_TYPE_MIT=(int)(0x00000003)
487 #else
488 { __donnot_use_enum_lsa_TrustType=0x7FFFFFFF}
489 #define LSA_TRUST_TYPE_DOWNLEVEL ( 0x00000001 )
490 #define LSA_TRUST_TYPE_UPLEVEL ( 0x00000002 )
491 #define LSA_TRUST_TYPE_MIT ( 0x00000003 )
492 #endif
495 /* bitmap lsa_TrustAttributes */
496 #define LSA_TRUST_ATTRIBUTE_NON_TRANSITIVE ( 0x00000001 )
497 #define LSA_TRUST_ATTRIBUTE_UPLEVEL_ONLY ( 0x00000002 )
498 #define LSA_TRUST_ATTRIBUTE_QUARANTINED_DOMAIN ( 0x00000004 )
499 #define LSA_TRUST_ATTRIBUTE_FOREST_TRANSITIVE ( 0x00000008 )
500 #define LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION ( 0x00000010 )
501 #define LSA_TRUST_ATTRIBUTE_WITHIN_FOREST ( 0x00000020 )
502 #define LSA_TRUST_ATTRIBUTE_TREAT_AS_EXTERNAL ( 0x00000040 )
503 #define LSA_TRUST_ATTRIBUTE_USES_RC4_ENCRYPTION ( 0x00000080 )
505 struct lsa_TrustDomainInfoName {
506 struct lsa_StringLarge netbios_name;
509 struct lsa_TrustDomainInfoControllers {
510 uint32_t entries;
511 struct lsa_StringLarge *netbios_names;/* [unique,size_is(entries)] */
514 struct lsa_TrustDomainInfoPosixOffset {
515 uint32_t posix_offset;
518 struct lsa_TrustDomainInfoPassword {
519 struct lsa_DATA_BUF *password;/* [unique] */
520 struct lsa_DATA_BUF *old_password;/* [unique] */
523 struct lsa_TrustDomainInfoBasic {
524 struct lsa_String netbios_name;
525 struct dom_sid2 *sid;/* [unique] */
528 struct lsa_TrustDomainInfoInfoEx {
529 struct lsa_StringLarge domain_name;
530 struct lsa_StringLarge netbios_name;
531 struct dom_sid2 *sid;/* [unique] */
532 uint32_t trust_direction;
533 enum lsa_TrustType trust_type;
534 uint32_t trust_attributes;
537 enum lsa_TrustAuthType
538 #ifndef USE_UINT_ENUMS
540 TRUST_AUTH_TYPE_NONE=(int)(0),
541 TRUST_AUTH_TYPE_NT4OWF=(int)(1),
542 TRUST_AUTH_TYPE_CLEAR=(int)(2),
543 TRUST_AUTH_TYPE_VERSION=(int)(3)
545 #else
546 { __donnot_use_enum_lsa_TrustAuthType=0x7FFFFFFF}
547 #define TRUST_AUTH_TYPE_NONE ( 0 )
548 #define TRUST_AUTH_TYPE_NT4OWF ( 1 )
549 #define TRUST_AUTH_TYPE_CLEAR ( 2 )
550 #define TRUST_AUTH_TYPE_VERSION ( 3 )
551 #endif
554 struct lsa_TrustDomainInfoBuffer {
555 NTTIME last_update_time;
556 enum lsa_TrustAuthType AuthType;
557 struct lsa_DATA_BUF2 data;
560 struct lsa_TrustDomainInfoAuthInfo {
561 uint32_t incoming_count;
562 struct lsa_TrustDomainInfoBuffer *incoming_current_auth_info;/* [unique] */
563 struct lsa_TrustDomainInfoBuffer *incoming_previous_auth_info;/* [unique] */
564 uint32_t outgoing_count;
565 struct lsa_TrustDomainInfoBuffer *outgoing_current_auth_info;/* [unique] */
566 struct lsa_TrustDomainInfoBuffer *outgoing_previous_auth_info;/* [unique] */
569 struct lsa_TrustDomainInfoFullInfo {
570 struct lsa_TrustDomainInfoInfoEx info_ex;
571 struct lsa_TrustDomainInfoPosixOffset posix_offset;
572 struct lsa_TrustDomainInfoAuthInfo auth_info;
575 struct lsa_TrustDomainInfoAuthInfoInternal {
576 struct lsa_DATA_BUF2 auth_blob;
579 struct lsa_TrustDomainInfoFullInfoInternal {
580 struct lsa_TrustDomainInfoInfoEx info_ex;
581 struct lsa_TrustDomainInfoPosixOffset posix_offset;
582 struct lsa_TrustDomainInfoAuthInfoInternal auth_info;
585 struct lsa_TrustDomainInfoInfoEx2Internal {
586 struct lsa_TrustDomainInfoInfoEx info_ex;
587 uint32_t forest_trust_length;
588 uint8_t *forest_trust_data;/* [unique,size_is(forest_trust_length)] */
591 struct lsa_TrustDomainInfoFullInfo2Internal {
592 struct lsa_TrustDomainInfoInfoEx2Internal info;
593 struct lsa_TrustDomainInfoPosixOffset posix_offset;
594 struct lsa_TrustDomainInfoAuthInfo auth_info;
597 struct lsa_TrustDomainInfoSupportedEncTypes {
598 uint32_t enc_types;
601 union lsa_TrustedDomainInfo {
602 struct lsa_TrustDomainInfoName name;/* [case(LSA_TRUSTED_DOMAIN_INFO_NAME)] */
603 struct lsa_TrustDomainInfoControllers controllers;/* [case(LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS)] */
604 struct lsa_TrustDomainInfoPosixOffset posix_offset;/* [case(LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET)] */
605 struct lsa_TrustDomainInfoPassword password;/* [case(LSA_TRUSTED_DOMAIN_INFO_PASSWORD)] */
606 struct lsa_TrustDomainInfoBasic info_basic;/* [case(LSA_TRUSTED_DOMAIN_INFO_BASIC)] */
607 struct lsa_TrustDomainInfoInfoEx info_ex;/* [case(LSA_TRUSTED_DOMAIN_INFO_INFO_EX)] */
608 struct lsa_TrustDomainInfoAuthInfo auth_info;/* [case(LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO)] */
609 struct lsa_TrustDomainInfoFullInfo full_info;/* [case(LSA_TRUSTED_DOMAIN_INFO_FULL_INFO)] */
610 struct lsa_TrustDomainInfoAuthInfoInternal auth_info_internal;/* [case(LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL)] */
611 struct lsa_TrustDomainInfoFullInfoInternal full_info_internal;/* [case(LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL)] */
612 struct lsa_TrustDomainInfoInfoEx2Internal info_ex2_internal;/* [case(LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL)] */
613 struct lsa_TrustDomainInfoFullInfo2Internal full_info2_internal;/* [case(LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_2_INTERNAL)] */
614 struct lsa_TrustDomainInfoSupportedEncTypes enc_types;/* [case(LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES)] */
615 }/* [switch_type(lsa_TrustDomInfoEnum)] */;
617 struct lsa_DATA_BUF_PTR {
618 struct lsa_DATA_BUF *buf;/* [unique] */
621 struct lsa_RightAttribute {
622 const char *name;/* [unique,charset(UTF16)] */
625 struct lsa_RightSet {
626 uint32_t count;/* [range(0,256)] */
627 struct lsa_StringLarge *names;/* [unique,size_is(count)] */
630 struct lsa_DomainListEx {
631 uint32_t count;
632 struct lsa_TrustDomainInfoInfoEx *domains;/* [unique,size_is(count)] */
635 struct lsa_DomainInfoKerberos {
636 uint32_t enforce_restrictions;
637 uint64_t service_tkt_lifetime;
638 uint64_t user_tkt_lifetime;
639 uint64_t user_tkt_renewaltime;
640 uint64_t clock_skew;
641 uint64_t unknown6;
644 struct lsa_DomainInfoEfs {
645 uint32_t blob_size;
646 uint8_t *efs_blob;/* [unique,size_is(blob_size)] */
649 enum lsa_DomainInfoEnum
650 #ifndef USE_UINT_ENUMS
652 LSA_DOMAIN_INFO_POLICY_EFS=(int)(2),
653 LSA_DOMAIN_INFO_POLICY_KERBEROS=(int)(3)
655 #else
656 { __donnot_use_enum_lsa_DomainInfoEnum=0x7FFFFFFF}
657 #define LSA_DOMAIN_INFO_POLICY_EFS ( 2 )
658 #define LSA_DOMAIN_INFO_POLICY_KERBEROS ( 3 )
659 #endif
662 union lsa_DomainInformationPolicy {
663 struct lsa_DomainInfoEfs efs_info;/* [case(LSA_DOMAIN_INFO_POLICY_EFS)] */
664 struct lsa_DomainInfoKerberos kerberos_info;/* [case(LSA_DOMAIN_INFO_POLICY_KERBEROS)] */
665 }/* [switch_type(uint16)] */;
667 struct lsa_TranslatedName2 {
668 enum lsa_SidType sid_type;
669 struct lsa_String name;
670 uint32_t sid_index;
671 uint32_t unknown;
674 struct lsa_TransNameArray2 {
675 uint32_t count;/* [range(0,1000)] */
676 struct lsa_TranslatedName2 *names;/* [unique,size_is(count)] */
679 enum lsa_LookupOptions
680 #ifndef USE_UINT_ENUMS
682 LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES=(int)(0x00000000),
683 LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES_LOCAL=(int)(0x80000000)
685 #else
686 { __donnot_use_enum_lsa_LookupOptions=0x7FFFFFFF}
687 #define LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES ( 0x00000000 )
688 #define LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES_LOCAL ( 0x80000000 )
689 #endif
692 enum lsa_ClientRevision
693 #ifndef USE_UINT_ENUMS
695 LSA_CLIENT_REVISION_1=(int)(0x00000001),
696 LSA_CLIENT_REVISION_2=(int)(0x00000002)
698 #else
699 { __donnot_use_enum_lsa_ClientRevision=0x7FFFFFFF}
700 #define LSA_CLIENT_REVISION_1 ( 0x00000001 )
701 #define LSA_CLIENT_REVISION_2 ( 0x00000002 )
702 #endif
705 struct lsa_TranslatedSid2 {
706 enum lsa_SidType sid_type;
707 uint32_t rid;
708 uint32_t sid_index;
709 uint32_t unknown;
712 struct lsa_TransSidArray2 {
713 uint32_t count;/* [range(0,1000)] */
714 struct lsa_TranslatedSid2 *sids;/* [unique,size_is(count)] */
717 struct lsa_TranslatedSid3 {
718 enum lsa_SidType sid_type;
719 struct dom_sid2 *sid;/* [unique] */
720 uint32_t sid_index;
721 uint32_t flags;
724 struct lsa_TransSidArray3 {
725 uint32_t count;/* [range(0,1000)] */
726 struct lsa_TranslatedSid3 *sids;/* [unique,size_is(count)] */
729 struct lsa_ForestTrustBinaryData {
730 uint32_t length;/* [range(0,131072)] */
731 uint8_t *data;/* [unique,size_is(length)] */
734 struct lsa_ForestTrustDomainInfo {
735 struct dom_sid2 *domain_sid;/* [unique] */
736 struct lsa_StringLarge dns_domain_name;
737 struct lsa_StringLarge netbios_domain_name;
740 union lsa_ForestTrustData {
741 struct lsa_String top_level_name;/* [case(LSA_FOREST_TRUST_TOP_LEVEL_NAME)] */
742 struct lsa_StringLarge top_level_name_ex;/* [case(LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX)] */
743 struct lsa_ForestTrustDomainInfo domain_info;/* [case(LSA_FOREST_TRUST_DOMAIN_INFO)] */
744 struct lsa_ForestTrustBinaryData data;/* [default] */
745 }/* [switch_type(uint32)] */;
747 enum lsa_ForestTrustRecordType
748 #ifndef USE_UINT_ENUMS
750 LSA_FOREST_TRUST_TOP_LEVEL_NAME=(int)(0),
751 LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX=(int)(1),
752 LSA_FOREST_TRUST_DOMAIN_INFO=(int)(2),
753 LSA_FOREST_TRUST_RECORD_TYPE_LAST=(int)(3)
755 #else
756 { __donnot_use_enum_lsa_ForestTrustRecordType=0x7FFFFFFF}
757 #define LSA_FOREST_TRUST_TOP_LEVEL_NAME ( 0 )
758 #define LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX ( 1 )
759 #define LSA_FOREST_TRUST_DOMAIN_INFO ( 2 )
760 #define LSA_FOREST_TRUST_RECORD_TYPE_LAST ( 3 )
761 #endif
764 struct lsa_ForestTrustRecord {
765 uint32_t flags;
766 enum lsa_ForestTrustRecordType level;
767 uint64_t unknown;
768 union lsa_ForestTrustData forest_trust_data;/* [switch_is(level)] */
771 struct lsa_ForestTrustInformation {
772 uint32_t count;/* [range(0,4000)] */
773 struct lsa_ForestTrustRecord **entries;/* [unique,size_is(count)] */
774 }/* [public] */;
777 struct lsa_Close {
778 struct {
779 struct policy_handle *handle;/* [ref] */
780 } in;
782 struct {
783 struct policy_handle *handle;/* [ref] */
784 NTSTATUS result;
785 } out;
790 struct lsa_Delete {
791 struct {
792 struct policy_handle *handle;/* [ref] */
793 } in;
795 struct {
796 NTSTATUS result;
797 } out;
802 struct lsa_EnumPrivs {
803 struct {
804 struct policy_handle *handle;/* [ref] */
805 uint32_t max_count;
806 uint32_t *resume_handle;/* [ref] */
807 } in;
809 struct {
810 struct lsa_PrivArray *privs;/* [ref] */
811 uint32_t *resume_handle;/* [ref] */
812 NTSTATUS result;
813 } out;
818 struct lsa_QuerySecurity {
819 struct {
820 struct policy_handle *handle;/* [ref] */
821 uint32_t sec_info;
822 } in;
824 struct {
825 struct sec_desc_buf **sdbuf;/* [ref] */
826 NTSTATUS result;
827 } out;
832 struct lsa_SetSecObj {
833 struct {
834 struct policy_handle *handle;/* [ref] */
835 uint32_t sec_info;
836 struct sec_desc_buf *sdbuf;/* [ref] */
837 } in;
839 struct {
840 NTSTATUS result;
841 } out;
846 struct lsa_ChangePassword {
847 struct {
848 NTSTATUS result;
849 } out;
854 struct lsa_OpenPolicy {
855 struct {
856 uint16_t *system_name;/* [unique] */
857 struct lsa_ObjectAttribute *attr;/* [ref] */
858 uint32_t access_mask;
859 } in;
861 struct {
862 struct policy_handle *handle;/* [ref] */
863 NTSTATUS result;
864 } out;
869 struct lsa_QueryInfoPolicy {
870 struct {
871 struct policy_handle *handle;/* [ref] */
872 enum lsa_PolicyInfo level;
873 } in;
875 struct {
876 union lsa_PolicyInformation **info;/* [ref,switch_is(level)] */
877 NTSTATUS result;
878 } out;
883 struct lsa_SetInfoPolicy {
884 struct {
885 struct policy_handle *handle;/* [ref] */
886 enum lsa_PolicyInfo level;
887 union lsa_PolicyInformation *info;/* [ref,switch_is(level)] */
888 } in;
890 struct {
891 NTSTATUS result;
892 } out;
897 struct lsa_ClearAuditLog {
898 struct {
899 NTSTATUS result;
900 } out;
905 struct lsa_CreateAccount {
906 struct {
907 struct policy_handle *handle;/* [ref] */
908 struct dom_sid2 *sid;/* [ref] */
909 uint32_t access_mask;
910 } in;
912 struct {
913 struct policy_handle *acct_handle;/* [ref] */
914 NTSTATUS result;
915 } out;
920 struct lsa_EnumAccounts {
921 struct {
922 struct policy_handle *handle;/* [ref] */
923 uint32_t num_entries;/* [range(0,8192)] */
924 uint32_t *resume_handle;/* [ref] */
925 } in;
927 struct {
928 struct lsa_SidArray *sids;/* [ref] */
929 uint32_t *resume_handle;/* [ref] */
930 NTSTATUS result;
931 } out;
936 struct lsa_CreateTrustedDomain {
937 struct {
938 struct policy_handle *policy_handle;/* [ref] */
939 struct lsa_DomainInfo *info;/* [ref] */
940 uint32_t access_mask;
941 } in;
943 struct {
944 struct policy_handle *trustdom_handle;/* [ref] */
945 NTSTATUS result;
946 } out;
951 struct lsa_EnumTrustDom {
952 struct {
953 struct policy_handle *handle;/* [ref] */
954 uint32_t max_size;
955 uint32_t *resume_handle;/* [ref] */
956 } in;
958 struct {
959 struct lsa_DomainList *domains;/* [ref] */
960 uint32_t *resume_handle;/* [ref] */
961 NTSTATUS result;
962 } out;
967 struct lsa_LookupNames {
968 struct {
969 struct policy_handle *handle;/* [ref] */
970 uint32_t num_names;/* [range(0,1000)] */
971 struct lsa_String *names;/* [size_is(num_names)] */
972 enum lsa_LookupNamesLevel level;
973 struct lsa_TransSidArray *sids;/* [ref] */
974 uint32_t *count;/* [ref] */
975 } in;
977 struct {
978 struct lsa_RefDomainList **domains;/* [ref] */
979 struct lsa_TransSidArray *sids;/* [ref] */
980 uint32_t *count;/* [ref] */
981 NTSTATUS result;
982 } out;
987 struct lsa_LookupSids {
988 struct {
989 struct policy_handle *handle;/* [ref] */
990 struct lsa_SidArray *sids;/* [ref] */
991 enum lsa_LookupNamesLevel level;
992 struct lsa_TransNameArray *names;/* [ref] */
993 uint32_t *count;/* [ref] */
994 } in;
996 struct {
997 struct lsa_RefDomainList **domains;/* [ref] */
998 struct lsa_TransNameArray *names;/* [ref] */
999 uint32_t *count;/* [ref] */
1000 NTSTATUS result;
1001 } out;
1006 struct lsa_CreateSecret {
1007 struct {
1008 struct policy_handle *handle;/* [ref] */
1009 struct lsa_String name;
1010 uint32_t access_mask;
1011 } in;
1013 struct {
1014 struct policy_handle *sec_handle;/* [ref] */
1015 NTSTATUS result;
1016 } out;
1021 struct lsa_OpenAccount {
1022 struct {
1023 struct policy_handle *handle;/* [ref] */
1024 struct dom_sid2 *sid;/* [ref] */
1025 uint32_t access_mask;
1026 } in;
1028 struct {
1029 struct policy_handle *acct_handle;/* [ref] */
1030 NTSTATUS result;
1031 } out;
1036 struct lsa_EnumPrivsAccount {
1037 struct {
1038 struct policy_handle *handle;/* [ref] */
1039 } in;
1041 struct {
1042 struct lsa_PrivilegeSet **privs;/* [ref] */
1043 NTSTATUS result;
1044 } out;
1049 struct lsa_AddPrivilegesToAccount {
1050 struct {
1051 struct policy_handle *handle;/* [ref] */
1052 struct lsa_PrivilegeSet *privs;/* [ref] */
1053 } in;
1055 struct {
1056 NTSTATUS result;
1057 } out;
1062 struct lsa_RemovePrivilegesFromAccount {
1063 struct {
1064 struct policy_handle *handle;/* [ref] */
1065 uint8_t remove_all;
1066 struct lsa_PrivilegeSet *privs;/* [unique] */
1067 } in;
1069 struct {
1070 NTSTATUS result;
1071 } out;
1076 struct lsa_GetQuotasForAccount {
1077 struct {
1078 NTSTATUS result;
1079 } out;
1084 struct lsa_SetQuotasForAccount {
1085 struct {
1086 NTSTATUS result;
1087 } out;
1092 struct lsa_GetSystemAccessAccount {
1093 struct {
1094 struct policy_handle *handle;/* [ref] */
1095 } in;
1097 struct {
1098 uint32_t *access_mask;/* [ref] */
1099 NTSTATUS result;
1100 } out;
1105 struct lsa_SetSystemAccessAccount {
1106 struct {
1107 struct policy_handle *handle;/* [ref] */
1108 uint32_t access_mask;
1109 } in;
1111 struct {
1112 NTSTATUS result;
1113 } out;
1118 struct lsa_OpenTrustedDomain {
1119 struct {
1120 struct policy_handle *handle;/* [ref] */
1121 struct dom_sid2 *sid;/* [ref] */
1122 uint32_t access_mask;
1123 } in;
1125 struct {
1126 struct policy_handle *trustdom_handle;/* [ref] */
1127 NTSTATUS result;
1128 } out;
1133 struct lsa_QueryTrustedDomainInfo {
1134 struct {
1135 struct policy_handle *trustdom_handle;/* [ref] */
1136 enum lsa_TrustDomInfoEnum level;
1137 } in;
1139 struct {
1140 union lsa_TrustedDomainInfo **info;/* [ref,switch_is(level)] */
1141 NTSTATUS result;
1142 } out;
1147 struct lsa_SetInformationTrustedDomain {
1148 struct {
1149 struct policy_handle *trustdom_handle;/* [ref] */
1150 enum lsa_TrustDomInfoEnum level;
1151 union lsa_TrustedDomainInfo *info;/* [ref,switch_is(level)] */
1152 } in;
1154 struct {
1155 NTSTATUS result;
1156 } out;
1161 struct lsa_OpenSecret {
1162 struct {
1163 struct policy_handle *handle;/* [ref] */
1164 struct lsa_String name;
1165 uint32_t access_mask;
1166 } in;
1168 struct {
1169 struct policy_handle *sec_handle;/* [ref] */
1170 NTSTATUS result;
1171 } out;
1176 struct lsa_SetSecret {
1177 struct {
1178 struct policy_handle *sec_handle;/* [ref] */
1179 struct lsa_DATA_BUF *new_val;/* [unique] */
1180 struct lsa_DATA_BUF *old_val;/* [unique] */
1181 } in;
1183 struct {
1184 NTSTATUS result;
1185 } out;
1190 struct lsa_QuerySecret {
1191 struct {
1192 struct policy_handle *sec_handle;/* [ref] */
1193 struct lsa_DATA_BUF_PTR *new_val;/* [unique] */
1194 NTTIME *new_mtime;/* [unique] */
1195 struct lsa_DATA_BUF_PTR *old_val;/* [unique] */
1196 NTTIME *old_mtime;/* [unique] */
1197 } in;
1199 struct {
1200 struct lsa_DATA_BUF_PTR *new_val;/* [unique] */
1201 NTTIME *new_mtime;/* [unique] */
1202 struct lsa_DATA_BUF_PTR *old_val;/* [unique] */
1203 NTTIME *old_mtime;/* [unique] */
1204 NTSTATUS result;
1205 } out;
1210 struct lsa_LookupPrivValue {
1211 struct {
1212 struct policy_handle *handle;/* [ref] */
1213 struct lsa_String *name;/* [ref] */
1214 } in;
1216 struct {
1217 struct lsa_LUID *luid;/* [ref] */
1218 NTSTATUS result;
1219 } out;
1224 struct lsa_LookupPrivName {
1225 struct {
1226 struct policy_handle *handle;/* [ref] */
1227 struct lsa_LUID *luid;/* [ref] */
1228 } in;
1230 struct {
1231 struct lsa_StringLarge **name;/* [ref] */
1232 NTSTATUS result;
1233 } out;
1238 struct lsa_LookupPrivDisplayName {
1239 struct {
1240 struct policy_handle *handle;/* [ref] */
1241 struct lsa_String *name;/* [ref] */
1242 uint16_t language_id;
1243 uint16_t language_id_sys;
1244 } in;
1246 struct {
1247 struct lsa_StringLarge **disp_name;/* [ref] */
1248 uint16_t *returned_language_id;/* [ref] */
1249 NTSTATUS result;
1250 } out;
1255 struct lsa_DeleteObject {
1256 struct {
1257 struct policy_handle *handle;/* [ref] */
1258 } in;
1260 struct {
1261 struct policy_handle *handle;/* [ref] */
1262 NTSTATUS result;
1263 } out;
1268 struct lsa_EnumAccountsWithUserRight {
1269 struct {
1270 struct policy_handle *handle;/* [ref] */
1271 struct lsa_String *name;/* [unique] */
1272 } in;
1274 struct {
1275 struct lsa_SidArray *sids;/* [ref] */
1276 NTSTATUS result;
1277 } out;
1282 struct lsa_EnumAccountRights {
1283 struct {
1284 struct policy_handle *handle;/* [ref] */
1285 struct dom_sid2 *sid;/* [ref] */
1286 } in;
1288 struct {
1289 struct lsa_RightSet *rights;/* [ref] */
1290 NTSTATUS result;
1291 } out;
1296 struct lsa_AddAccountRights {
1297 struct {
1298 struct policy_handle *handle;/* [ref] */
1299 struct dom_sid2 *sid;/* [ref] */
1300 struct lsa_RightSet *rights;/* [ref] */
1301 } in;
1303 struct {
1304 NTSTATUS result;
1305 } out;
1310 struct lsa_RemoveAccountRights {
1311 struct {
1312 struct policy_handle *handle;/* [ref] */
1313 struct dom_sid2 *sid;/* [ref] */
1314 uint8_t remove_all;
1315 struct lsa_RightSet *rights;/* [ref] */
1316 } in;
1318 struct {
1319 NTSTATUS result;
1320 } out;
1325 struct lsa_QueryTrustedDomainInfoBySid {
1326 struct {
1327 struct policy_handle *handle;/* [ref] */
1328 struct dom_sid2 *dom_sid;/* [ref] */
1329 enum lsa_TrustDomInfoEnum level;
1330 } in;
1332 struct {
1333 union lsa_TrustedDomainInfo **info;/* [ref,switch_is(level)] */
1334 NTSTATUS result;
1335 } out;
1340 struct lsa_SetTrustedDomainInfo {
1341 struct {
1342 struct policy_handle *handle;/* [ref] */
1343 struct dom_sid2 *dom_sid;/* [ref] */
1344 enum lsa_TrustDomInfoEnum level;
1345 union lsa_TrustedDomainInfo *info;/* [ref,switch_is(level)] */
1346 } in;
1348 struct {
1349 NTSTATUS result;
1350 } out;
1355 struct lsa_DeleteTrustedDomain {
1356 struct {
1357 struct policy_handle *handle;/* [ref] */
1358 struct dom_sid2 *dom_sid;/* [ref] */
1359 } in;
1361 struct {
1362 NTSTATUS result;
1363 } out;
1368 struct lsa_StorePrivateData {
1369 struct {
1370 struct policy_handle *handle;/* [ref] */
1371 struct lsa_String *name;/* [ref] */
1372 struct lsa_DATA_BUF *val;/* [unique] */
1373 } in;
1375 struct {
1376 NTSTATUS result;
1377 } out;
1382 struct lsa_RetrievePrivateData {
1383 struct {
1384 struct policy_handle *handle;/* [ref] */
1385 struct lsa_String *name;/* [ref] */
1386 struct lsa_DATA_BUF **val;/* [ref] */
1387 } in;
1389 struct {
1390 struct lsa_DATA_BUF **val;/* [ref] */
1391 NTSTATUS result;
1392 } out;
1397 struct lsa_OpenPolicy2 {
1398 struct {
1399 const char *system_name;/* [unique,charset(UTF16)] */
1400 struct lsa_ObjectAttribute *attr;/* [ref] */
1401 uint32_t access_mask;
1402 } in;
1404 struct {
1405 struct policy_handle *handle;/* [ref] */
1406 NTSTATUS result;
1407 } out;
1412 struct lsa_GetUserName {
1413 struct {
1414 const char *system_name;/* [unique,charset(UTF16)] */
1415 struct lsa_String **account_name;/* [ref] */
1416 struct lsa_String **authority_name;/* [unique] */
1417 } in;
1419 struct {
1420 struct lsa_String **account_name;/* [ref] */
1421 struct lsa_String **authority_name;/* [unique] */
1422 NTSTATUS result;
1423 } out;
1428 struct lsa_QueryInfoPolicy2 {
1429 struct {
1430 struct policy_handle *handle;/* [ref] */
1431 enum lsa_PolicyInfo level;
1432 } in;
1434 struct {
1435 union lsa_PolicyInformation **info;/* [ref,switch_is(level)] */
1436 NTSTATUS result;
1437 } out;
1442 struct lsa_SetInfoPolicy2 {
1443 struct {
1444 struct policy_handle *handle;/* [ref] */
1445 enum lsa_PolicyInfo level;
1446 union lsa_PolicyInformation *info;/* [ref,switch_is(level)] */
1447 } in;
1449 struct {
1450 NTSTATUS result;
1451 } out;
1456 struct lsa_QueryTrustedDomainInfoByName {
1457 struct {
1458 struct policy_handle *handle;/* [ref] */
1459 struct lsa_String *trusted_domain;/* [ref] */
1460 enum lsa_TrustDomInfoEnum level;
1461 } in;
1463 struct {
1464 union lsa_TrustedDomainInfo **info;/* [ref,switch_is(level)] */
1465 NTSTATUS result;
1466 } out;
1471 struct lsa_SetTrustedDomainInfoByName {
1472 struct {
1473 struct policy_handle *handle;/* [ref] */
1474 struct lsa_String trusted_domain;
1475 enum lsa_TrustDomInfoEnum level;
1476 union lsa_TrustedDomainInfo *info;/* [unique,switch_is(level)] */
1477 } in;
1479 struct {
1480 NTSTATUS result;
1481 } out;
1486 struct lsa_EnumTrustedDomainsEx {
1487 struct {
1488 struct policy_handle *handle;/* [ref] */
1489 uint32_t max_size;
1490 uint32_t *resume_handle;/* [ref] */
1491 } in;
1493 struct {
1494 struct lsa_DomainListEx *domains;/* [ref] */
1495 uint32_t *resume_handle;/* [ref] */
1496 NTSTATUS result;
1497 } out;
1502 struct lsa_CreateTrustedDomainEx {
1503 struct {
1504 struct policy_handle *policy_handle;/* [ref] */
1505 struct lsa_TrustDomainInfoInfoEx *info;/* [ref] */
1506 struct lsa_TrustDomainInfoAuthInfoInternal *auth_info;/* [ref] */
1507 uint32_t access_mask;
1508 } in;
1510 struct {
1511 struct policy_handle *trustdom_handle;/* [ref] */
1512 NTSTATUS result;
1513 } out;
1518 struct lsa_CloseTrustedDomainEx {
1519 struct {
1520 struct policy_handle *handle;/* [ref] */
1521 } in;
1523 struct {
1524 struct policy_handle *handle;/* [ref] */
1525 NTSTATUS result;
1526 } out;
1531 struct lsa_QueryDomainInformationPolicy {
1532 struct {
1533 struct policy_handle *handle;/* [ref] */
1534 uint16_t level;
1535 } in;
1537 struct {
1538 union lsa_DomainInformationPolicy **info;/* [ref,switch_is(level)] */
1539 NTSTATUS result;
1540 } out;
1545 struct lsa_SetDomainInformationPolicy {
1546 struct {
1547 struct policy_handle *handle;/* [ref] */
1548 uint16_t level;
1549 union lsa_DomainInformationPolicy *info;/* [unique,switch_is(level)] */
1550 } in;
1552 struct {
1553 NTSTATUS result;
1554 } out;
1559 struct lsa_OpenTrustedDomainByName {
1560 struct {
1561 struct policy_handle *handle;/* [ref] */
1562 struct lsa_String name;
1563 uint32_t access_mask;
1564 } in;
1566 struct {
1567 struct policy_handle *trustdom_handle;/* [ref] */
1568 NTSTATUS result;
1569 } out;
1574 struct lsa_TestCall {
1575 struct {
1576 NTSTATUS result;
1577 } out;
1582 struct lsa_LookupSids2 {
1583 struct {
1584 struct policy_handle *handle;/* [ref] */
1585 struct lsa_SidArray *sids;/* [ref] */
1586 enum lsa_LookupNamesLevel level;
1587 enum lsa_LookupOptions lookup_options;
1588 enum lsa_ClientRevision client_revision;
1589 struct lsa_TransNameArray2 *names;/* [ref] */
1590 uint32_t *count;/* [ref] */
1591 } in;
1593 struct {
1594 struct lsa_RefDomainList **domains;/* [ref] */
1595 struct lsa_TransNameArray2 *names;/* [ref] */
1596 uint32_t *count;/* [ref] */
1597 NTSTATUS result;
1598 } out;
1603 struct lsa_LookupNames2 {
1604 struct {
1605 struct policy_handle *handle;/* [ref] */
1606 uint32_t num_names;/* [range(0,1000)] */
1607 struct lsa_String *names;/* [size_is(num_names)] */
1608 enum lsa_LookupNamesLevel level;
1609 enum lsa_LookupOptions lookup_options;
1610 enum lsa_ClientRevision client_revision;
1611 struct lsa_TransSidArray2 *sids;/* [ref] */
1612 uint32_t *count;/* [ref] */
1613 } in;
1615 struct {
1616 struct lsa_RefDomainList **domains;/* [ref] */
1617 struct lsa_TransSidArray2 *sids;/* [ref] */
1618 uint32_t *count;/* [ref] */
1619 NTSTATUS result;
1620 } out;
1625 struct lsa_CreateTrustedDomainEx2 {
1626 struct {
1627 struct policy_handle *policy_handle;/* [ref] */
1628 struct lsa_TrustDomainInfoInfoEx *info;/* [ref] */
1629 struct lsa_TrustDomainInfoAuthInfoInternal *auth_info;/* [ref] */
1630 uint32_t access_mask;
1631 } in;
1633 struct {
1634 struct policy_handle *trustdom_handle;/* [ref] */
1635 NTSTATUS result;
1636 } out;
1641 struct lsa_CREDRWRITE {
1642 struct {
1643 NTSTATUS result;
1644 } out;
1649 struct lsa_CREDRREAD {
1650 struct {
1651 NTSTATUS result;
1652 } out;
1657 struct lsa_CREDRENUMERATE {
1658 struct {
1659 NTSTATUS result;
1660 } out;
1665 struct lsa_CREDRWRITEDOMAINCREDENTIALS {
1666 struct {
1667 NTSTATUS result;
1668 } out;
1673 struct lsa_CREDRREADDOMAINCREDENTIALS {
1674 struct {
1675 NTSTATUS result;
1676 } out;
1681 struct lsa_CREDRDELETE {
1682 struct {
1683 NTSTATUS result;
1684 } out;
1689 struct lsa_CREDRGETTARGETINFO {
1690 struct {
1691 NTSTATUS result;
1692 } out;
1697 struct lsa_CREDRPROFILELOADED {
1698 struct {
1699 NTSTATUS result;
1700 } out;
1705 struct lsa_LookupNames3 {
1706 struct {
1707 struct policy_handle *handle;/* [ref] */
1708 uint32_t num_names;/* [range(0,1000)] */
1709 struct lsa_String *names;/* [size_is(num_names)] */
1710 enum lsa_LookupNamesLevel level;
1711 enum lsa_LookupOptions lookup_options;
1712 enum lsa_ClientRevision client_revision;
1713 struct lsa_TransSidArray3 *sids;/* [ref] */
1714 uint32_t *count;/* [ref] */
1715 } in;
1717 struct {
1718 struct lsa_RefDomainList **domains;/* [ref] */
1719 struct lsa_TransSidArray3 *sids;/* [ref] */
1720 uint32_t *count;/* [ref] */
1721 NTSTATUS result;
1722 } out;
1727 struct lsa_CREDRGETSESSIONTYPES {
1728 struct {
1729 NTSTATUS result;
1730 } out;
1735 struct lsa_LSARREGISTERAUDITEVENT {
1736 struct {
1737 NTSTATUS result;
1738 } out;
1743 struct lsa_LSARGENAUDITEVENT {
1744 struct {
1745 NTSTATUS result;
1746 } out;
1751 struct lsa_LSARUNREGISTERAUDITEVENT {
1752 struct {
1753 NTSTATUS result;
1754 } out;
1759 struct lsa_lsaRQueryForestTrustInformation {
1760 struct {
1761 struct policy_handle *handle;/* [ref] */
1762 struct lsa_String *trusted_domain_name;/* [ref] */
1763 uint16_t unknown;
1764 } in;
1766 struct {
1767 struct lsa_ForestTrustInformation **forest_trust_info;/* [ref] */
1768 NTSTATUS result;
1769 } out;
1774 struct lsa_LSARSETFORESTTRUSTINFORMATION {
1775 struct {
1776 NTSTATUS result;
1777 } out;
1782 struct lsa_CREDRRENAME {
1783 struct {
1784 NTSTATUS result;
1785 } out;
1790 struct lsa_LookupSids3 {
1791 struct {
1792 struct lsa_SidArray *sids;/* [ref] */
1793 enum lsa_LookupNamesLevel level;
1794 enum lsa_LookupOptions lookup_options;
1795 enum lsa_ClientRevision client_revision;
1796 struct lsa_TransNameArray2 *names;/* [ref] */
1797 uint32_t *count;/* [ref] */
1798 } in;
1800 struct {
1801 struct lsa_RefDomainList **domains;/* [ref] */
1802 struct lsa_TransNameArray2 *names;/* [ref] */
1803 uint32_t *count;/* [ref] */
1804 NTSTATUS result;
1805 } out;
1810 struct lsa_LookupNames4 {
1811 struct {
1812 uint32_t num_names;/* [range(0,1000)] */
1813 struct lsa_String *names;/* [size_is(num_names)] */
1814 enum lsa_LookupNamesLevel level;
1815 enum lsa_LookupOptions lookup_options;
1816 enum lsa_ClientRevision client_revision;
1817 struct lsa_TransSidArray3 *sids;/* [ref] */
1818 uint32_t *count;/* [ref] */
1819 } in;
1821 struct {
1822 struct lsa_RefDomainList **domains;/* [ref] */
1823 struct lsa_TransSidArray3 *sids;/* [ref] */
1824 uint32_t *count;/* [ref] */
1825 NTSTATUS result;
1826 } out;
1831 struct lsa_LSAROPENPOLICYSCE {
1832 struct {
1833 NTSTATUS result;
1834 } out;
1839 struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE {
1840 struct {
1841 NTSTATUS result;
1842 } out;
1847 struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE {
1848 struct {
1849 NTSTATUS result;
1850 } out;
1855 struct lsa_LSARADTREPORTSECURITYEVENT {
1856 struct {
1857 NTSTATUS result;
1858 } out;
1862 #endif /* _HEADER_lsarpc */