4 samr interface definition
8 Thanks to Todd Sabin for some information from his samr.idl in acltools
11 [ uuid(12345778-1234-abcd-ef00-0123456789ac),
13 pointer_default(unique)
16 /* account control (acct_flags) bits */
17 const int ACB_DISABLED = 0x0001; /* 1 = User account disabled */
18 const int ACB_HOMDIRREQ = 0x0002; /* 1 = Home directory required */
19 const int ACB_PWNOTREQ = 0x0004; /* 1 = User password not required */
20 const int ACB_TEMPDUP = 0x0008; /* 1 = Temporary duplicate account */
21 const int ACB_NORMAL = 0x0010; /* 1 = Normal user account */
22 const int ACB_MNS = 0x0020; /* 1 = MNS logon user account */
23 const int ACB_DOMTRUST = 0x0040; /* 1 = Interdomain trust account */
24 const int ACB_WSTRUST = 0x0080; /* 1 = Workstation trust account */
25 const int ACB_SVRTRUST = 0x0100; /* 1 = Server trust account */
26 const int ACB_PWNOEXP = 0x0200; /* 1 = User password does not expire */
27 const int ACB_AUTOLOCK = 0x0400; /* 1 = Account auto locked */
32 NTSTATUS samr_Connect (
33 /* notice the lack of [string] */
34 [in] uint16 *system_name,
35 [in] uint32 access_mask,
36 [out,ref] policy_handle *handle
43 [in,out,ref] policy_handle *handle
50 [value(ndr_size_security_descriptor(r->sd))] uint32 sd_size;
51 [subcontext(4)] security_descriptor *sd;
54 NTSTATUS samr_SetSecurity (
55 [in,ref] policy_handle *handle,
57 [in,ref] samr_SdBuf *sdbuf
63 NTSTATUS samr_QuerySecurity (
64 [in,ref] policy_handle *handle,
66 [out] samr_SdBuf *sdbuf
73 shutdown the SAM - once you call this the SAM will be dead
75 NTSTATUS samr_Shutdown (
76 [in,ref] policy_handle *handle
82 [value(2*strlen_m(r->name))] uint16 name_len;
83 [value(r->name_len)] uint16 name_size;
87 NTSTATUS samr_LookupDomain (
88 [in,ref] policy_handle *handle,
89 [in,ref] samr_Name *domain,
104 [size_is(count)] samr_SamEntry *entries;
107 NTSTATUS samr_EnumDomains (
108 [in,ref] policy_handle *handle,
109 [in,out,ref] uint32 *resume_handle,
110 [in] uint32 buf_size,
111 [out] samr_SamArray *sam,
112 [out] uint32 num_entries
116 /************************/
118 NTSTATUS samr_OpenDomain(
119 [in,ref] policy_handle *handle,
120 [in] uint32 access_mask,
121 [in,ref] dom_sid2 *sid,
122 [out,ref] policy_handle *domain_handle
125 /************************/
130 uint16 password_history;
131 uint32 password_properties;
132 ULONG8 max_password_age;
133 ULONG8 min_password_age;
137 ULONG8 force_logoff_time;
139 samr_Name domain; /* domain name */
140 samr_Name primary; /* PDC name if this is a BDC */
141 HYPER_T sequence_num;
151 ULONG8 force_logoff_time;
155 /* I'm not entirely sure this is a comment. win2003
156 allows it to be set, and it seems harmless (like a
157 comment) but I haven't seen it show up anywhere */
174 HYPER_T sequence_num;
175 NTTIME last_xxx_time;
179 uint32 unknown; /* w2k3 returns 1 */
183 ULONG8 force_logoff_time;
187 HYPER_T sequence_num;
188 uint32 unknown2; /* w2k3 returns 1 */
190 uint32 unknown3; /* w2k3 returns 1 */
194 HYPER_T lockout_duration;
195 HYPER_T lockout_window;
196 uint16 lockout_threshold;
200 HYPER_T lockout_duration;
201 HYPER_T lockout_window;
202 uint16 lockout_threshold;
206 HYPER_T sequence_num;
207 NTTIME last_xxx_time;
213 [case(1)] samr_DomInfo1 info1;
214 [case(2)] samr_DomInfo2 info2;
215 [case(3)] samr_DomInfo3 info3;
216 [case(4)] samr_DomInfo4 info4;
217 [case(5)] samr_DomInfo5 info5;
218 [case(6)] samr_DomInfo6 info6;
219 [case(7)] samr_DomInfo7 info7;
220 [case(8)] samr_DomInfo8 info8;
221 [case(9)] samr_DomInfo9 info9;
222 [case(11)] samr_DomInfo11 info11;
223 [case(12)] samr_DomInfo12 info12;
224 [case(13)] samr_DomInfo13 info13;
227 NTSTATUS samr_QueryDomainInfo(
228 [in,ref] policy_handle *handle,
230 [out,switch_is(level)] samr_DomainInfo *info
233 /************************/
236 only levels 1, 3, 4, 6, 7, 9, 12 are valid for this
239 NTSTATUS samr_SetDomainInfo(
240 [in,ref] policy_handle *handle,
242 [in,switch_is(level),ref] samr_DomainInfo *info
246 /************************/
248 NTSTATUS samr_CreateDomainGroup(
249 [in,ref] policy_handle *handle,
250 [in,ref] samr_Name *name,
251 [in] uint32 access_mask,
252 [out,ref] policy_handle *group_handle,
253 [out,ref] uint32 *rid
257 /************************/
259 NTSTATUS samr_EnumDomainGroups(
260 [in,ref] policy_handle *handle,
261 [in,out,ref] uint32 *resume_handle,
262 [in] uint32 max_size,
263 [out] samr_SamArray *sam,
264 [out] uint32 num_entries
267 /************************/
269 NTSTATUS samr_CreateUser(
270 [in,ref] policy_handle *handle,
271 [in,ref] samr_Name *username,
272 [in] uint32 access_mask,
273 [out,ref] policy_handle *acct_handle,
274 [out,ref] uint32 *rid
277 /************************/
281 /* w2k3 treats max_size as max_users*54 and sets the
282 resume_handle as the rid of the last user sent
284 const int SAMR_ENUM_USERS_MULTIPLIER = 54;
286 NTSTATUS samr_EnumDomainUsers(
287 [in,ref] policy_handle *handle,
288 [in,out,ref] uint32 *resume_handle,
289 [in] uint32 acct_flags,
290 [in] uint32 max_size,
291 [out] samr_SamArray *sam,
292 [out] uint32 num_entries
295 /************************/
297 NTSTATUS samr_CreateDomAlias(
298 [in,ref] policy_handle *handle,
299 [in,ref] samr_Name *aliasname,
300 [in] uint32 access_mask,
301 [out,ref] policy_handle *acct_handle,
302 [out,ref] uint32 *rid
305 /************************/
307 NTSTATUS samr_EnumDomainAliases(
308 [in,ref] policy_handle *handle,
309 [in,out,ref] uint32 *resume_handle,
310 [in] uint32 max_size,
311 [out] samr_SamArray *sam,
312 [out] uint32 num_entries
315 /************************/
319 SID_NAME_USE_NONE = 0,/* NOTUSED */
320 SID_NAME_USER = 1, /* user */
321 SID_NAME_DOM_GRP = 2, /* domain group */
322 SID_NAME_DOMAIN = 3, /* domain: don't know what this is */
323 SID_NAME_ALIAS = 4, /* local group */
324 SID_NAME_WKN_GRP = 5, /* well-known group */
325 SID_NAME_DELETED = 6, /* deleted account: needed for c2 rating */
326 SID_NAME_INVALID = 7, /* invalid account */
327 SID_NAME_UNKNOWN = 8 /* oops. */
332 [size_is(count)] uint32 *ids;
335 NTSTATUS samr_GetAliasMembership(
336 [in,ref] policy_handle *handle,
337 [in,ref] lsa_SidArray *sids,
341 /************************/
344 NTSTATUS samr_LookupNames(
345 [in,ref] policy_handle *handle,
346 [in] uint32 num_names,
347 [in,ref,size_is(1000),length_is(num_names)] samr_Name *names,
353 /************************/
358 [size_is(count)] samr_Name *names;
361 NTSTATUS samr_LookupRids(
362 [in,ref] policy_handle *handle,
363 [in] uint32 num_rids,
364 [in,ref,size_is(1000),length_is(num_rids)] uint32 *rids,
365 [out] samr_Names names,
369 /************************/
371 NTSTATUS samr_OpenGroup(
372 [in,ref] policy_handle *handle,
373 [in] uint32 access_mask,
375 [out,ref] policy_handle *acct_handle
379 /************************/
386 samr_Name description;
394 samr_Name description;
395 } samr_GroupInfoDesciption;
405 [case(GroupInfoAll)] samr_GroupInfoAll all;
406 [case(GroupInfoName)] samr_Name name;
407 [case(GroupInfoX)] samr_GroupInfoX unknown;
408 [case(GroupInfoDescription)] samr_Name description;
411 NTSTATUS samr_QueryGroupInfo(
412 [in,ref] policy_handle *handle,
414 [out,switch_is(level)] samr_GroupInfo *info
417 /************************/
419 NTSTATUS samr_SetGroupInfo(
420 [in,ref] policy_handle *handle,
422 [in,switch_is(level),ref] samr_GroupInfo *info
425 /************************/
427 NTSTATUS samr_AddGroupMember(
428 [in,ref] policy_handle *handle,
433 /************************/
435 NTSTATUS samr_DeleteDomainGroup(
436 [in,out,ref] policy_handle *handle
439 /************************/
441 NTSTATUS samr_DeleteGroupMember(
442 [in,ref] policy_handle *handle,
447 /************************/
450 this isn't really valid IDL, but it does work. I suspect
451 I need to do some more pidl work to get this really right
460 samr_intArray *unknown7;
463 NTSTATUS samr_QueryGroupMember(
464 [in,ref] policy_handle *handle,
466 [out] samr_ridArray rids
470 /************************/
474 win2003 seems to accept any data at all for the two integers
475 below, and doesn't seem to do anything with them that I can
476 see. Weird. I really expected the first integer to be a rid
477 and the second to be the attributes for that rid member.
479 NTSTATUS samr_SetMemberAttributesOfGroup(
480 [in,ref] policy_handle *handle,
481 [in] uint32 unknown1,
486 /************************/
488 NTSTATUS samr_OpenAlias (
489 [in,ref] policy_handle *handle,
490 [in] uint32 access_mask,
492 [out,ref] policy_handle *acct_handle
496 /************************/
502 samr_Name description;
506 [case(1)] samr_AliasInfoAll all;
507 [case(2)] samr_Name name;
508 [case(3)] samr_Name description;
511 NTSTATUS samr_QueryAliasInfo(
512 [in,ref] policy_handle *handle,
514 [out,switch_is(level)] samr_AliasInfo *info
517 /************************/
519 NTSTATUS samr_SetAliasInfo(
520 [in,ref] policy_handle *handle,
522 [in,switch_is(level)] samr_AliasInfo info
525 /************************/
527 NTSTATUS samr_DeleteDomAlias(
528 [in,out,ref] policy_handle *handle
531 /************************/
533 NTSTATUS samr_AddAliasMember(
534 [in,ref] policy_handle *handle,
535 [in,ref] dom_sid2 *sid
538 /************************/
540 NTSTATUS samr_DeleteAliasMember(
541 [in,ref] policy_handle *handle,
542 [in,ref] dom_sid2 *sid
545 /************************/
547 NTSTATUS samr_GetMembersInAlias(
548 [in,ref] policy_handle *handle,
549 [out,ref] lsa_SidArray *sids
552 /************************/
554 NTSTATUS samr_OpenUser(
555 [in,ref] policy_handle *handle,
556 [in] uint32 access_mask,
558 [out,ref] policy_handle *acct_handle
561 /************************/
563 NTSTATUS samr_DeleteUser(
564 [in,out,ref] policy_handle *handle
567 /************************/
573 samr_Name description;
579 samr_Name unknown; /* settable, but doesn't stick. probably obsolete */
589 samr_Name home_directory;
590 samr_Name home_drive;
591 samr_Name logon_script;
593 samr_Name workstations;
596 NTTIME last_pwd_change;
597 NTTIME allow_pwd_change;
598 NTTIME force_pwd_change;
599 samr_LogonHours logon_hours;
600 uint16 bad_pwd_count;
606 samr_LogonHours logon_hours;
614 samr_Name home_directory;
615 samr_Name home_drive;
616 samr_Name logon_script;
618 samr_Name description;
619 samr_Name workstations;
622 samr_LogonHours logon_hours;
623 uint16 bad_pwd_count;
625 NTTIME last_pwd_change;
648 samr_Name home_directory;
649 samr_Name home_drive;
653 samr_Name logon_script;
661 samr_Name description;
665 samr_Name workstations;
680 /* this defines the bits used for fields_present in info21 */
681 const int SAMR_FIELD_NAME = 0x00000002;
682 const int SAMR_FIELD_DESCRIPTION = 0x00000010;
683 const int SAMR_FIELD_COMMENT = 0x00000020;
684 const int SAMR_FIELD_LOGON_SCRIPT = 0x00000100;
685 const int SAMR_FIELD_PROFILE = 0x00000200;
686 const int SAMR_FIELD_WORKSTATION = 0x00000400;
687 const int SAMR_FIELD_LOGON_HOURS = 0x00002000;
688 const int SAMR_FIELD_CALLBACK = 0x00200000;
689 const int SAMR_FIELD_COUNTRY_CODE = 0x00400000;
690 const int SAMR_FIELD_CODE_PAGE = 0x00800000;
691 const int SAMR_FIELD_PASSWORD = 0x03000000; /* 2 bits!? */
696 NTTIME last_pwd_change;
698 NTTIME allow_pwd_change;
699 NTTIME force_pwd_change;
702 samr_Name home_directory;
703 samr_Name home_drive;
704 samr_Name logon_script;
706 samr_Name description;
707 samr_Name workstations;
714 [size_is(buf_count)] uint8 *buffer;
718 uint32 fields_present;
719 samr_LogonHours logon_hours;
720 uint16 bad_pwd_count;
730 typedef [flag(NDR_PAHEX)] struct {
732 } samr_CryptPassword;
735 samr_UserInfo21 info;
736 samr_CryptPassword password;
740 samr_CryptPassword password;
744 typedef [flag(NDR_PAHEX)] struct {
746 } samr_CryptPasswordEx;
749 samr_UserInfo21 info;
750 samr_CryptPasswordEx password;
754 samr_CryptPasswordEx password;
759 [case(1)] samr_UserInfo1 info1;
760 [case(2)] samr_UserInfo2 info2;
761 [case(3)] samr_UserInfo3 info3;
762 [case(4)] samr_UserInfo4 info4;
763 [case(5)] samr_UserInfo5 info5;
764 [case(6)] samr_UserInfo6 info6;
765 [case(7)] samr_UserInfo7 info7;
766 [case(8)] samr_UserInfo8 info8;
767 [case(9)] samr_UserInfo9 info9;
768 [case(10)] samr_UserInfo10 info10;
769 [case(11)] samr_UserInfo11 info11;
770 [case(12)] samr_UserInfo12 info12;
771 [case(13)] samr_UserInfo13 info13;
772 [case(14)] samr_UserInfo14 info14;
773 [case(16)] samr_UserInfo16 info16;
774 [case(17)] samr_UserInfo17 info17;
775 [case(20)] samr_UserInfo20 info20;
776 [case(21)] samr_UserInfo21 info21;
777 [case(23)] samr_UserInfo23 info23;
778 [case(24)] samr_UserInfo24 info24;
779 [case(25)] samr_UserInfo25 info25;
780 [case(26)] samr_UserInfo26 info26;
783 NTSTATUS samr_QueryUserInfo(
784 [in,ref] policy_handle *handle,
786 [out,switch_is(level)] samr_UserInfo *info
790 /************************/
792 NTSTATUS samr_SetUserInfo(
793 [in,ref] policy_handle *handle,
795 [in,ref,switch_is(level)] samr_UserInfo *info
798 /************************/
801 typedef [flag(NDR_PAHEX)] struct {
806 this is a password change interface that doesn't give
807 the server the plaintext password. Depricated.
809 NTSTATUS samr_ChangePasswordUser(
810 [in,ref] policy_handle *handle,
811 [in] bool8 lm_present,
812 [in] samr_Hash *old_lm_crypted,
813 [in] samr_Hash *new_lm_crypted,
814 [in] bool8 nt_present,
815 [in] samr_Hash *old_nt_crypted,
816 [in] samr_Hash *new_nt_crypted,
817 [in] bool8 cross1_present,
818 [in] samr_Hash *nt_cross,
819 [in] bool8 cross2_present,
820 [in] samr_Hash *lm_cross
823 /************************/
833 [size_is(count)] samr_RidType *rid;
836 NTSTATUS samr_GetGroupsForUser(
837 [in,ref] policy_handle *handle,
838 [out] samr_RidArray *rids
841 /************************/
848 samr_Name account_name;
850 samr_Name description;
851 } samr_DispEntryGeneral;
855 [size_is(count)] samr_DispEntryGeneral *entries;
856 } samr_DispInfoGeneral;
862 samr_Name account_name;
863 samr_Name description;
864 } samr_DispEntryFull;
868 [size_is(count)] samr_DispEntryFull *entries;
872 [value(strlen_m(r->name))] uint16 name_len;
873 [value(strlen_m(r->name))] uint16 name_size;
879 samr_AsciiName account_name;
880 } samr_DispEntryAscii;
884 [size_is(count)] samr_DispEntryAscii *entries;
885 } samr_DispInfoAscii;
888 [case(1)] samr_DispInfoGeneral info1;/* users */
889 [case(2)] samr_DispInfoFull info2; /* trust accounts? */
890 [case(3)] samr_DispInfoFull info3; /* groups */
891 [case(4)] samr_DispInfoAscii info4; /* users */
892 [case(5)] samr_DispInfoAscii info5; /* groups */
895 NTSTATUS samr_QueryDisplayInfo(
896 [in,ref] policy_handle *handle,
898 [in] uint32 start_idx,
899 [in] uint32 max_entries,
900 [in] uint32 buf_size,
901 [out] uint32 total_size,
902 [out] uint32 returned_size,
903 [out,switch_is(level)] samr_DispInfo info
907 /************************/
911 this seems to be an alphabetic search function. The returned index
912 is the index for samr_QueryDisplayInfo needed to get names occurring
913 after the specified name. The supplied name does not need to exist
914 in the database (for example you can supply just a first letter for
915 searching starting at that letter)
917 The level corresponds to the samr_QueryDisplayInfo level
919 NTSTATUS samr_GetDisplayEnumerationIndex(
920 [in,ref] policy_handle *handle,
928 /************************/
932 w2k3 returns NT_STATUS_NOT_IMPLEMENTED for this
934 NTSTATUS samr_TestPrivateFunctionsDomain(
935 [in,ref] policy_handle *handle
939 /************************/
943 w2k3 returns NT_STATUS_NOT_IMPLEMENTED for this
945 NTSTATUS samr_TestPrivateFunctionsUser(
946 [in,ref] policy_handle *handle
950 /************************/
953 /* password properties flags */
954 const uint32 DOMAIN_PASSWORD_COMPLEX = 0x00000001;
955 const uint32 DOMAIN_PASSWORD_NO_ANON_CHANGE = 0x00000002;
956 const uint32 DOMAIN_PASSWORD_NO_CLEAR_CHANGE = 0x00000004;
957 const uint32 DOMAIN_PASSWORD_STORE_CLEARTEXT = 0x00000010;
958 const uint32 DOMAIN_REFUSE_PASSWORD_CHANGE = 0x00000020;
962 uint32 password_properties;
965 NTSTATUS samr_GetUserPwInfo(
966 [in,ref] policy_handle *handle,
967 [out] samr_PwInfo info
970 /************************/
972 NTSTATUS samr_RemoveMemberFromForeignDomain(
973 [in,ref] policy_handle *handle,
974 [in,ref] dom_sid2 *sid
977 /************************/
981 how is this different from QueryDomainInfo ??
983 NTSTATUS samr_QueryDomainInfo2(
984 [in,ref] policy_handle *handle,
986 [out,switch_is(level)] samr_DomainInfo *info
989 /************************/
993 how is this different from QueryUserInfo ??
995 NTSTATUS samr_QueryUserInfo2(
996 [in,ref] policy_handle *handle,
998 [out,switch_is(level)] samr_UserInfo *info
1001 /************************/
1005 how is this different from QueryDisplayInfo??
1007 NTSTATUS samr_QueryDisplayInfo2(
1008 [in,ref] policy_handle *handle,
1010 [in] uint32 start_idx,
1011 [in] uint32 max_entries,
1012 [in] uint32 buf_size,
1013 [out] uint32 total_size,
1014 [out] uint32 returned_size,
1015 [out,switch_is(level)] samr_DispInfo info
1018 /************************/
1022 how is this different from GetDisplayEnumerationIndex ??
1024 NTSTATUS samr_GetDisplayEnumerationIndex2(
1025 [in,ref] policy_handle *handle,
1027 [in] samr_Name name,
1032 /************************/
1034 NTSTATUS samr_CreateUser2(
1035 [in,ref] policy_handle *handle,
1036 [in,ref] samr_Name *username,
1037 [in] uint32 acct_flags,
1038 [in] uint32 access_mask,
1039 [out,ref] policy_handle *acct_handle,
1040 [out,ref] uint32 *access_granted,
1041 [out,ref] uint32 *rid
1045 /************************/
1049 another duplicate. There must be a reason ....
1051 NTSTATUS samr_QueryDisplayInfo3(
1052 [in,ref] policy_handle *handle,
1054 [in] uint32 start_idx,
1055 [in] uint32 max_entries,
1056 [in] uint32 buf_size,
1057 [out] uint32 total_size,
1058 [out] uint32 returned_size,
1059 [out,switch_is(level)] samr_DispInfo info
1062 /************************/
1064 NTSTATUS samr_AddMultipleMembersToAlias(
1065 [in,ref] policy_handle *handle,
1066 [in,ref] lsa_SidArray *sids
1069 /************************/
1071 NTSTATUS samr_RemoveMultipleMembersFromAlias(
1072 [in,ref] policy_handle *handle,
1073 [in,ref] lsa_SidArray *sids
1076 /************************/
1079 NTSTATUS samr_OemChangePasswordUser2(
1080 [in] samr_AsciiName *server,
1081 [in,ref] samr_AsciiName *account,
1082 [in] samr_CryptPassword *password,
1083 [in] samr_Hash *hash
1086 /************************/
1088 NTSTATUS samr_ChangePasswordUser2(
1089 [in] samr_Name *server,
1090 [in,ref] samr_Name *account,
1091 [in] samr_CryptPassword *nt_password,
1092 [in] samr_Hash *nt_verifier,
1093 [in] bool8 lm_change,
1094 [in] samr_CryptPassword *lm_password,
1095 [in] samr_Hash *lm_verifier
1098 /************************/
1100 NTSTATUS samr_GetDomPwInfo(
1101 [in] samr_Name *name,
1102 [out] samr_PwInfo info
1105 /************************/
1107 NTSTATUS samr_Connect2(
1108 [in] unistr *system_name,
1109 [in] uint32 access_mask,
1110 [out,ref] policy_handle *handle
1113 /************************/
1116 seems to be an exact alias for samr_SetUserInfo()
1118 NTSTATUS samr_SetUserInfo2(
1119 [in,ref] policy_handle *handle,
1121 [in,ref,switch_is(level)] samr_UserInfo *info
1124 /************************/
1127 this one is mysterious. I have a few guesses, but nothing working yet
1129 NTSTATUS samr_SetBootKeyInformation(
1130 [in,ref] policy_handle *handle,
1131 [in] uint32 unknown1,
1132 [in] uint32 unknown2,
1133 [in] uint32 unknown3
1136 /************************/
1138 NTSTATUS samr_GetBootKeyInformation(
1139 [in,ref] policy_handle *handle,
1140 [out] uint32 unknown
1143 /************************/
1145 NTSTATUS samr_Connect3(
1146 [in] unistr *system_name,
1147 /* this unknown value seems to be completely ignored by w2k3 */
1148 [in] uint32 unknown,
1149 [in] uint32 access_mask,
1150 [out,ref] policy_handle *handle
1153 /************************/
1155 NTSTATUS samr_Connect4(
1156 [in] unistr *system_name,
1157 [in] uint32 unknown,
1158 [in] uint32 access_mask,
1159 [out,ref] policy_handle *handle
1162 /************************/
1169 } samr_ChangeReject;
1171 NTSTATUS samr_ChangePasswordUser3(
1172 [in] samr_Name *server,
1173 [in,ref] samr_Name *account,
1174 [in] samr_CryptPassword *nt_password,
1175 [in] samr_Hash *nt_verifier,
1176 [in] bool8 lm_change,
1177 [in] samr_CryptPassword *lm_password,
1178 [in] samr_Hash *lm_verifier,
1179 [in] samr_CryptPassword *password3,
1180 [out] samr_DomInfo1 *dominfo,
1181 [out] samr_ChangeReject *reject
1184 /************************/
1188 uint32 unknown1; /* w2k3 gives 3 */
1189 uint32 unknown2; /* w2k3 gives 0 */
1190 } samr_ConnectInfo1;
1193 [case(1)] samr_ConnectInfo1 info1;
1196 NTSTATUS samr_Connect5(
1197 [in] unistr *system_name,
1198 [in] uint32 access_mask,
1199 [in,out] uint32 level,
1200 [in,out,switch_is(level),ref] samr_ConnectInfo *info,
1201 [out,ref] policy_handle *handle
1204 /************************/
1206 NTSTATUS samr_RidToSid(
1207 [in,ref] policy_handle *handle,
1213 /************************/
1217 this should set the DSRM password for the server, which is used
1218 when booting into Directory Services Recovery Mode on a DC. Win2003
1219 gives me NT_STATUS_NOT_SUPPORTED
1222 NTSTATUS samr_SetDsrmPassword(
1223 [in] samr_Name *name,
1224 [in] uint32 unknown,
1225 [in] samr_Hash *hash
1229 /************************/
1232 I haven't been able to work out the format of this one yet.
1233 Seems to start with a switch level for a union?
1235 NTSTATUS samr_ValidatePassword();