SAMR_SET_USERINFO userinfo23 on samba-3.0.3

Jianliang Lu j.lu at tiesse.com
Fri May 7 13:36:46 GMT 2004


The SAMR_SET_USERINFO is wrong coded for user_info23, the field
of kickoff_time is exchanged with password_last_set_time.

Richard,
there is the same problem also in ethereal, that the above fields are
exchanged!

FIXME:
--- samba-3.0.3/source/rpc_parse/parse_samr.c.orig  Fri May  7 12:17:53 2004
+++ samba-3.0.3/source/rpc_parse/parse_samr.c   Fri May  7 14:50:31 2004
@@ -5570,10 +5570,10 @@
        return False;
    if(!smb_io_time("logoff_time          ", &usr->logoff_time, ps, depth))
        return False;
-   if(!smb_io_time("kickoff_time         ", &usr->kickoff_time, ps, depth))
-       return False;
    if(!smb_io_time("pass_last_set_time   ", &usr->pass_last_set_time, ps, 
depth))
        return False;
+   if(!smb_io_time("kickoff_time         ", &usr->kickoff_time, ps, depth))
+       return False;
    if(!smb_io_time("pass_can_change_time ", &usr->pass_can_change_time, ps, 
depth))
        return False;
    if(!smb_io_time("pass_must_change_time", &usr->pass_must_change_time, ps, 
depth))
--------------------------

Jianliang Lu
TieSse s.p.a.     Ivrea (To) - Italy
j.lu at tiesse.com   luj at libero.it
http://www.tiesse.com


More information about the samba-technical mailing list