CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2001
    Location
    Toronto
    Posts
    118

    Set Account Password

    Hello, Gurus, I am using NetUserGetInfo to get the user password, though I am the local Administrator, the USER_INFO_3 I got contains no password.
    So is there any way to get the password if the current user have enough right?
    any idea will be highly appreciated.



  2. #2
    Join Date
    Apr 2000
    Location
    San Francisco, California, USA
    Posts
    4,467

    Re: Set Account Password

    There is no way to obtain a password. The main reason is
    that it is not stored anywhere, only one-way hash is.

    Russian Software Developer Network - http://www.rsdn.ru
    Russian Software Development Network -- http://www.rsdn.ru

  3. #3
    Join Date
    Jan 2001
    Location
    Toronto
    Posts
    118

    Re: Set Account Password

    Thanx a lot, I got it. You are a codeguru.
    But just one q, the USER_INFO_3' usri3_last_logoff is always 0 but last_logoon is correct. Why the machine refuse to tell the last logoff time, it is harmless to the security, I think.
    Thanx ahead, and Regards!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured