3 much of this was derived from the ethereal sources - thanks to everyone
7 import
"lsa.idl", "samr.idl", "security.idl", "nbt.idl";
11 cpp_quote
("#define netr_DeltaEnum8Bit netr_DeltaEnum")
14 uuid("12345678-1234-abcd-ef00-01234567cffb"),
16 endpoint("ncacn_np:[\\pipe\\netlogon]","ncacn_ip_tcp:","ncalrpc:"),
17 helper
("librpc/ndr/ndr_netlogon.h"),
18 pointer_default(unique)
23 typedef bitmap samr_AcctFlags samr_AcctFlags
;
24 typedef bitmap samr_GroupAttrs samr_GroupAttrs
;
25 typedef enum netr_DeltaEnum8Bit netr_DeltaEnum8Bit
;
31 [string,charset
(UTF16
)] uint16
*account_name
;
42 time_t pw_must_change
;
43 [string,charset
(UTF16
)] uint16
*computer
;
44 [string,charset
(UTF16
)] uint16
*domain
;
45 [string,charset
(UTF16
)] uint16
*script_path
;
49 WERROR netr_LogonUasLogon
(
50 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
51 [in] [string,charset
(UTF16
)] uint16 account_name
[],
52 [in] [string,charset
(UTF16
)] uint16 workstation
[],
53 [out,ref] netr_UasInfo
*info
65 WERROR netr_LogonUasLogoff
(
66 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
67 [in] [string,charset
(UTF16
)] uint16 account_name
[],
68 [in] [string,charset
(UTF16
)] uint16 workstation
[],
69 [out,ref] netr_UasLogoffInfo
*info
76 /* in netr_AcctLockStr size seems to be be 24, and rrenard thinks
77 that the structure of the bindata looks like this:
79 dlong lockout_duration;
81 uint32 bad_attempt_lockout;
84 but it doesn't look as though this structure is reflected at the
85 NDR level. Maybe it is left to the application to decode the bindata array.
87 typedef [public] struct {
88 dlong lockout_duration
;
90 uint32 bad_attempt_lockout
;
94 /* - MSV1_0_ALLOW_SERVER_TRUST_ACCOUNT
95 * sets the NETLOGON_SERVER_TRUST_ACCOUNT user_flag
96 * - MSV1_0_UPDATE_LOGON_STATISTICS
97 * sets the logon time on network logon
98 * - MSV1_0_RETURN_USER_PARAMETERS
99 * sets the user parameters in the driveletter
100 * - MSV1_0_RETURN_PROFILE_PATH
101 * returns the profilepath in the driveletter and
102 * sets LOGON_PROFILE_PATH_RETURNED user_flag
105 typedef [public,bitmap32bit
] bitmap
{
106 MSV1_0_CLEARTEXT_PASSWORD_ALLOWED
= 0x00000002,
107 MSV1_0_UPDATE_LOGON_STATISTICS
= 0x00000004,
108 MSV1_0_RETURN_USER_PARAMETERS
= 0x00000008,
109 MSV1_0_ALLOW_SERVER_TRUST_ACCOUNT
= 0x00000020,
110 MSV1_0_RETURN_PROFILE_PATH
= 0x00000200,
111 MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT
= 0x00000800
112 } netr_LogonParameterControl
;
115 lsa_String domain_name
;
116 netr_LogonParameterControl parameter_control
; /* see MSV1_0_* */
118 uint32 logon_id_high
;
119 lsa_String account_name
;
120 lsa_String workstation
;
124 netr_IdentityInfo identity_info
;
125 samr_Password lmpassword
;
126 samr_Password ntpassword
;
129 typedef [flag
(NDR_PAHEX
)] struct {
131 [value
(length
)] uint16 size
;
132 [size_is(length
),length_is(length
)] uint8
*data
;
133 } netr_ChallengeResponse
;
135 typedef [flag
(NDR_PAHEX
)] struct {
136 netr_IdentityInfo identity_info
;
138 netr_ChallengeResponse nt
;
139 netr_ChallengeResponse lm
;
142 typedef [public,switch_type(uint16
)] union {
143 [case(1)] netr_PasswordInfo
*password
;
144 [case(2)] netr_NetworkInfo
*network
;
145 [case(3)] netr_PasswordInfo
*password
;
146 [case(5)] netr_PasswordInfo
*password
;
147 [case(6)] netr_NetworkInfo
*network
;
150 typedef [public,flag
(NDR_PAHEX
)] struct {
152 } netr_UserSessionKey
;
154 typedef [public,flag
(NDR_PAHEX
)] struct {
158 /* Flags for user_flags below */
159 typedef [public,bitmap32bit
] bitmap
{
160 NETLOGON_GUEST
= 0x00000001,
161 NETLOGON_NOENCRYPTION
= 0x00000002,
162 NETLOGON_CACHED_ACCOUNT
= 0x00000004,
163 NETLOGON_USED_LM_PASSWORD
= 0x00000008,
164 NETLOGON_EXTRA_SIDS
= 0x00000020,
165 NETLOGON_SUBAUTH_SESSION_KEY
= 0x00000040,
166 NETLOGON_SERVER_TRUST_ACCOUNT
= 0x00000080,
167 NETLOGON_NTLMV2_ENABLED
= 0x00000100,
168 NETLOGON_RESOURCE_GROUPS
= 0x00000200,
169 NETLOGON_PROFILE_PATH_RETURNED
= 0x00000400,
170 NETLOGON_GRACE_LOGON
= 0x01000000
177 NTTIME last_password_change
;
178 NTTIME allow_password_change
;
179 NTTIME force_password_change
;
180 lsa_String account_name
;
181 lsa_String full_name
;
182 lsa_String logon_script
;
183 lsa_String profile_path
;
184 lsa_String home_directory
;
185 lsa_String home_drive
;
187 uint16 bad_password_count
;
190 samr_RidWithAttributeArray groups
;
191 netr_UserFlags user_flags
;
192 netr_UserSessionKey key
;
193 lsa_StringLarge logon_server
;
194 lsa_StringLarge domain
;
195 dom_sid2
*domain_sid
;
196 netr_LMSessionKey LMSessKey
;
197 samr_AcctFlags acct_flags
;
202 netr_SamBaseInfo base
;
207 samr_GroupAttrs attributes
;
210 typedef [public] struct {
211 netr_SamBaseInfo base
;
213 [size_is(sidcount
)] netr_SidAttr
*sids
;
217 netr_SamBaseInfo base
;
219 [size_is(sidcount
)] netr_SidAttr
*sids
;
221 lsa_String principle
;
227 [size_is(pac_size
)] uint8
*pac
;
228 lsa_String logon_domain
;
229 lsa_String logon_server
;
230 lsa_String principal_name
;
232 [size_is(auth_size
)] uint8
*auth
;
233 netr_UserSessionKey user_session_key
;
234 uint32 expansionroom
[10];
241 typedef [public,switch_type(uint16
)] union {
242 [case(2)] netr_SamInfo2
*sam2
;
243 [case(3)] netr_SamInfo3
*sam3
;
244 [case(4)] netr_PacInfo
*pac
;
245 [case(5)] netr_PacInfo
*pac
;
246 [case(6)] netr_SamInfo6
*sam6
;
249 typedef [public, flag
(NDR_PAHEX
)] struct {
253 typedef [public] struct {
254 netr_Credential cred
;
256 } netr_Authenticator
;
259 INTERACTIVE_LOGON_TYPE
= 1,
263 NTSTATUS netr_LogonSamLogon
(
264 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
265 [in,unique] [string,charset
(UTF16
)] uint16
*computer_name
,
266 [in,unique] netr_Authenticator
*credential
,
267 [in,out,unique] netr_Authenticator
*return_authenticator
,
268 [in] netr_LogonLevel logon_level
,
269 [in,ref] [switch_is(logon_level
)] netr_LogonInfo
*logon
,
270 [in] uint16 validation_level
,
271 [out,ref] [switch_is(validation_level
)] netr_Validation
*validation
,
272 [out,ref] uint8
*authoritative
279 NTSTATUS netr_LogonSamLogoff
(
280 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
281 [in,unique] [string,charset
(UTF16
)] uint16
*computer_name
,
282 [in,unique] netr_Authenticator
*credential
,
283 [in,out,unique] netr_Authenticator
*return_authenticator
,
284 [in] netr_LogonLevel logon_level
,
285 [in] [switch_is(logon_level
)] netr_LogonInfo logon
293 NTSTATUS netr_ServerReqChallenge
(
294 [in,unique,string,charset
(UTF16
)] uint16
*server_name
,
295 [in,string,charset
(UTF16
)] uint16 computer_name
[],
296 [in,ref] netr_Credential
*credentials
,
297 [out,ref] netr_Credential
*return_credentials
304 typedef enum netr_SchannelType netr_SchannelType
;
306 NTSTATUS netr_ServerAuthenticate
(
307 [in,unique,string,charset
(UTF16
)] uint16
*server_name
,
308 [in,string,charset
(UTF16
)] uint16 account_name
[],
309 [in] netr_SchannelType secure_channel_type
,
310 [in,string,charset
(UTF16
)] uint16 computer_name
[],
311 [in,ref] netr_Credential
*credentials
,
312 [out,ref] netr_Credential
*return_credentials
319 NTSTATUS netr_ServerPasswordSet
(
320 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
321 [in] [string,charset
(UTF16
)] uint16 account_name
[],
322 [in] netr_SchannelType secure_channel_type
,
323 [in] [string,charset
(UTF16
)] uint16 computer_name
[],
324 [in,ref] netr_Authenticator
*credential
,
325 [out,ref] netr_Authenticator
*return_authenticator
,
326 [in,ref] samr_Password
*new_password
333 typedef enum netr_SamDatabaseID netr_SamDatabaseID
;
336 [string,charset
(UTF16
)] uint16
*account_name
;
345 } netr_DELTA_DELETE_USER
;
349 [value
(length
)] uint16 size
;
356 [value
(nt_length
)] uint16 nt_size
;
359 [value
(lm_length
)] uint16 lm_size
;
361 uint8 nt_history
[nt_length
];
362 uint8 lm_history
[lm_length
];
363 } netr_PasswordHistory
;
366 netr_USER_KEY16 lmpassword
;
367 netr_USER_KEY16 ntpassword
;
368 netr_PasswordHistory history
;
371 typedef struct { /* TODO: make this a union! */
372 netr_USER_KEYS2 keys2
;
373 } netr_USER_KEY_UNION
;
375 typedef [public] struct {
377 netr_USER_KEY_UNION keys
;
381 boolean8 SensitiveDataFlag
;
384 /* netr_USER_KEYS encrypted with the session key */
385 [size_is(DataLength
)][flag
(NDR_PAHEX
)] uint8
*SensitiveData
;
386 } netr_USER_PRIVATE_INFO
;
389 lsa_String account_name
;
390 lsa_String full_name
;
393 lsa_String home_directory
;
394 lsa_String home_drive
;
395 lsa_String logon_script
;
396 lsa_String description
;
397 lsa_String workstations
;
400 samr_LogonHours logon_hours
;
401 uint16 bad_password_count
;
403 NTTIME last_password_change
;
405 samr_AcctFlags acct_flags
;
406 samr_Password lmpassword
;
407 samr_Password ntpassword
;
408 boolean8 nt_password_present
;
409 boolean8 lm_password_present
;
410 boolean8 password_expired
;
412 lsa_String parameters
;
415 netr_USER_PRIVATE_INFO user_private_info
;
416 uint32 SecurityInformation
;
418 lsa_String profile_path
;
429 lsa_String domain_name
;
431 dlong force_logoff_time
;
432 uint16 min_password_length
;
433 uint16 password_history_length
;
434 /* yes, these are signed. They are in negative 100ns */
435 dlong max_password_age
;
436 dlong min_password_age
;
438 NTTIME domain_create_time
;
439 uint32 SecurityInformation
;
441 lsa_BinaryString account_lockout
;
445 uint32 logon_to_chgpass
;
452 lsa_String group_name
;
455 lsa_String description
;
456 uint32 SecurityInformation
;
482 [size_is(num_rids
)] uint32
*rids
;
483 [size_is(num_rids
)] uint32
*attribs
;
489 } netr_DELTA_GROUP_MEMBER
;
492 lsa_String alias_name
;
494 uint32 SecurityInformation
;
496 lsa_String description
;
512 } netr_DELTA_ALIAS_MEMBER
;
515 uint32 pagedpoollimit
;
516 uint32 nonpagedpoollimit
;
517 uint32 minimumworkingsetsize
;
518 uint32 maximumworkingsetsize
;
519 uint32 pagefilelimit
;
525 NTTIME auditretentionperiod
;
526 boolean8 auditingmode
;
527 uint32 maxauditeventcount
;
528 [size_is(maxauditeventcount
+1)] uint32
*eventauditoptions
;
529 lsa_String primary_domain_name
;
531 netr_QUOTA_LIMITS quota_limits
;
533 NTTIME db_create_time
;
534 uint32 SecurityInformation
;
547 lsa_String domain_name
;
548 uint32 num_controllers
;
549 [size_is(num_controllers
)] lsa_String
*controller_names
;
550 uint32 SecurityInformation
;
560 } netr_DELTA_TRUSTED_DOMAIN
;
564 } netr_DELTA_DELETE_TRUST
;
567 uint32 privilege_entries
;
568 uint32 privilege_control
;
569 [size_is(privilege_entries
)] uint32
*privilege_attrib
;
570 [size_is(privilege_entries
)] lsa_String
*privilege_name
;
571 netr_QUOTA_LIMITS quotalimits
;
573 uint32 SecurityInformation
;
583 } netr_DELTA_ACCOUNT
;
587 } netr_DELTA_DELETE_ACCOUNT
;
591 } netr_DELTA_DELETE_SECRET
;
596 [size_is(maxlen
)][length_is(len
)] uint8
*cipher_data
;
600 netr_CIPHER_VALUE current_cipher
;
601 NTTIME current_cipher_set_time
;
602 netr_CIPHER_VALUE old_cipher
;
603 NTTIME old_cipher_set_time
;
604 uint32 SecurityInformation
;
617 NETR_DELTA_DOMAIN
= 1,
618 NETR_DELTA_GROUP
= 2,
619 NETR_DELTA_DELETE_GROUP
= 3,
620 NETR_DELTA_RENAME_GROUP
= 4,
622 NETR_DELTA_DELETE_USER
= 6,
623 NETR_DELTA_RENAME_USER
= 7,
624 NETR_DELTA_GROUP_MEMBER
= 8,
625 NETR_DELTA_ALIAS
= 9,
626 NETR_DELTA_DELETE_ALIAS
= 10,
627 NETR_DELTA_RENAME_ALIAS
= 11,
628 NETR_DELTA_ALIAS_MEMBER
= 12,
629 NETR_DELTA_POLICY
= 13,
630 NETR_DELTA_TRUSTED_DOMAIN
= 14,
631 NETR_DELTA_DELETE_TRUST
= 15,
632 NETR_DELTA_ACCOUNT
= 16,
633 NETR_DELTA_DELETE_ACCOUNT
= 17,
634 NETR_DELTA_SECRET
= 18,
635 NETR_DELTA_DELETE_SECRET
= 19,
636 NETR_DELTA_DELETE_GROUP2
= 20,
637 NETR_DELTA_DELETE_USER2
= 21,
638 NETR_DELTA_MODIFY_COUNT
= 22
641 typedef [switch_type(netr_DeltaEnum
)] union {
642 [case(NETR_DELTA_DOMAIN
)] netr_DELTA_DOMAIN
*domain
;
643 [case(NETR_DELTA_GROUP
)] netr_DELTA_GROUP
*group
;
644 [case(NETR_DELTA_DELETE_GROUP
)] ; /* rid only */
645 [case(NETR_DELTA_RENAME_GROUP
)] netr_DELTA_RENAME
*rename_group
;
646 [case(NETR_DELTA_USER
)] netr_DELTA_USER
*user
;
647 [case(NETR_DELTA_DELETE_USER
)] ; /* rid only */
648 [case(NETR_DELTA_RENAME_USER
)] netr_DELTA_RENAME
*rename_user
;
649 [case(NETR_DELTA_GROUP_MEMBER
)] netr_DELTA_GROUP_MEMBER
*group_member
;
650 [case(NETR_DELTA_ALIAS
)] netr_DELTA_ALIAS
*alias
;
651 [case(NETR_DELTA_DELETE_ALIAS
)] ; /* rid only */
652 [case(NETR_DELTA_RENAME_ALIAS
)] netr_DELTA_RENAME
*rename_alias
;
653 [case(NETR_DELTA_ALIAS_MEMBER
)] netr_DELTA_ALIAS_MEMBER
*alias_member
;
654 [case(NETR_DELTA_POLICY
)] netr_DELTA_POLICY
*policy
;
655 [case(NETR_DELTA_TRUSTED_DOMAIN
)] netr_DELTA_TRUSTED_DOMAIN
*trusted_domain
;
656 [case(NETR_DELTA_DELETE_TRUST
)] netr_DELTA_DELETE_TRUST delete_trust
;
657 [case(NETR_DELTA_ACCOUNT
)] netr_DELTA_ACCOUNT
*account
;
658 [case(NETR_DELTA_DELETE_ACCOUNT
)] netr_DELTA_DELETE_ACCOUNT delete_account
;
659 [case(NETR_DELTA_SECRET
)] netr_DELTA_SECRET
*secret
;
660 [case(NETR_DELTA_DELETE_SECRET
)] netr_DELTA_DELETE_SECRET delete_secret
;
661 [case(NETR_DELTA_DELETE_GROUP2
)] netr_DELTA_DELETE_USER
*delete_group
;
662 [case(NETR_DELTA_DELETE_USER2
)] netr_DELTA_DELETE_USER
*delete_user
;
663 [case(NETR_DELTA_MODIFY_COUNT
)] udlong
*modified_count
;
666 typedef [switch_type(netr_DeltaEnum
)] union {
667 [case(NETR_DELTA_DOMAIN
)] uint32 rid
;
668 [case(NETR_DELTA_GROUP
)] uint32 rid
;
669 [case(NETR_DELTA_DELETE_GROUP
)] uint32 rid
;
670 [case(NETR_DELTA_RENAME_GROUP
)] uint32 rid
;
671 [case(NETR_DELTA_USER
)] uint32 rid
;
672 [case(NETR_DELTA_DELETE_USER
)] uint32 rid
;
673 [case(NETR_DELTA_RENAME_USER
)] uint32 rid
;
674 [case(NETR_DELTA_GROUP_MEMBER
)] uint32 rid
;
675 [case(NETR_DELTA_ALIAS
)] uint32 rid
;
676 [case(NETR_DELTA_DELETE_ALIAS
)] uint32 rid
;
677 [case(NETR_DELTA_RENAME_ALIAS
)] uint32 rid
;
678 [case(NETR_DELTA_ALIAS_MEMBER
)] uint32 rid
;
679 [case(NETR_DELTA_POLICY
)] dom_sid2
*sid
;
680 [case(NETR_DELTA_TRUSTED_DOMAIN
)] dom_sid2
*sid
;
681 [case(NETR_DELTA_DELETE_TRUST
)] dom_sid2
*sid
;
682 [case(NETR_DELTA_ACCOUNT
)] dom_sid2
*sid
;
683 [case(NETR_DELTA_DELETE_ACCOUNT
)] dom_sid2
*sid
;
684 [case(NETR_DELTA_SECRET
)] [string,charset
(UTF16
)] uint16
*name
;
685 [case(NETR_DELTA_DELETE_SECRET
)] [string,charset
(UTF16
)] uint16
*name
;
686 [case(NETR_DELTA_DELETE_GROUP2
)] uint32 rid
;
687 [case(NETR_DELTA_DELETE_USER2
)] uint32 rid
;
688 [case(NETR_DELTA_MODIFY_COUNT
)] ;
689 } netr_DELTA_ID_UNION
;
692 netr_DeltaEnum delta_type
;
693 [switch_is(delta_type
)] netr_DELTA_ID_UNION delta_id_union
;
694 [switch_is(delta_type
)] netr_DELTA_UNION delta_union
;
699 [size_is(num_deltas
)] netr_DELTA_ENUM
*delta_enum
;
700 } netr_DELTA_ENUM_ARRAY
;
703 NTSTATUS netr_DatabaseDeltas
(
704 [in] [string,charset
(UTF16
)] uint16 logon_server
[],
705 [in] [string,charset
(UTF16
)] uint16 computername
[],
706 [in,ref] netr_Authenticator
*credential
,
707 [in,out,ref] netr_Authenticator
*return_authenticator
,
708 [in] netr_SamDatabaseID database_id
,
709 [in,out,ref] udlong
*sequence_num
,
710 [out,ref] netr_DELTA_ENUM_ARRAY
**delta_enum_array
,
711 [in] uint32 preferredmaximumlength
718 NTSTATUS netr_DatabaseSync
(
719 [in] [string,charset
(UTF16
)] uint16 logon_server
[],
720 [in] [string,charset
(UTF16
)] uint16 computername
[],
721 [in] netr_Authenticator credential
,
722 [in,out,ref] netr_Authenticator
*return_authenticator
,
723 [in] netr_SamDatabaseID database_id
,
724 [in,out,ref] uint32
*sync_context
,
725 [in] uint32 preferredmaximumlength
,
726 [out,ref] netr_DELTA_ENUM_ARRAY
*delta_enum_array
733 /* w2k3 returns NT_STATUS_NOT_IMPLEMENTED for this call */
735 typedef [flag
(NDR_PAHEX
)] struct {
736 uint8 computer_name
[16];
738 uint32 serial_number
;
742 [flag
(NDR_REMAINING
)] DATA_BLOB blob
;
743 } netr_AccountBuffer
;
745 NTSTATUS netr_AccountDeltas
(
746 [in,unique] [string,charset
(UTF16
)] uint16
*logon_server
,
747 [in] [string,charset
(UTF16
)] uint16 computername
[],
748 [in] netr_Authenticator credential
,
749 [in,out,ref] netr_Authenticator
*return_authenticator
,
750 [in] netr_UAS_INFO_0 uas
,
753 [in] uint32 buffersize
,
754 [out,ref,subcontext
(4)] netr_AccountBuffer
*buffer
,
755 [out,ref] uint32
*count_returned
,
756 [out,ref] uint32
*total_entries
,
757 [out,ref] netr_UAS_INFO_0
*recordid
764 NTSTATUS netr_AccountSync
(
765 [in,unique] [string,charset
(UTF16
)] uint16
*logon_server
,
766 [in] [string,charset
(UTF16
)] uint16 computername
[],
767 [in] netr_Authenticator credential
,
768 [in,out,ref] netr_Authenticator
*return_authenticator
,
769 [in] uint32 reference
,
771 [in] uint32 buffersize
,
772 [out,ref,subcontext
(4)] netr_AccountBuffer
*buffer
,
773 [out,ref] uint32
*count_returned
,
774 [out,ref] uint32
*total_entries
,
775 [out,ref] uint32
*next_reference
,
776 [in,out,ref] netr_UAS_INFO_0
*recordid
783 WERROR netr_GetDcName
(
784 [in] [string,charset
(UTF16
)] uint16 logon_server
[],
785 [in,unique] [string,charset
(UTF16
)] uint16
*domainname
,
786 [out,ref] [string,charset
(UTF16
)] uint16
**dcname
792 typedef [bitmap32bit
] bitmap
{
793 NETLOGON_CTRL_REPL_NEEDED
= 0x0001,
794 NETLOGON_CTRL_REPL_IN_PROGRESS
= 0x0002,
795 NETLOGON_CTRL_REPL_FULL_SYNC
= 0x0004
799 netr_InfoFlags flags
;
800 uint32 pdc_connection_status
;
801 } netr_NETLOGON_INFO_1
;
804 netr_InfoFlags flags
;
805 uint32 pdc_connection_status
;
806 [string,charset
(UTF16
)] uint16
*trusted_dc_name
;
807 uint32 tc_connection_status
;
808 } netr_NETLOGON_INFO_2
;
811 netr_InfoFlags flags
;
812 uint32 logon_attempts
;
818 } netr_NETLOGON_INFO_3
;
821 [case(1)] netr_NETLOGON_INFO_1
*info1
;
822 [case(2)] netr_NETLOGON_INFO_2
*info2
;
823 [case(3)] netr_NETLOGON_INFO_3
*info3
;
824 } netr_CONTROL_QUERY_INFORMATION
;
826 /* function_code values */
827 typedef [v1_enum] enum {
828 NETLOGON_CONTROL_SYNC
= 2,
829 NETLOGON_CONTROL_REDISCOVER
= 5,
830 NETLOGON_CONTROL_TC_QUERY
= 6,
831 NETLOGON_CONTROL_TRANSPORT_NOTIFY
= 7,
832 NETLOGON_CONTROL_SET_DBFLAG
= 65534
833 } netr_LogonControlCode
;
835 WERROR netr_LogonControl
(
836 [in,unique] [string,charset
(UTF16
)] uint16
*logon_server
,
837 [in] netr_LogonControlCode function_code
,
839 [out,ref,switch_is(level
)] netr_CONTROL_QUERY_INFORMATION
*info
846 WERROR netr_GetAnyDCName
(
847 [in,unique] [string,charset
(UTF16
)] uint16
*logon_server
,
848 [in,unique] [string,charset
(UTF16
)] uint16
*domainname
,
849 [out,ref] [string,charset
(UTF16
)] uint16
**dcname
857 [case(NETLOGON_CONTROL_REDISCOVER
)] [string,charset
(UTF16
)] uint16
*domain
;
858 [case(NETLOGON_CONTROL_TC_QUERY
)] [string,charset
(UTF16
)] uint16
*domain
;
859 [case(NETLOGON_CONTROL_TRANSPORT_NOTIFY
)] [string,charset
(UTF16
)] uint16
*domain
;
860 [case(NETLOGON_CONTROL_SET_DBFLAG
)] uint32 debug_level
;
861 } netr_CONTROL_DATA_INFORMATION
;
863 WERROR netr_LogonControl2
(
864 [in,unique] [string,charset
(UTF16
)] uint16
*logon_server
,
865 [in] netr_LogonControlCode function_code
,
867 [in,ref][switch_is(function_code
)] netr_CONTROL_DATA_INFORMATION
*data
,
868 [out,ref][switch_is(level
)] netr_CONTROL_QUERY_INFORMATION
*query
872 /* If NETLOGON_NEG_ARCFOUR flag is not set, then the passwords and LM
873 * session keys are encrypted with DES calls. (And the user session key
879 typedef [bitmap32bit
] bitmap
{
880 NETLOGON_NEG_ACCOUNT_LOCKOUT
= 0x00000001,
881 NETLOGON_NEG_PERSISTENT_SAMREPL
= 0x00000002,
882 NETLOGON_NEG_ARCFOUR
= 0x00000004,
883 NETLOGON_NEG_PROMOTION_COUNT
= 0x00000008,
884 NETLOGON_NEG_CHANGELOG_BDC
= 0x00000010,
885 NETLOGON_NEG_FULL_SYNC_REPL
= 0x00000020,
886 NETLOGON_NEG_MULTIPLE_SIDS
= 0x00000040,
887 NETLOGON_NEG_REDO
= 0x00000080,
888 NETLOGON_NEG_PASSWORD_CHANGE_REFUSAL
= 0x00000100,
889 NETLOGON_NEG_SEND_PASSWORD_INFO_PDC
= 0x00000200,
890 NETLOGON_NEG_GENERIC_PASSTHROUGH
= 0x00000400,
891 NETLOGON_NEG_CONCURRENT_RPC
= 0x00000800,
892 NETLOGON_NEG_AVOID_ACCOUNT_DB_REPL
= 0x00001000,
893 NETLOGON_NEG_AVOID_SECURITYAUTH_DB_REPL
= 0x00002000,
894 NETLOGON_NEG_128BIT
= 0x00004000, /* STRONG_KEYS */
895 NETLOGON_NEG_TRANSITIVE_TRUSTS
= 0x00008000,
896 NETLOGON_NEG_DNS_DOMAIN_TRUSTS
= 0x00010000,
897 NETLOGON_NEG_PASSWORD_SET2
= 0x00020000,
898 NETLOGON_NEG_GETDOMAININFO
= 0x00040000,
899 NETLOGON_NEG_CROSS_FOREST_TRUSTS
= 0x00080000,
900 NETLOGON_NEG_NEUTRALIZE_NT4_EMULATION
= 0x00100000,
901 NETLOGON_NEG_RODC_PASSTHROUGH
= 0x00200000,
902 NETLOGON_NEG_AUTHENTICATED_RPC_LSASS
= 0x20000000,
903 NETLOGON_NEG_SCHANNEL
= 0x40000000 /* AUTHENTICATED_RPC */
904 } netr_NegotiateFlags
;
906 NTSTATUS netr_ServerAuthenticate2
(
907 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
908 [in] [string,charset
(UTF16
)] uint16 account_name
[],
909 [in] netr_SchannelType secure_channel_type
,
910 [in] [string,charset
(UTF16
)] uint16 computer_name
[],
911 [in,ref] netr_Credential
*credentials
,
912 [out,ref] netr_Credential
*return_credentials
,
913 [in,out,ref] netr_NegotiateFlags
*negotiate_flags
920 NTSTATUS netr_DatabaseSync2
(
921 [in] [string,charset
(UTF16
)] uint16 logon_server
[],
922 [in] [string,charset
(UTF16
)] uint16 computername
[],
923 [in] netr_Authenticator
*credential
,
924 [in,out,ref] netr_Authenticator
*return_authenticator
,
925 [in] netr_SamDatabaseID database_id
,
926 [in] uint16 restart_state
,
927 [in,out,ref] uint32
*sync_context
,
928 [out,ref] netr_DELTA_ENUM_ARRAY
**delta_enum_array
,
929 [in] uint32 preferredmaximumlength
936 /* i'm not at all sure how this call works */
938 typedef [bitmap16bit
] bitmap
{
939 NETR_CHANGELOG_IMMEDIATE_REPL_REQUIRED
= 0x0001,
940 NETR_CHANGELOG_CHANGED_PASSWORD
= 0x0002,
941 NETR_CHANGELOG_SID_INCLUDED
= 0x0004,
942 NETR_CHANGELOG_NAME_INCLUDED
= 0x0008,
943 NETR_CHANGELOG_FIRST_PROMOTION_OBJ
= 0x0010
944 } netr_ChangeLogFlags
;
946 typedef [nodiscriminant
] union {
947 [case(NETR_CHANGELOG_SID_INCLUDED
)] dom_sid object_sid
;
948 [case(NETR_CHANGELOG_NAME_INCLUDED
)] nstring object_name
;
950 } netr_ChangeLogObject
;
952 typedef [public,gensize
] struct {
953 uint32 serial_number1
;
954 uint32 serial_number2
;
956 netr_ChangeLogFlags flags
;
959 [switch_is(flags
& (NETR_CHANGELOG_SID_INCLUDED|NETR_CHANGELOG_NAME_INCLUDED
))] netr_ChangeLogObject
object;
960 } netr_ChangeLogEntry
;
962 NTSTATUS netr_DatabaseRedo
(
963 [in] [string,charset
(UTF16
)] uint16 logon_server
[],
964 [in] [string,charset
(UTF16
)] uint16 computername
[],
965 [in] netr_Authenticator
*credential
,
966 [in,out,ref] netr_Authenticator
*return_authenticator
,
967 [in] [subcontext
(4),subcontext_size
(change_log_entry_size
)] netr_ChangeLogEntry change_log_entry
,
968 [in] [value
(ndr_size_netr_ChangeLogEntry
(&change_log_entry
, ndr
->flags
))] uint32 change_log_entry_size
,
969 [out,ref] netr_DELTA_ENUM_ARRAY
**delta_enum_array
976 WERROR netr_LogonControl2Ex
(
977 [in,unique] [string,charset
(UTF16
)] uint16
*logon_server
,
978 [in] uint32 function_code
,
980 [in][switch_is(function_code
)] netr_CONTROL_DATA_INFORMATION data
,
981 [out,ref][switch_is(level
)] netr_CONTROL_QUERY_INFORMATION
*query
988 [size_is(length
)] uint8
*data
;
991 WERROR netr_NetrEnumerateTrustedDomains
(
992 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
993 [out,ref] netr_Blob
*trusted_domains_blob
999 /* one unkown bit still: DS_IP_VERSION_AGNOSTIC - gd*/
1001 const int DSGETDC_VALID_FLAGS
= (DS_FORCE_REDISCOVERY |
1002 DS_DIRECTORY_SERVICE_REQUIRED |
1003 DS_DIRECTORY_SERVICE_PREFERRED |
1004 DS_GC_SERVER_REQUIRED |
1006 DS_BACKGROUND_ONLY |
1009 DS_TIMESERV_REQUIRED |
1010 DS_WRITABLE_REQUIRED |
1011 DS_GOOD_TIMESERV_PREFERRED |
1013 DS_ONLY_LDAP_NEEDED |
1016 DS_RETURN_FLAT_NAME |
1017 DS_RETURN_DNS_NAME
);
1019 typedef [bitmap32bit
] bitmap
{
1020 DS_FORCE_REDISCOVERY
= 0x00000001,
1021 DS_DIRECTORY_SERVICE_REQUIRED
= 0x00000010,
1022 DS_DIRECTORY_SERVICE_PREFERRED
= 0x00000020,
1023 DS_GC_SERVER_REQUIRED
= 0x00000040,
1024 DS_PDC_REQUIRED
= 0x00000080,
1025 DS_BACKGROUND_ONLY
= 0x00000100,
1026 DS_IP_REQUIRED
= 0x00000200,
1027 DS_KDC_REQUIRED
= 0x00000400,
1028 DS_TIMESERV_REQUIRED
= 0x00000800,
1029 DS_WRITABLE_REQUIRED
= 0x00001000,
1030 DS_GOOD_TIMESERV_PREFERRED
= 0x00002000,
1031 DS_AVOID_SELF
= 0x00004000,
1032 DS_ONLY_LDAP_NEEDED
= 0x00008000,
1033 DS_IS_FLAT_NAME
= 0x00010000,
1034 DS_IS_DNS_NAME
= 0x00020000,
1035 DS_TRY_NEXTCLOSEST_SITE
= 0x00040000,
1036 DS_DIRECTORY_SERVICE_6_REQUIRED
= 0x00080000,
1037 DS_RETURN_DNS_NAME
= 0x40000000,
1038 DS_RETURN_FLAT_NAME
= 0x80000000
1039 } netr_DsRGetDCName_flags
;
1041 typedef [v1_enum] enum {
1042 DS_ADDRESS_TYPE_INET
= 1,
1043 DS_ADDRESS_TYPE_NETBIOS
= 2
1044 } netr_DsRGetDCNameInfo_AddressType
;
1046 typedef [bitmap32bit
] bitmap
{
1047 DS_SERVER_PDC
= NBT_SERVER_PDC
,
1048 DS_SERVER_GC
= NBT_SERVER_GC
,
1049 DS_SERVER_LDAP
= NBT_SERVER_LDAP
,
1050 DS_SERVER_DS
= NBT_SERVER_DS
,
1051 DS_SERVER_KDC
= NBT_SERVER_KDC
,
1052 DS_SERVER_TIMESERV
= NBT_SERVER_TIMESERV
,
1053 DS_SERVER_CLOSEST
= NBT_SERVER_CLOSEST
,
1054 DS_SERVER_WRITABLE
= NBT_SERVER_WRITABLE
,
1055 DS_SERVER_GOOD_TIMESERV
= NBT_SERVER_GOOD_TIMESERV
,
1056 DS_SERVER_NDNC
= NBT_SERVER_NDNC
,
1057 DS_SERVER_SELECT_SECRET_DOMAIN_6
= NBT_SERVER_SELECT_SECRET_DOMAIN_6
,
1058 DS_SERVER_FULL_SECRET_DOMAIN_6
= NBT_SERVER_FULL_SECRET_DOMAIN_6
,
1059 DS_DNS_CONTROLLER
= 0x20000000,
1060 DS_DNS_DOMAIN
= 0x40000000,
1061 DS_DNS_FOREST
= 0x80000000
1064 typedef [public] struct {
1065 [string,charset
(UTF16
)] uint16
*dc_unc
;
1066 [string,charset
(UTF16
)] uint16
*dc_address
;
1067 netr_DsRGetDCNameInfo_AddressType dc_address_type
;
1069 [string,charset
(UTF16
)] uint16
*domain_name
;
1070 [string,charset
(UTF16
)] uint16
*forest_name
;
1071 netr_DsR_DcFlags dc_flags
;
1072 [string,charset
(UTF16
)] uint16
*dc_site_name
;
1073 [string,charset
(UTF16
)] uint16
*client_site_name
;
1074 } netr_DsRGetDCNameInfo
;
1076 WERROR netr_DsRGetDCName
(
1077 [in,unique] [string,charset
(UTF16
)] uint16
*server_unc
,
1078 [in,unique] [string,charset
(UTF16
)] uint16
*domain_name
,
1079 [in,unique] GUID
*domain_guid
,
1080 [in,unique] GUID
*site_guid
,
1081 [in] netr_DsRGetDCName_flags flags
,
1082 [out,ref] netr_DsRGetDCNameInfo
**info
1087 WERROR netr_NETRLOGONDUMMYROUTINE1
();
1091 WERROR netr_NETRLOGONSETSERVICEBITS
();
1095 WERROR netr_LogonGetTrustRid
(
1096 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1097 [in,unique] [string,charset
(UTF16
)] uint16
*domain_name
,
1098 [out,ref] uint32
*rid
1103 WERROR netr_NETRLOGONCOMPUTESERVERDIGEST
();
1107 WERROR netr_NETRLOGONCOMPUTECLIENTDIGEST
();
1111 NTSTATUS netr_ServerAuthenticate3
(
1112 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1113 [in] [string,charset
(UTF16
)] uint16 account_name
[],
1114 [in] netr_SchannelType secure_channel_type
,
1115 [in] [string,charset
(UTF16
)] uint16 computer_name
[],
1116 [in,out,ref] netr_Credential
*credentials
,
1117 [in,out,ref] netr_NegotiateFlags
*negotiate_flags
,
1118 [out,ref] uint32
*rid
1124 WERROR netr_DsRGetDCNameEx
(
1125 [in,unique] [string,charset
(UTF16
)] uint16
*server_unc
,
1126 [in,unique] [string,charset
(UTF16
)] uint16
*domain_name
,
1127 [in,unique] GUID
*domain_guid
,
1128 [in,unique] [string,charset
(UTF16
)] uint16
*site_name
,
1129 [in] netr_DsRGetDCName_flags flags
,
1130 [out,ref] netr_DsRGetDCNameInfo
**info
1135 WERROR netr_DsRGetSiteName
(
1136 [in,unique] [string,charset
(UTF16
)] uint16
*computer_name
,
1137 [out,ref] [string,charset
(UTF16
)] uint16
**site
1143 typedef [flag
(NDR_PAHEX
)] struct {
1146 [size_is(size
/2),length_is(length
/2)] uint16
*data
;
1147 } netr_BinaryString
;
1151 [string,charset
(UTF16
)] uint16
*workstation_domain
;
1152 [string,charset
(UTF16
)] uint16
*workstation_site
;
1153 [string,charset
(UTF16
)] uint16
*unknown1
;
1154 [string,charset
(UTF16
)] uint16
*unknown2
;
1155 [string,charset
(UTF16
)] uint16
*unknown3
;
1156 [string,charset
(UTF16
)] uint16
*unknown4
;
1157 netr_BinaryString blob2
;
1159 lsa_String unknown5
;
1160 lsa_String unknown6
;
1162 } netr_DomainQuery1
;
1165 [case(1)] netr_DomainQuery1
*query1
;
1166 [case(2)] netr_DomainQuery1
*query1
;
1170 lsa_String domainname
;
1171 lsa_String fulldomainname
;
1175 netr_BinaryString unknown1
[4];
1177 } netr_DomainTrustInfo
;
1180 netr_DomainTrustInfo domaininfo
;
1182 [size_is(num_trusts
)] netr_DomainTrustInfo
*trusts
;
1183 uint32 unknown
[14]; /* room for expansion? */
1187 [case(1)] netr_DomainInfo1
*info1
;
1188 [case(2)] netr_DomainInfo1
*info1
;
1191 NTSTATUS netr_LogonGetDomainInfo
(
1192 [in] [string,charset
(UTF16
)] uint16 server_name
[],
1193 [in,unique] [string,charset
(UTF16
)] uint16
*computer_name
,
1194 [in,ref] netr_Authenticator
*credential
,
1195 [in,out,ref] netr_Authenticator
*return_authenticator
,
1197 [in,switch_is(level
)] netr_DomainQuery query
,
1198 [out,ref,switch_is(level
)] netr_DomainInfo
*info
1201 typedef [flag
(NDR_PAHEX
)] struct {
1204 } netr_CryptPassword
;
1208 NTSTATUS netr_ServerPasswordSet2
(
1209 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1210 [in] [string,charset
(UTF16
)] uint16 account_name
[],
1211 [in] netr_SchannelType secure_channel_type
,
1212 [in] [string,charset
(UTF16
)] uint16 computer_name
[],
1213 [in,ref] netr_Authenticator
*credential
,
1214 [out,ref] netr_Authenticator
*return_authenticator
,
1215 [in,ref] netr_CryptPassword
*new_password
1220 WERROR netr_ServerPasswordGet
(
1221 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1222 [in] [string,charset
(UTF16
)] uint16 account_name
[],
1223 [in] netr_SchannelType secure_channel_type
,
1224 [in] [string,charset
(UTF16
)] uint16 computer_name
[],
1225 [in,ref] netr_Authenticator
*credential
,
1226 [out,ref] netr_Authenticator
*return_authenticator
,
1227 [out,ref] samr_Password
*password
1232 WERROR netr_NETRLOGONSENDTOSAM
();
1238 [size_is(count
)] lsa_String
*sitename
;
1239 } netr_DsRAddressToSitenamesWCtr
;
1242 [size_is(size
)] uint8
*buffer
;
1246 WERROR netr_DsRAddressToSitenamesW
(
1247 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1248 [in] [range(0,32000)] uint32 count
,
1249 [in] [size_is(count
)] [ref] netr_DsRAddress
*addresses
,
1250 [out] [ref] netr_DsRAddressToSitenamesWCtr
**ctr
1255 WERROR netr_DsRGetDCNameEx2
(
1256 [in,unique] [string,charset
(UTF16
)] uint16
*server_unc
,
1257 [in,unique] [string,charset
(UTF16
)] uint16
*client_account
,
1258 [in] samr_AcctFlags mask
,
1259 [in,unique] [string,charset
(UTF16
)] uint16
*domain_name
,
1260 [in,unique] GUID
*domain_guid
,
1261 [in,unique] [string,charset
(UTF16
)] uint16
*site_name
,
1262 [in] netr_DsRGetDCName_flags flags
,
1263 [out,ref] netr_DsRGetDCNameInfo
**info
1268 WERROR netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN
();
1272 typedef [bitmap32bit
] bitmap
{
1273 NETR_TRUST_FLAG_IN_FOREST
= 0x00000001,
1274 NETR_TRUST_FLAG_OUTBOUND
= 0x00000002,
1275 NETR_TRUST_FLAG_TREEROOT
= 0x00000004,
1276 NETR_TRUST_FLAG_PRIMARY
= 0x00000008,
1277 NETR_TRUST_FLAG_NATIVE
= 0x00000010,
1278 NETR_TRUST_FLAG_INBOUND
= 0x00000020
1281 typedef [v1_enum] enum {
1282 NETR_TRUST_TYPE_DOWNLEVEL
= 1,
1283 NETR_TRUST_TYPE_UPLEVEL
= 2,
1284 NETR_TRUST_TYPE_MIT
= 3,
1285 NETR_TRUST_TYPE_DCE
= 4
1288 typedef [bitmap32bit
] bitmap
{
1289 NETR_TRUST_ATTRIBUTE_NON_TRANSITIVE
= 0x00000001,
1290 NETR_TRUST_ATTRIBUTE_UPLEVEL_ONLY
= 0x00000002,
1291 NETR_TRUST_ATTRIBUTE_QUARANTINED_DOMAIN
= 0x00000004,
1292 NETR_TRUST_ATTRIBUTE_FOREST_TRANSITIVE
= 0x00000008,
1293 NETR_TRUST_ATTRIBUTE_CROSS_ORGANIZATION
= 0x00000010,
1294 NETR_TRUST_ATTRIBUTE_WITHIN_FOREST
= 0x00000020,
1295 NETR_TRUST_ATTRIBUTE_TREAT_AS_EXTERNAL
= 0x00000040
1296 } netr_TrustAttributes
;
1299 [string,charset
(UTF16
)] uint16
*netbios_name
;
1300 [string,charset
(UTF16
)] uint16
*dns_name
;
1301 netr_TrustFlags trust_flags
;
1302 uint32 parent_index
;
1303 netr_TrustType trust_type
;
1304 netr_TrustAttributes trust_attributes
;
1311 [size_is(count
)] netr_DomainTrust
*array
;
1312 } netr_DomainTrustList
;
1314 WERROR netr_NetrEnumerateTrustedDomainsEx
(
1315 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1316 [out,ref] netr_DomainTrustList
*dom_trust_list
1323 [size_is(count
)] lsa_String
*sitename
;
1324 [size_is(count
)] lsa_String
*subnetname
;
1325 } netr_DsRAddressToSitenamesExWCtr
;
1327 WERROR netr_DsRAddressToSitenamesExW
(
1328 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1329 [in] [range(0,32000)] uint32 count
,
1330 [in] [size_is(count
)] [ref] netr_DsRAddress
*addresses
,
1331 [out] [ref] netr_DsRAddressToSitenamesExWCtr
**ctr
1339 [size_is(num_sites
)] [unique] lsa_String
*sites
;
1342 WERROR netr_DsrGetDcSiteCoverageW
(
1343 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1344 [out,ref] DcSitesCtr
*ctr
1349 NTSTATUS netr_LogonSamLogonEx
(
1350 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1351 [in,unique] [string,charset
(UTF16
)] uint16
*computer_name
,
1352 [in] netr_LogonLevel logon_level
,
1353 [in,ref] [switch_is(logon_level
)] netr_LogonInfo
*logon
,
1354 [in] uint16 validation_level
,
1355 [out,ref] [switch_is(validation_level
)] netr_Validation
*validation
,
1356 [out,ref] uint8
*authoritative
,
1357 [in,out,ref] uint32
*flags
1363 WERROR netr_DsrEnumerateDomainTrusts
(
1364 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1365 [in] netr_TrustFlags trust_flags
,
1366 [out,ref] netr_DomainTrustList
*trusts
1372 WERROR netr_DsrDeregisterDNSHostRecords
(
1373 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1374 [in,unique] [string,charset
(UTF16
)] uint16
*domain
,
1375 [in,unique] GUID
*domain_guid
,
1376 [in,unique] GUID
*dsa_guid
,
1377 [in,ref] [string,charset
(UTF16
)] uint16
*dns_host
1382 NTSTATUS netr_ServerTrustPasswordsGet
(
1383 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1384 [in] [string,charset
(UTF16
)] uint16 account_name
[],
1385 [in] netr_SchannelType secure_channel_type
,
1386 [in] [string,charset
(UTF16
)] uint16 computer_name
[],
1387 [in,ref] netr_Authenticator
*credential
,
1388 [out,ref] netr_Authenticator
*return_authenticator
,
1389 [out,ref] samr_Password
*password
,
1390 [out,ref] samr_Password
*password2
1396 const int DS_GFTI_UPDATE_TDO
= 0x1;
1398 WERROR netr_DsRGetForestTrustInformation
(
1399 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1400 [in,unique] [string,charset
(UTF16
)] uint16
*trusted_domain_name
,
1402 [out,ref] lsa_ForestTrustInformation
**forest_trust_info
1407 WERROR netr_GetForestTrustInformation
(
1408 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1409 [in,ref] [string,charset
(UTF16
)] uint16
*trusted_domain_name
,
1410 [in,ref] netr_Authenticator
*credential
,
1411 [out,ref] netr_Authenticator
*return_authenticator
,
1413 [out,ref] lsa_ForestTrustInformation
**forest_trust_info
1419 /* this is the ADS varient. I don't yet know what the "flags" are for */
1420 NTSTATUS netr_LogonSamLogonWithFlags
(
1421 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1422 [in,unique] [string,charset
(UTF16
)] uint16
*computer_name
,
1423 [in,unique] netr_Authenticator
*credential
,
1424 [in,out,unique] netr_Authenticator
*return_authenticator
,
1425 [in] netr_LogonLevel logon_level
,
1426 [in] [switch_is(logon_level
)] netr_LogonInfo logon
,
1427 [in] uint16 validation_level
,
1428 [out,ref] [switch_is(validation_level
)] netr_Validation
*validation
,
1429 [out,ref] uint8
*authoritative
,
1430 [in,out,ref] uint32
*flags
1435 WERROR netr_NETRSERVERGETTRUSTINFO
();