2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Andrew Tridgell 1992-1997
5 Copyright (C) Luke Kenneth Casson Leighton 1996-1997
6 Copyright (C) Paul Ashton 1997
7 Copyright (C) Jean François Micouleau 2002
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef _RPC_NETLOGON_H /* _RPC_NETLOGON_H */
25 #define _RPC_NETLOGON_H
29 #define NET_SAMLOGON 0x02
30 #define NET_SAMLOGOFF 0x03
31 #define NET_REQCHAL 0x04
33 #define NET_SRVPWSET 0x06
34 #define NET_SAM_DELTAS 0x07
35 #define NET_LOGON_CTRL 0x0c
36 #define NET_GETDCNAME 0x0d
37 #define NET_AUTH2 0x0f
38 #define NET_LOGON_CTRL2 0x0e
39 #define NET_SAM_SYNC 0x10
40 #define NET_TRUST_DOM_LIST 0x13
41 #define NET_AUTH3 0x1a
43 /* Secure Channel types. used in NetrServerAuthenticate negotiation */
44 #define SEC_CHAN_WKSTA 2
45 #define SEC_CHAN_DOMAIN 4
46 #define SEC_CHAN_BDC 6
48 /* Returned delta types */
49 #define SAM_DELTA_DOMAIN_INFO 0x01
50 #define SAM_DELTA_GROUP_INFO 0x02
51 #define SAM_DELTA_RENAME_GROUP 0x04
52 #define SAM_DELTA_ACCOUNT_INFO 0x05
53 #define SAM_DELTA_RENAME_USER 0x07
54 #define SAM_DELTA_GROUP_MEM 0x08
55 #define SAM_DELTA_ALIAS_INFO 0x09
56 #define SAM_DELTA_RENAME_ALIAS 0x0b
57 #define SAM_DELTA_ALIAS_MEM 0x0c
58 #define SAM_DELTA_POLICY_INFO 0x0d
59 #define SAM_DELTA_TRUST_DOMS 0x0e
60 #define SAM_DELTA_PRIVS_INFO 0x10 /* DT_DELTA_ACCOUNTS */
61 #define SAM_DELTA_SECRET_INFO 0x12
62 #define SAM_DELTA_DELETE_GROUP 0x14
63 #define SAM_DELTA_DELETE_USER 0x15
64 #define SAM_DELTA_MODIFIED_COUNT 0x16
66 /* SAM database types */
67 #define SAM_DATABASE_DOMAIN 0x00 /* Domain users and groups */
68 #define SAM_DATABASE_BUILTIN 0x01 /* BUILTIN users and groups */
69 #define SAM_DATABASE_PRIVS 0x02 /* Privileges */
71 #define NETLOGON_CONTROL_REDISCOVER 0x5
72 #define NETLOGON_CONTROL_TC_QUERY 0x6
73 #define NETLOGON_CONTROL_TRANSPORT_NOTIFY 0x7
74 #define NETLOGON_CONTROL_SET_DBFLAG 0xfffe
77 /* I think this is correct - it's what gets parsed on the wire. JRA. */
79 typedef struct net_user_info_2
83 NTTIME logon_time
; /* logon time */
84 NTTIME logoff_time
; /* logoff time */
85 NTTIME kickoff_time
; /* kickoff time */
86 NTTIME pass_last_set_time
; /* password last set time */
87 NTTIME pass_can_change_time
; /* password can change time */
88 NTTIME pass_must_change_time
; /* password must change time */
90 UNIHDR hdr_user_name
; /* username unicode string header */
91 UNIHDR hdr_full_name
; /* user's full name unicode string header */
92 UNIHDR hdr_logon_script
; /* logon script unicode string header */
93 UNIHDR hdr_profile_path
; /* profile path unicode string header */
94 UNIHDR hdr_home_dir
; /* home directory unicode string header */
95 UNIHDR hdr_dir_drive
; /* home directory drive unicode string header */
97 uint16 logon_count
; /* logon count */
98 uint16 bad_pw_count
; /* bad password count */
100 uint32 user_id
; /* User ID */
101 uint32 group_id
; /* Group ID */
102 uint32 num_groups
; /* num groups */
103 uint32 buffer_groups
; /* undocumented buffer pointer to groups. */
104 uint32 user_flgs
; /* user flags */
106 uint8 user_sess_key
[16]; /* unused user session key */
108 UNIHDR hdr_logon_srv
; /* logon server unicode string header */
109 UNIHDR hdr_logon_dom
; /* logon domain unicode string header */
111 uint32 buffer_dom_id
; /* undocumented logon domain id pointer */
112 uint8 padding
[40]; /* unused padding bytes. expansion room */
114 UNISTR2 uni_user_name
; /* username unicode string */
115 UNISTR2 uni_full_name
; /* user's full name unicode string */
116 UNISTR2 uni_logon_script
; /* logon script unicode string */
117 UNISTR2 uni_profile_path
; /* profile path unicode string */
118 UNISTR2 uni_home_dir
; /* home directory unicode string */
119 UNISTR2 uni_dir_drive
; /* home directory drive unicode string */
121 uint32 num_groups2
; /* num groups */
122 DOM_GID
*gids
; /* group info */
124 UNISTR2 uni_logon_srv
; /* logon server unicode string */
125 UNISTR2 uni_logon_dom
; /* logon domain unicode string */
127 DOM_SID2 dom_sid
; /* domain SID */
129 uint32 num_other_groups
; /* other groups */
130 DOM_GID
*other_gids
; /* group info */
131 DOM_SID2
*other_sids
; /* undocumented - domain SIDs */
136 /* NET_USER_INFO_3 */
137 typedef struct net_user_info_3
139 uint32 ptr_user_info
;
141 NTTIME logon_time
; /* logon time */
142 NTTIME logoff_time
; /* logoff time */
143 NTTIME kickoff_time
; /* kickoff time */
144 NTTIME pass_last_set_time
; /* password last set time */
145 NTTIME pass_can_change_time
; /* password can change time */
146 NTTIME pass_must_change_time
; /* password must change time */
148 UNIHDR hdr_user_name
; /* username unicode string header */
149 UNIHDR hdr_full_name
; /* user's full name unicode string header */
150 UNIHDR hdr_logon_script
; /* logon script unicode string header */
151 UNIHDR hdr_profile_path
; /* profile path unicode string header */
152 UNIHDR hdr_home_dir
; /* home directory unicode string header */
153 UNIHDR hdr_dir_drive
; /* home directory drive unicode string header */
155 uint16 logon_count
; /* logon count */
156 uint16 bad_pw_count
; /* bad password count */
158 uint32 user_rid
; /* User RID */
159 uint32 group_rid
; /* Group RID */
161 uint32 num_groups
; /* num groups */
162 uint32 buffer_groups
; /* undocumented buffer pointer to groups. */
163 uint32 user_flgs
; /* user flags */
165 uint8 user_sess_key
[16]; /* user session key */
167 UNIHDR hdr_logon_srv
; /* logon server unicode string header */
168 UNIHDR hdr_logon_dom
; /* logon domain unicode string header */
170 uint32 buffer_dom_id
; /* undocumented logon domain id pointer */
171 uint8 padding
[40]; /* unused padding bytes. expansion room */
173 uint32 num_other_sids
; /* number of foreign/trusted domain sids */
174 uint32 buffer_other_sids
;
176 UNISTR2 uni_user_name
; /* username unicode string */
177 UNISTR2 uni_full_name
; /* user's full name unicode string */
178 UNISTR2 uni_logon_script
; /* logon script unicode string */
179 UNISTR2 uni_profile_path
; /* profile path unicode string */
180 UNISTR2 uni_home_dir
; /* home directory unicode string */
181 UNISTR2 uni_dir_drive
; /* home directory drive unicode string */
183 uint32 num_groups2
; /* num groups */
184 DOM_GID
*gids
; /* group info */
186 UNISTR2 uni_logon_srv
; /* logon server unicode string */
187 UNISTR2 uni_logon_dom
; /* logon domain unicode string */
189 DOM_SID2 dom_sid
; /* domain SID */
191 uint32 num_other_groups
; /* other groups */
192 DOM_GID
*other_gids
; /* group info */
193 DOM_SID2
*other_sids
; /* foreign/trusted domain SIDs */
198 /* NETLOGON_INFO_1 - pdc status info, i presume */
199 typedef struct netlogon_1_info
201 uint32 flags
; /* 0x0 - undocumented */
202 uint32 pdc_status
; /* 0x0 - undocumented */
206 /* NETLOGON_INFO_2 - pdc status info, plus trusted domain info */
207 typedef struct netlogon_2_info
209 uint32 flags
; /* 0x0 - undocumented */
210 uint32 pdc_status
; /* 0x0 - undocumented */
211 uint32 ptr_trusted_dc_name
; /* pointer to trusted domain controller name */
213 UNISTR2 uni_trusted_dc_name
; /* unicode string - trusted dc name */
217 /* NETLOGON_INFO_3 - logon status info, i presume */
218 typedef struct netlogon_3_info
220 uint32 flags
; /* 0x0 - undocumented */
221 uint32 logon_attempts
; /* number of logon attempts */
222 uint32 reserved_1
; /* 0x0 - undocumented */
223 uint32 reserved_2
; /* 0x0 - undocumented */
224 uint32 reserved_3
; /* 0x0 - undocumented */
225 uint32 reserved_4
; /* 0x0 - undocumented */
226 uint32 reserved_5
; /* 0x0 - undocumented */
230 /********************************************************
233 This is generated by a nltest /bdc_query:DOMAIN
235 query_level 0x1, function_code 0x1
237 ********************************************************/
239 /* NET_Q_LOGON_CTRL - LSA Netr Logon Control */
241 typedef struct net_q_logon_ctrl_info
244 UNISTR2 uni_server_name
;
245 uint32 function_code
;
249 /* NET_R_LOGON_CTRL - LSA Netr Logon Control */
251 typedef struct net_r_logon_ctrl_info
257 NETLOGON_INFO_1 info1
;
264 typedef struct ctrl_data_info_5
266 uint32 function_code
;
273 typedef struct ctrl_data_info_6
275 uint32 function_code
;
283 /********************************************************
286 query_level 0x1 - pdc status
287 query_level 0x3 - number of logon attempts.
289 ********************************************************/
291 /* NET_Q_LOGON_CTRL2 - LSA Netr Logon Control 2 */
292 typedef struct net_q_logon_ctrl2_info
294 uint32 ptr
; /* undocumented buffer pointer */
295 UNISTR2 uni_server_name
; /* server name, starting with two '\'s */
297 uint32 function_code
;
300 CTRL_DATA_INFO_5 info5
;
301 CTRL_DATA_INFO_6 info6
;
306 /*******************************************************
307 Logon Control Response
309 switch_value is same as query_level in request
310 *******************************************************/
312 /* NET_R_LOGON_CTRL2 - response to LSA Logon Control2 */
313 typedef struct net_r_logon_ctrl2_info
315 uint32 switch_value
; /* 0x1, 0x3 */
320 NETLOGON_INFO_1 info1
;
321 NETLOGON_INFO_2 info2
;
322 NETLOGON_INFO_3 info3
;
326 NTSTATUS status
; /* return code */
330 /* NET_Q_GETDCNAME - Ask a DC for a trusted DC name */
332 typedef struct net_q_getdcname
334 uint32 ptr_logon_server
;
335 UNISTR2 uni_logon_server
;
336 uint32 ptr_domainname
;
337 UNISTR2 uni_domainname
;
340 /* NET_R_GETDCNAME - Ask a DC for a trusted DC name */
342 typedef struct net_r_getdcname
349 /* NET_Q_TRUST_DOM_LIST - LSA Query Trusted Domains */
350 typedef struct net_q_trust_dom_info
352 uint32 ptr
; /* undocumented buffer pointer */
353 UNISTR2 uni_server_name
; /* server name, starting with two '\'s */
355 } NET_Q_TRUST_DOM_LIST
;
357 #define MAX_TRUST_DOMS 1
359 /* NET_R_TRUST_DOM_LIST - response to LSA Trusted Domains */
360 typedef struct net_r_trust_dom_info
362 UNISTR2 uni_trust_dom_name
[MAX_TRUST_DOMS
];
364 NTSTATUS status
; /* return code */
366 } NET_R_TRUST_DOM_LIST
;
370 typedef struct neg_flags_info
372 uint32 neg_flags
; /* negotiated flags */
378 typedef struct net_q_req_chal_info
380 uint32 undoc_buffer
; /* undocumented buffer pointer */
381 UNISTR2 uni_logon_srv
; /* logon server unicode string */
382 UNISTR2 uni_logon_clnt
; /* logon client unicode string */
383 DOM_CHAL clnt_chal
; /* client challenge */
389 typedef struct net_r_req_chal_info
391 DOM_CHAL srv_chal
; /* server challenge */
392 NTSTATUS status
; /* return code */
396 typedef struct net_q_auth_info
398 DOM_LOG_INFO clnt_id
; /* client identification info */
399 DOM_CHAL clnt_chal
; /* client-calculated credentials */
403 typedef struct net_r_auth_info
405 DOM_CHAL srv_chal
; /* server-calculated credentials */
406 NTSTATUS status
; /* return code */
410 typedef struct net_q_auth2_info
412 DOM_LOG_INFO clnt_id
; /* client identification info */
413 DOM_CHAL clnt_chal
; /* client-calculated credentials */
415 NEG_FLAGS clnt_flgs
; /* usually 0x0000 01ff */
421 typedef struct net_r_auth2_info
423 DOM_CHAL srv_chal
; /* server-calculated credentials */
424 NEG_FLAGS srv_flgs
; /* usually 0x0000 01ff */
425 NTSTATUS status
; /* return code */
429 typedef struct net_q_auth3_info
431 DOM_LOG_INFO clnt_id
; /* client identification info */
432 DOM_CHAL clnt_chal
; /* client-calculated credentials */
433 NEG_FLAGS clnt_flgs
; /* usually 0x6007 ffff */
437 typedef struct net_r_auth3_info
439 DOM_CHAL srv_chal
; /* server-calculated credentials */
440 NEG_FLAGS srv_flgs
; /* usually 0x6007 ffff */
441 uint32 unknown
; /* 0x0000045b */
442 NTSTATUS status
; /* return code */
446 /* NET_Q_SRV_PWSET */
447 typedef struct net_q_srv_pwset_info
449 DOM_CLNT_INFO clnt_id
; /* client identification/authentication info */
450 uint8 pwd
[16]; /* new password - undocumented. */
454 /* NET_R_SRV_PWSET */
455 typedef struct net_r_srv_pwset_info
457 DOM_CRED srv_cred
; /* server-calculated credentials */
459 NTSTATUS status
; /* return code */
464 typedef struct net_network_info_2
466 uint32 ptr_id_info2
; /* pointer to id_info_2 */
467 UNIHDR hdr_domain_name
; /* domain name unicode header */
468 uint32 param_ctrl
; /* param control (0x2) */
469 DOM_LOGON_ID logon_id
; /* logon ID */
470 UNIHDR hdr_user_name
; /* user name unicode header */
471 UNIHDR hdr_wksta_name
; /* workstation name unicode header */
472 uint8 lm_chal
[8]; /* lan manager 8 byte challenge */
473 STRHDR hdr_nt_chal_resp
; /* nt challenge response */
474 STRHDR hdr_lm_chal_resp
; /* lm challenge response */
476 UNISTR2 uni_domain_name
; /* domain name unicode string */
477 UNISTR2 uni_user_name
; /* user name unicode string */
478 UNISTR2 uni_wksta_name
; /* workgroup name unicode string */
479 STRING2 nt_chal_resp
; /* nt challenge response */
480 STRING2 lm_chal_resp
; /* lm challenge response */
485 typedef struct id_info_1
487 uint32 ptr_id_info1
; /* pointer to id_info_1 */
488 UNIHDR hdr_domain_name
; /* domain name unicode header */
489 uint32 param_ctrl
; /* param control */
490 DOM_LOGON_ID logon_id
; /* logon ID */
491 UNIHDR hdr_user_name
; /* user name unicode header */
492 UNIHDR hdr_wksta_name
; /* workstation name unicode header */
493 OWF_INFO lm_owf
; /* LM OWF Password */
494 OWF_INFO nt_owf
; /* NT OWF Password */
495 UNISTR2 uni_domain_name
; /* domain name unicode string */
496 UNISTR2 uni_user_name
; /* user name unicode string */
497 UNISTR2 uni_wksta_name
; /* workgroup name unicode string */
501 #define INTERACTIVE_LOGON_TYPE 1
502 #define NET_LOGON_TYPE 2
504 /* NET_ID_INFO_CTR */
505 typedef struct net_id_info_ctr_info
511 NET_ID_INFO_1 id1
; /* auth-level 1 - interactive user login */
512 NET_ID_INFO_2 id2
; /* auth-level 2 - workstation referred login */
518 /* SAM_INFO - sam logon/off id structure */
519 typedef struct sam_info
521 DOM_CLNT_INFO2 client
;
522 uint32 ptr_rtn_cred
; /* pointer to return credentials */
523 DOM_CRED rtn_cred
; /* return credentials */
525 NET_ID_INFO_CTR
*ctr
;
529 /* NET_Q_SAM_LOGON */
530 typedef struct net_q_sam_logon_info
533 uint16 validation_level
;
537 /* NET_R_SAM_LOGON */
538 typedef struct net_r_sam_logon_info
540 uint32 buffer_creds
; /* undocumented buffer pointer */
541 DOM_CRED srv_creds
; /* server credentials. server time stamp appears to be ignored. */
543 uint16 switch_value
; /* 3 - indicates type of USER INFO */
544 NET_USER_INFO_3
*user
;
546 uint32 auth_resp
; /* 1 - Authoritative response; 0 - Non-Auth? */
548 NTSTATUS status
; /* return code */
553 /* NET_Q_SAM_LOGOFF */
554 typedef struct net_q_sam_logoff_info
560 /* NET_R_SAM_LOGOFF */
561 typedef struct net_r_sam_logoff_info
563 uint32 buffer_creds
; /* undocumented buffer pointer */
564 DOM_CRED srv_creds
; /* server credentials. server time stamp appears to be ignored. */
566 NTSTATUS status
; /* return code */
571 typedef struct net_q_sam_sync_info
573 UNISTR2 uni_srv_name
; /* \\PDC */
574 UNISTR2 uni_cli_name
; /* BDC */
579 uint32 restart_state
;
582 uint32 max_size
; /* preferred maximum length */
587 typedef struct sam_delta_hdr_info
589 uint16 type
; /* type of structure attached */
598 /* SAM_DOMAIN_INFO (0x1) */
599 typedef struct sam_domain_info_info
604 UINT64_S force_logoff
;
606 uint16 pwd_history_len
;
607 UINT64_S max_pwd_age
;
608 UINT64_S min_pwd_age
;
609 UINT64_S dom_mod_count
;
610 NTTIME creation_time
;
612 BUFHDR2 hdr_sec_desc
; /* security descriptor */
616 UNISTR2 uni_dom_name
;
617 UNISTR2 buf_oem_info
; /* never seen */
619 BUFFER4 buf_sec_desc
;
624 /* SAM_GROUP_INFO (0x2) */
625 typedef struct sam_group_info_info
630 BUFHDR2 hdr_sec_desc
; /* security descriptor */
633 UNISTR2 uni_grp_name
;
634 UNISTR2 uni_grp_desc
;
635 BUFFER4 buf_sec_desc
;
640 typedef struct sam_passwd_info
642 /* this structure probably contains password history */
643 /* this is probably a count of lm/nt pairs */
644 uint32 unk_0
; /* 0x0000 0002 */
647 uint8 buf_lm_pwd
[16];
650 uint8 buf_nt_pwd
[16];
657 /* SAM_ACCOUNT_INFO (0x5) */
658 typedef struct sam_account_info_info
660 UNIHDR hdr_acct_name
;
661 UNIHDR hdr_full_name
;
667 UNIHDR hdr_dir_drive
;
668 UNIHDR hdr_logon_script
;
669 UNIHDR hdr_acct_desc
;
670 UNIHDR hdr_workstations
;
675 uint32 logon_divs
; /* 0xA8 */
676 uint32 ptr_logon_hrs
;
678 uint16 bad_pwd_count
;
680 NTTIME pwd_last_set_time
;
681 NTTIME acct_expiry_time
;
686 uint8 nt_pwd_present
;
687 uint8 lm_pwd_present
;
691 UNIHDR hdr_parameters
;
695 BUFHDR2 hdr_sec_desc
; /* security descriptor */
698 UNIHDR hdr_reserved
[3]; /* space for more strings */
699 uint32 dw_reserved
[4]; /* space for more data - first two seem to
702 UNISTR2 uni_acct_name
;
703 UNISTR2 uni_full_name
;
704 UNISTR2 uni_home_dir
;
705 UNISTR2 uni_dir_drive
;
706 UNISTR2 uni_logon_script
;
707 UNISTR2 uni_acct_desc
;
708 UNISTR2 uni_workstations
;
710 uint32 unknown1
; /* 0x4EC */
711 uint32 unknown2
; /* 0 */
713 BUFFER4 buf_logon_hrs
;
715 UNISTR2 uni_parameters
;
717 BUFFER4 buf_sec_desc
;
722 /* SAM_GROUP_MEM_INFO (0x8) */
723 typedef struct sam_group_mem_info_info
736 } SAM_GROUP_MEM_INFO
;
738 /* SAM_ALIAS_INFO (0x9) */
739 typedef struct sam_alias_info_info
743 BUFHDR2 hdr_sec_desc
; /* security descriptor */
747 UNISTR2 uni_als_name
;
748 BUFFER4 buf_sec_desc
;
749 UNISTR2 uni_als_desc
;
753 /* SAM_ALIAS_MEM_INFO (0xC) */
754 typedef struct sam_alias_mem_info_info
764 } SAM_ALIAS_MEM_INFO
;
767 /* SAM_DELTA_POLICY (0x0D) */
770 uint32 max_log_size
; /* 0x5000 */
771 UINT64_S audit_retention_period
; /* 0 */
772 uint32 auditing_mode
; /* 0 */
778 uint32 paged_pool_limit
; /* 0x02000000 */
779 uint32 non_paged_pool_limit
; /* 0x00100000 */
780 uint32 min_workset_size
; /* 0x00010000 */
781 uint32 max_workset_size
; /* 0x0f000000 */
782 uint32 page_file_limit
; /* 0 */
783 UINT64_S time_limit
; /* 0 */
784 NTTIME modify_time
; /* 0x3c*/
785 NTTIME create_time
; /* a7080110 */
786 BUFHDR2 hdr_sec_desc
;
788 uint32 num_event_audit_options
;
789 uint32 event_audit_option
;
794 BUFFER4 buf_sec_desc
;
797 /* SAM_DELTA_TRUST_DOMS */
815 } SAM_DELTA_TRUSTDOMS
;
817 /* SAM_DELTA_PRIVS (0x10) */
825 uint32 priv_attr_ptr
;
826 uint32 priv_name_ptr
;
828 uint32 paged_pool_limit
; /* 0x02000000 */
829 uint32 non_paged_pool_limit
; /* 0x00100000 */
830 uint32 min_workset_size
; /* 0x00010000 */
831 uint32 max_workset_size
; /* 0x0f000000 */
832 uint32 page_file_limit
; /* 0 */
833 UINT64_S time_limit
; /* 0 */
834 uint32 system_flags
; /* 1 */
835 BUFHDR2 hdr_sec_desc
;
839 uint32 attribute_count
;
842 uint32 privlist_count
;
843 UNIHDR
*hdr_privslist
;
844 UNISTR2
*uni_privslist
;
846 BUFFER4 buf_sec_desc
;
849 /* SAM_DELTA_SECRET */
868 uint32 unknow2
; /* 0x0 12 times */
871 uint32 reserved1
; /* 0 */
876 uint32 reserved2
; /* 0 */
885 /* SAM_DELTA_MOD_COUNT (0x16) */
889 uint32 dom_mod_count_ptr
;
890 UINT64_S dom_mod_count
; /* domain mod count at last sync */
891 } SAM_DELTA_MOD_COUNT
;
893 typedef union sam_delta_ctr_info
895 SAM_DOMAIN_INFO domain_info
;
896 SAM_GROUP_INFO group_info
;
897 SAM_ACCOUNT_INFO account_info
;
898 SAM_GROUP_MEM_INFO grp_mem_info
;
899 SAM_ALIAS_INFO alias_info
;
900 SAM_ALIAS_MEM_INFO als_mem_info
;
901 SAM_DELTA_POLICY policy_info
;
902 SAM_DELTA_PRIVS privs_info
;
903 SAM_DELTA_MOD_COUNT mod_count
;
904 SAM_DELTA_TRUSTDOMS trustdoms_info
;
905 SAM_DELTA_SECRET secret_info
;
909 typedef struct net_r_sam_sync_info
920 SAM_DELTA_HDR
*hdr_deltas
;
921 SAM_DELTA_CTR
*deltas
;
926 /* NET_Q_SAM_DELTAS */
927 typedef struct net_q_sam_deltas_info
929 UNISTR2 uni_srv_name
;
930 UNISTR2 uni_cli_name
;
935 UINT64_S dom_mod_count
; /* domain mod count at last sync */
937 uint32 max_size
; /* preferred maximum length */
941 /* NET_R_SAM_DELTAS */
942 typedef struct net_r_sam_deltas_info
946 UINT64_S dom_mod_count
; /* new domain mod count */
952 SAM_DELTA_HDR
*hdr_deltas
;
953 SAM_DELTA_CTR
*deltas
;
958 #endif /* _RPC_NETLOGON_H */