Current password validation when "change password at next logon" is checked

Last post 07-09-2008 10:24 AM by PU43X. 2 replies.

Sort Posts:

  • Current password validation when "change password at next logon" is checked

    06-16-2008, 3:08 PM
    • Loading...
    • ijay
    • Joined on 06-13-2008, 4:07 AM
    • Posts 5

    I am writing a C# code that was validating a user's password with directoryentry(path, username, password), but I noticed that when the "change password at next logon" is checked in AD, directoryentry(path, username, password) does not work whether you enter in the correct current password or not.  Does anyone know how to validate a user's current password with C# when the "change password at next logon" is checked.  Thanks.

     -IJ

  • Re: Current password validation when "change password at next logon" is checked

    06-17-2008, 3:14 AM
    using (new Impersonator(Username, DomainName, Password))

    {

       //write your code

    }

  • Re: Current password validation when "change password at next logon" is checked

    07-09-2008, 10:24 AM
    • Loading...
    • PU43X
    • Joined on 08-11-2003, 2:10 AM
    • Posts 45

     Just to add to mahmoud post here is the link to a reference for the code mentioned.

    http://www.codeproject.com/KB/cs/zetaimpersonator.aspx

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter