the patch is attached now:-)

Hi Andrew,

here's a patch witch changes the SAM_USER_INFO_21 struct
It handles the pass_must_change_at_next_logon from usrmgr


metze
-----------------------------------------------------------------------------
Stefan "metze" Metzmacher <[EMAIL PROTECTED]>
diff -Npur --exclude=CVS HEAD/source/include/rpc_samr.h 
HEAD-pdb/source/include/rpc_samr.h
--- HEAD/source/include/rpc_samr.h      Fri Jul  5 07:14:25 2002
+++ HEAD-pdb/source/include/rpc_samr.h  Tue Jul  9 14:08:58 2002
@@ -488,7 +488,9 @@ typedef struct sam_user_info_21
 
        uint32 unknown_5;     /* 0x0002 0000 */
 
-       uint8 padding1[8];
+       uint8 padding1[6];
+               
+       uint8 passmustchange; /* 0x10 -must change 0x00 */
 
        UNISTR2 uni_user_name;    /* username unicode string */
        UNISTR2 uni_full_name;    /* user's full name unicode string */
diff -Npur --exclude=CVS HEAD/source/rpc_parse/parse_samr.c 
HEAD-pdb/source/rpc_parse/parse_samr.c
--- HEAD/source/rpc_parse/parse_samr.c  Fri Jul  5 07:14:26 2002
+++ HEAD-pdb/source/rpc_parse/parse_samr.c      Tue Jul  9 14:08:22 2002
@@ -6136,6 +6136,11 @@ static BOOL sam_io_user_info21(char *des
        if(!prs_uint8s(False, "padding1      ", ps, depth, usr->padding1, 
sizeof(usr->padding1)))
                return False;
 
+       if(!prs_uint8("passmustchange ", ps, depth, &usr->passmustchange))
+               return False;
+
+       if(!prs_align(ps))
+               return False;
        /* here begins pointed-to data */
 
        if(!smb_io_unistr2("uni_user_name   ", 
&usr->uni_user_name,usr->hdr_user_name.buffer, ps, depth))       /* username unicode 
string */

Reply via email to