diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-04-21 05:01:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:19 -0500 |
commit | 5f545543f0bfb9d97d6401576906c0ba9e596cd1 (patch) | |
tree | 048b807b3904f10f949c72df0d4338769c2f06ec /source4/librpc/idl | |
parent | 6428ffb89a350d70cb62b4b1574dd671d840e62c (diff) | |
download | samba-5f545543f0bfb9d97d6401576906c0ba9e596cd1.tar.gz samba-5f545543f0bfb9d97d6401576906c0ba9e596cd1.tar.bz2 samba-5f545543f0bfb9d97d6401576906c0ba9e596cd1.zip |
r305: - added IDL and test code for samr_RidToSid()
- completed the IDL and test code for the various set user password
mechanisms in samr. Three password mechanisms are now working, the
UserInfo24 method, the OemChangePasswordUser2() method (which only
sets the LM password) and the ChangePasswordUser2() method which sets
both the LM and NT passwords.
- updated some crypto routines to support the password change tests
(This used to be commit 051efa2abf9d1fbbf783df411c02f2714027f813)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r-- | source4/librpc/idl/samr.idl | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl index 3639c21cd3..b76541bb26 100644 --- a/source4/librpc/idl/samr.idl +++ b/source4/librpc/idl/samr.idl @@ -641,6 +641,15 @@ uint8 unknown4; } samr_UserInfo21; + typedef [flag(NDR_PAHEX)] struct { + uint8 data[516]; + } samr_CryptPassword; + + typedef struct { + samr_CryptPassword password; + uint16 pw_len; + } samr_UserInfo24; + typedef union { [case(1)] samr_UserInfo1 info1; [case(2)] samr_UserInfo2 info2; @@ -660,6 +669,7 @@ [case(17)] samr_UserInfo17 info17; [case(20)] samr_UserInfo20 info20; [case(21)] samr_UserInfo21 info21; + [case(24)] samr_UserInfo24 info24; } samr_UserInfo; NTSTATUS samr_QueryUserInfo( @@ -962,10 +972,6 @@ /************************/ /* Function 0x36 */ - typedef [flag(NDR_PAHEX)] struct { - uint8 data[516]; - } samr_CryptPassword; - NTSTATUS samr_OemChangePasswordUser2( [in] samr_AsciiName *server, [in,ref] samr_AsciiName *account, @@ -1044,7 +1050,11 @@ /************************/ /* Function 0x41 */ - NTSTATUS samr_RID_TO_SID(); + NTSTATUS samr_RidToSid( + [in,ref] policy_handle *handle, + [in] uint32 rid, + [out] dom_sid2 *sid + ); /************************/ /* Function 0x42 */ |