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 /* flags use when sending a NETLOGON_CONTROL request */
73 #define NETLOGON_CONTROL_SYNC 0x2
74 #define NETLOGON_CONTROL_REDISCOVER 0x5
75 #define NETLOGON_CONTROL_TC_QUERY 0x6
76 #define NETLOGON_CONTROL_TRANSPORT_NOTIFY 0x7
77 #define NETLOGON_CONTROL_SET_DBFLAG 0xfffe
79 /* Some flag values reverse engineered from NLTEST.EXE */
80 /* used in the NETLOGON_CONTROL[2] reply */
82 #define NL_CTRL_IN_SYNC 0x0000
83 #define NL_CTRL_REPL_NEEDED 0x0001
84 #define NL_CTRL_REPL_IN_PROGRESS 0x0002
85 #define NL_CTRL_FULL_SYNC 0x0004
88 /* I think this is correct - it's what gets parsed on the wire. JRA. */
90 typedef struct net_user_info_2
94 NTTIME logon_time; /* logon time */
95 NTTIME logoff_time; /* logoff time */
96 NTTIME kickoff_time; /* kickoff time */
97 NTTIME pass_last_set_time; /* password last set time */
98 NTTIME pass_can_change_time; /* password can change time */
99 NTTIME pass_must_change_time; /* password must change time */
101 UNIHDR hdr_user_name; /* username unicode string header */
102 UNIHDR hdr_full_name; /* user's full name unicode string header */
103 UNIHDR hdr_logon_script; /* logon script unicode string header */
104 UNIHDR hdr_profile_path; /* profile path unicode string header */
105 UNIHDR hdr_home_dir; /* home directory unicode string header */
106 UNIHDR hdr_dir_drive; /* home directory drive unicode string header */
108 uint16 logon_count; /* logon count */
109 uint16 bad_pw_count; /* bad password count */
111 uint32 user_id; /* User ID */
112 uint32 group_id; /* Group ID */
113 uint32 num_groups; /* num groups */
114 uint32 buffer_groups; /* undocumented buffer pointer to groups. */
115 uint32 user_flgs; /* user flags */
117 uint8 user_sess_key[16]; /* unused user session key */
119 UNIHDR hdr_logon_srv; /* logon server unicode string header */
120 UNIHDR hdr_logon_dom; /* logon domain unicode string header */
122 uint32 buffer_dom_id; /* undocumented logon domain id pointer */
123 uint8 padding[40]; /* unused padding bytes. expansion room */
125 UNISTR2 uni_user_name; /* username unicode string */
126 UNISTR2 uni_full_name; /* user's full name unicode string */
127 UNISTR2 uni_logon_script; /* logon script unicode string */
128 UNISTR2 uni_profile_path; /* profile path unicode string */
129 UNISTR2 uni_home_dir; /* home directory unicode string */
130 UNISTR2 uni_dir_drive; /* home directory drive unicode string */
132 uint32 num_groups2; /* num groups */
133 DOM_GID *gids; /* group info */
135 UNISTR2 uni_logon_srv; /* logon server unicode string */
136 UNISTR2 uni_logon_dom; /* logon domain unicode string */
138 DOM_SID2 dom_sid; /* domain SID */
140 uint32 num_other_groups; /* other groups */
141 DOM_GID *other_gids; /* group info */
142 DOM_SID2 *other_sids; /* undocumented - domain SIDs */
147 /* NET_USER_INFO_3 */
148 typedef struct net_user_info_3
150 uint32 ptr_user_info;
152 NTTIME logon_time; /* logon time */
153 NTTIME logoff_time; /* logoff time */
154 NTTIME kickoff_time; /* kickoff time */
155 NTTIME pass_last_set_time; /* password last set time */
156 NTTIME pass_can_change_time; /* password can change time */
157 NTTIME pass_must_change_time; /* password must change time */
159 UNIHDR hdr_user_name; /* username unicode string header */
160 UNIHDR hdr_full_name; /* user's full name unicode string header */
161 UNIHDR hdr_logon_script; /* logon script unicode string header */
162 UNIHDR hdr_profile_path; /* profile path unicode string header */
163 UNIHDR hdr_home_dir; /* home directory unicode string header */
164 UNIHDR hdr_dir_drive; /* home directory drive unicode string header */
166 uint16 logon_count; /* logon count */
167 uint16 bad_pw_count; /* bad password count */
169 uint32 user_rid; /* User RID */
170 uint32 group_rid; /* Group RID */
172 uint32 num_groups; /* num groups */
173 uint32 buffer_groups; /* undocumented buffer pointer to groups. */
174 uint32 user_flgs; /* user flags */
176 uint8 user_sess_key[16]; /* user session key */
178 UNIHDR hdr_logon_srv; /* logon server unicode string header */
179 UNIHDR hdr_logon_dom; /* logon domain unicode string header */
181 uint32 buffer_dom_id; /* undocumented logon domain id pointer */
182 uint8 lm_sess_key[8]; /* lm session key */
183 uint32 acct_flags; /* account flags */
184 uint32 unknown[7]; /* unknown */
186 uint32 num_other_sids; /* number of foreign/trusted domain sids */
187 uint32 buffer_other_sids;
189 UNISTR2 uni_user_name; /* username unicode string */
190 UNISTR2 uni_full_name; /* user's full name unicode string */
191 UNISTR2 uni_logon_script; /* logon script unicode string */
192 UNISTR2 uni_profile_path; /* profile path unicode string */
193 UNISTR2 uni_home_dir; /* home directory unicode string */
194 UNISTR2 uni_dir_drive; /* home directory drive unicode string */
196 uint32 num_groups2; /* num groups */
197 DOM_GID *gids; /* group info */
199 UNISTR2 uni_logon_srv; /* logon server unicode string */
200 UNISTR2 uni_logon_dom; /* logon domain unicode string */
202 DOM_SID2 dom_sid; /* domain SID */
204 DOM_SID2 *other_sids; /* foreign/trusted domain SIDs */
205 uint32 *other_sids_attrib;
210 /* NETLOGON_INFO_1 - pdc status info, i presume */
211 typedef struct netlogon_1_info
213 uint32 flags; /* 0x0 - undocumented */
214 uint32 pdc_status; /* 0x0 - undocumented */
218 /* NETLOGON_INFO_2 - pdc status info, plus trusted domain info */
219 typedef struct netlogon_2_info
221 uint32 flags; /* 0x0 - undocumented */
222 uint32 pdc_status; /* 0x0 - undocumented */
223 uint32 ptr_trusted_dc_name; /* pointer to trusted domain controller name */
225 UNISTR2 uni_trusted_dc_name; /* unicode string - trusted dc name */
229 /* NETLOGON_INFO_3 - logon status info, i presume */
230 typedef struct netlogon_3_info
232 uint32 flags; /* 0x0 - undocumented */
233 uint32 logon_attempts; /* number of logon attempts */
234 uint32 reserved_1; /* 0x0 - undocumented */
235 uint32 reserved_2; /* 0x0 - undocumented */
236 uint32 reserved_3; /* 0x0 - undocumented */
237 uint32 reserved_4; /* 0x0 - undocumented */
238 uint32 reserved_5; /* 0x0 - undocumented */
242 /********************************************************
245 This is generated by a nltest /bdc_query:DOMAIN
247 query_level 0x1, function_code 0x1
249 ********************************************************/
251 /* NET_Q_LOGON_CTRL - LSA Netr Logon Control */
253 typedef struct net_q_logon_ctrl_info
256 UNISTR2 uni_server_name;
257 uint32 function_code;
261 /* NET_R_LOGON_CTRL - LSA Netr Logon Control */
263 typedef struct net_r_logon_ctrl_info
269 NETLOGON_INFO_1 info1;
276 typedef struct ctrl_data_info_5
278 uint32 function_code;
285 typedef struct ctrl_data_info_6
287 uint32 function_code;
295 /********************************************************
298 query_level 0x1 - pdc status
299 query_level 0x3 - number of logon attempts.
301 ********************************************************/
303 /* NET_Q_LOGON_CTRL2 - LSA Netr Logon Control 2 */
304 typedef struct net_q_logon_ctrl2_info
306 uint32 ptr; /* undocumented buffer pointer */
307 UNISTR2 uni_server_name; /* server name, starting with two '\'s */
309 uint32 function_code;
312 CTRL_DATA_INFO_5 info5;
313 CTRL_DATA_INFO_6 info6;
318 /*******************************************************
319 Logon Control Response
321 switch_value is same as query_level in request
322 *******************************************************/
324 /* NET_R_LOGON_CTRL2 - response to LSA Logon Control2 */
325 typedef struct net_r_logon_ctrl2_info
327 uint32 switch_value; /* 0x1, 0x3 */
332 NETLOGON_INFO_1 info1;
333 NETLOGON_INFO_2 info2;
334 NETLOGON_INFO_3 info3;
338 NTSTATUS status; /* return code */
342 /* NET_Q_GETDCNAME - Ask a DC for a trusted DC name */
344 typedef struct net_q_getdcname
346 uint32 ptr_logon_server;
347 UNISTR2 uni_logon_server;
348 uint32 ptr_domainname;
349 UNISTR2 uni_domainname;
352 /* NET_R_GETDCNAME - Ask a DC for a trusted DC name */
354 typedef struct net_r_getdcname
361 /* NET_Q_TRUST_DOM_LIST - LSA Query Trusted Domains */
362 typedef struct net_q_trust_dom_info
364 uint32 ptr; /* undocumented buffer pointer */
365 UNISTR2 uni_server_name; /* server name, starting with two '\'s */
367 } NET_Q_TRUST_DOM_LIST;
369 #define MAX_TRUST_DOMS 1
371 /* NET_R_TRUST_DOM_LIST - response to LSA Trusted Domains */
372 typedef struct net_r_trust_dom_info
374 UNISTR2 uni_trust_dom_name[MAX_TRUST_DOMS];
376 NTSTATUS status; /* return code */
378 } NET_R_TRUST_DOM_LIST;
382 typedef struct neg_flags_info
384 uint32 neg_flags; /* negotiated flags */
390 typedef struct net_q_req_chal_info
392 uint32 undoc_buffer; /* undocumented buffer pointer */
393 UNISTR2 uni_logon_srv; /* logon server unicode string */
394 UNISTR2 uni_logon_clnt; /* logon client unicode string */
395 DOM_CHAL clnt_chal; /* client challenge */
401 typedef struct net_r_req_chal_info
403 DOM_CHAL srv_chal; /* server challenge */
404 NTSTATUS status; /* return code */
408 typedef struct net_q_auth_info
410 DOM_LOG_INFO clnt_id; /* client identification info */
411 DOM_CHAL clnt_chal; /* client-calculated credentials */
415 typedef struct net_r_auth_info
417 DOM_CHAL srv_chal; /* server-calculated credentials */
418 NTSTATUS status; /* return code */
422 typedef struct net_q_auth2_info
424 DOM_LOG_INFO clnt_id; /* client identification info */
425 DOM_CHAL clnt_chal; /* client-calculated credentials */
427 NEG_FLAGS clnt_flgs; /* usually 0x0000 01ff */
433 typedef struct net_r_auth2_info
435 DOM_CHAL srv_chal; /* server-calculated credentials */
436 NEG_FLAGS srv_flgs; /* usually 0x0000 01ff */
437 NTSTATUS status; /* return code */
441 typedef struct net_q_auth3_info
443 DOM_LOG_INFO clnt_id; /* client identification info */
444 DOM_CHAL clnt_chal; /* client-calculated credentials */
445 NEG_FLAGS clnt_flgs; /* usually 0x6007 ffff */
449 typedef struct net_r_auth3_info
451 DOM_CHAL srv_chal; /* server-calculated credentials */
452 NEG_FLAGS srv_flgs; /* usually 0x6007 ffff */
453 uint32 unknown; /* 0x0000045b */
454 NTSTATUS status; /* return code */
458 /* NET_Q_SRV_PWSET */
459 typedef struct net_q_srv_pwset_info
461 DOM_CLNT_INFO clnt_id; /* client identification/authentication info */
462 uint8 pwd[16]; /* new password - undocumented. */
466 /* NET_R_SRV_PWSET */
467 typedef struct net_r_srv_pwset_info
469 DOM_CRED srv_cred; /* server-calculated credentials */
471 NTSTATUS status; /* return code */
476 typedef struct net_network_info_2
478 uint32 ptr_id_info2; /* pointer to id_info_2 */
479 UNIHDR hdr_domain_name; /* domain name unicode header */
480 uint32 param_ctrl; /* param control (0x2) */
481 DOM_LOGON_ID logon_id; /* logon ID */
482 UNIHDR hdr_user_name; /* user name unicode header */
483 UNIHDR hdr_wksta_name; /* workstation name unicode header */
484 uint8 lm_chal[8]; /* lan manager 8 byte challenge */
485 STRHDR hdr_nt_chal_resp; /* nt challenge response */
486 STRHDR hdr_lm_chal_resp; /* lm challenge response */
488 UNISTR2 uni_domain_name; /* domain name unicode string */
489 UNISTR2 uni_user_name; /* user name unicode string */
490 UNISTR2 uni_wksta_name; /* workgroup name unicode string */
491 STRING2 nt_chal_resp; /* nt challenge response */
492 STRING2 lm_chal_resp; /* lm challenge response */
497 typedef struct id_info_1
499 uint32 ptr_id_info1; /* pointer to id_info_1 */
500 UNIHDR hdr_domain_name; /* domain name unicode header */
501 uint32 param_ctrl; /* param control */
502 DOM_LOGON_ID logon_id; /* logon ID */
503 UNIHDR hdr_user_name; /* user name unicode header */
504 UNIHDR hdr_wksta_name; /* workstation name unicode header */
505 OWF_INFO lm_owf; /* LM OWF Password */
506 OWF_INFO nt_owf; /* NT OWF Password */
507 UNISTR2 uni_domain_name; /* domain name unicode string */
508 UNISTR2 uni_user_name; /* user name unicode string */
509 UNISTR2 uni_wksta_name; /* workgroup name unicode string */
513 #define INTERACTIVE_LOGON_TYPE 1
514 #define NET_LOGON_TYPE 2
516 /* NET_ID_INFO_CTR */
517 typedef struct net_id_info_ctr_info
523 NET_ID_INFO_1 id1; /* auth-level 1 - interactive user login */
524 NET_ID_INFO_2 id2; /* auth-level 2 - workstation referred login */
530 /* SAM_INFO - sam logon/off id structure */
531 typedef struct sam_info
533 DOM_CLNT_INFO2 client;
534 uint32 ptr_rtn_cred; /* pointer to return credentials */
535 DOM_CRED rtn_cred; /* return credentials */
537 NET_ID_INFO_CTR *ctr;
541 /* NET_Q_SAM_LOGON */
542 typedef struct net_q_sam_logon_info
545 uint16 validation_level;
549 /* NET_R_SAM_LOGON */
550 typedef struct net_r_sam_logon_info
552 uint32 buffer_creds; /* undocumented buffer pointer */
553 DOM_CRED srv_creds; /* server credentials. server time stamp appears to be ignored. */
555 uint16 switch_value; /* 3 - indicates type of USER INFO */
556 NET_USER_INFO_3 *user;
558 uint32 auth_resp; /* 1 - Authoritative response; 0 - Non-Auth? */
560 NTSTATUS status; /* return code */
565 /* NET_Q_SAM_LOGOFF */
566 typedef struct net_q_sam_logoff_info
572 /* NET_R_SAM_LOGOFF */
573 typedef struct net_r_sam_logoff_info
575 uint32 buffer_creds; /* undocumented buffer pointer */
576 DOM_CRED srv_creds; /* server credentials. server time stamp appears to be ignored. */
578 NTSTATUS status; /* return code */
583 typedef struct net_q_sam_sync_info
585 UNISTR2 uni_srv_name; /* \\PDC */
586 UNISTR2 uni_cli_name; /* BDC */
591 uint32 restart_state;
594 uint32 max_size; /* preferred maximum length */
599 typedef struct sam_delta_hdr_info
601 uint16 type; /* type of structure attached */
611 typedef struct account_lockout_string {
615 /* uint16 *bindata; */
616 UINT64_S lockout_duration;
617 UINT64_S reset_count;
618 uint32 bad_attempt_lockout;
623 /* HDR_LOCKOUT_STRING */
624 typedef struct hdr_account_lockout_string {
629 } HDR_LOCKOUT_STRING;
631 /* SAM_DOMAIN_INFO (0x1) */
632 typedef struct sam_domain_info_info
637 UINT64_S force_logoff;
639 uint16 pwd_history_len;
640 UINT64_S max_pwd_age;
641 UINT64_S min_pwd_age;
642 UINT64_S dom_mod_count;
643 NTTIME creation_time;
644 uint32 security_information;
646 BUFHDR4 hdr_sec_desc; /* security descriptor */
648 HDR_LOCKOUT_STRING hdr_account_lockout;
654 UNISTR2 uni_dom_name;
655 UNISTR2 buf_oem_info;
657 RPC_DATA_BLOB buf_sec_desc;
659 LOCKOUT_STRING account_lockout;
661 UNISTR2 buf_unknown2;
662 UNISTR2 buf_unknown3;
663 UNISTR2 buf_unknown4;
665 uint32 logon_chgpass;
673 /* SAM_GROUP_INFO (0x2) */
674 typedef struct sam_group_info_info
679 BUFHDR2 hdr_sec_desc; /* security descriptor */
682 UNISTR2 uni_grp_name;
683 UNISTR2 uni_grp_desc;
684 RPC_DATA_BLOB buf_sec_desc;
689 typedef struct sam_passwd_info
691 /* this structure probably contains password history */
692 /* this is probably a count of lm/nt pairs */
693 uint32 unk_0; /* 0x0000 0002 */
696 uint8 buf_lm_pwd[16];
699 uint8 buf_nt_pwd[16];
706 /* SAM_ACCOUNT_INFO (0x5) */
707 typedef struct sam_account_info_info
709 UNIHDR hdr_acct_name;
710 UNIHDR hdr_full_name;
716 UNIHDR hdr_dir_drive;
717 UNIHDR hdr_logon_script;
718 UNIHDR hdr_acct_desc;
719 UNIHDR hdr_workstations;
724 uint32 logon_divs; /* 0xA8 */
725 uint32 ptr_logon_hrs;
727 uint16 bad_pwd_count;
729 NTTIME pwd_last_set_time;
730 NTTIME acct_expiry_time;
735 uint8 nt_pwd_present;
736 uint8 lm_pwd_present;
740 UNIHDR hdr_parameters;
744 BUFHDR2 hdr_sec_desc; /* security descriptor */
747 UNIHDR hdr_reserved[3]; /* space for more strings */
748 uint32 dw_reserved[4]; /* space for more data - first two seem to
751 UNISTR2 uni_acct_name;
752 UNISTR2 uni_full_name;
753 UNISTR2 uni_home_dir;
754 UNISTR2 uni_dir_drive;
755 UNISTR2 uni_logon_script;
756 UNISTR2 uni_acct_desc;
757 UNISTR2 uni_workstations;
759 uint32 unknown1; /* 0x4EC */
760 uint32 unknown2; /* 0 */
762 RPC_DATA_BLOB buf_logon_hrs;
764 UNISTR2 uni_parameters;
766 RPC_DATA_BLOB buf_sec_desc;
771 /* SAM_GROUP_MEM_INFO (0x8) */
772 typedef struct sam_group_mem_info_info
785 } SAM_GROUP_MEM_INFO;
787 /* SAM_ALIAS_INFO (0x9) */
788 typedef struct sam_alias_info_info
792 BUFHDR2 hdr_sec_desc; /* security descriptor */
796 UNISTR2 uni_als_name;
797 RPC_DATA_BLOB buf_sec_desc;
798 UNISTR2 uni_als_desc;
802 /* SAM_ALIAS_MEM_INFO (0xC) */
803 typedef struct sam_alias_mem_info_info
813 } SAM_ALIAS_MEM_INFO;
816 /* SAM_DELTA_POLICY (0x0D) */
819 uint32 max_log_size; /* 0x5000 */
820 UINT64_S audit_retention_period; /* 0 */
821 uint32 auditing_mode; /* 0 */
827 uint32 paged_pool_limit; /* 0x02000000 */
828 uint32 non_paged_pool_limit; /* 0x00100000 */
829 uint32 min_workset_size; /* 0x00010000 */
830 uint32 max_workset_size; /* 0x0f000000 */
831 uint32 page_file_limit; /* 0 */
832 UINT64_S time_limit; /* 0 */
833 NTTIME modify_time; /* 0x3c*/
834 NTTIME create_time; /* a7080110 */
835 BUFHDR2 hdr_sec_desc;
837 uint32 num_event_audit_options;
838 uint32 event_audit_option;
843 RPC_DATA_BLOB buf_sec_desc;
846 /* SAM_DELTA_TRUST_DOMS */
864 } SAM_DELTA_TRUSTDOMS;
866 /* SAM_DELTA_PRIVS (0x10) */
874 uint32 priv_attr_ptr;
875 uint32 priv_name_ptr;
877 uint32 paged_pool_limit; /* 0x02000000 */
878 uint32 non_paged_pool_limit; /* 0x00100000 */
879 uint32 min_workset_size; /* 0x00010000 */
880 uint32 max_workset_size; /* 0x0f000000 */
881 uint32 page_file_limit; /* 0 */
882 UINT64_S time_limit; /* 0 */
883 uint32 system_flags; /* 1 */
884 BUFHDR2 hdr_sec_desc;
888 uint32 attribute_count;
891 uint32 privlist_count;
892 UNIHDR *hdr_privslist;
893 UNISTR2 *uni_privslist;
895 RPC_DATA_BLOB buf_sec_desc;
898 /* SAM_DELTA_SECRET */
917 uint32 unknow2; /* 0x0 12 times */
920 uint32 reserved1; /* 0 */
925 uint32 reserved2; /* 0 */
934 /* SAM_DELTA_MOD_COUNT (0x16) */
938 uint32 dom_mod_count_ptr;
939 UINT64_S dom_mod_count; /* domain mod count at last sync */
940 } SAM_DELTA_MOD_COUNT;
942 typedef union sam_delta_ctr_info
944 SAM_DOMAIN_INFO domain_info ;
945 SAM_GROUP_INFO group_info ;
946 SAM_ACCOUNT_INFO account_info;
947 SAM_GROUP_MEM_INFO grp_mem_info;
948 SAM_ALIAS_INFO alias_info ;
949 SAM_ALIAS_MEM_INFO als_mem_info;
950 SAM_DELTA_POLICY policy_info;
951 SAM_DELTA_PRIVS privs_info;
952 SAM_DELTA_MOD_COUNT mod_count;
953 SAM_DELTA_TRUSTDOMS trustdoms_info;
954 SAM_DELTA_SECRET secret_info;
958 typedef struct net_r_sam_sync_info
969 SAM_DELTA_HDR *hdr_deltas;
970 SAM_DELTA_CTR *deltas;
975 /* NET_Q_SAM_DELTAS */
976 typedef struct net_q_sam_deltas_info
978 UNISTR2 uni_srv_name;
979 UNISTR2 uni_cli_name;
984 UINT64_S dom_mod_count; /* domain mod count at last sync */
986 uint32 max_size; /* preferred maximum length */
990 /* NET_R_SAM_DELTAS */
991 typedef struct net_r_sam_deltas_info
995 UINT64_S dom_mod_count; /* new domain mod count */
1001 SAM_DELTA_HDR *hdr_deltas;
1002 SAM_DELTA_CTR *deltas;
1007 #endif /* _RPC_NETLOGON_H */