Active Directory password expired

Last post 05-10-2008 7:10 PM by johram. 1 replies.

Sort Posts:

  • Active Directory password expired

    05-07-2008, 6:07 PM
    • Loading...
    • elaraq
    • Joined on 05-07-2008, 10:01 PM
    • Posts 1

    hi everyone, i need to know about how i get password is expired in a Active Directory??

    I work with ASP.NET C#. 

    Thanks....

  • Re: Active Directory password expired

    05-10-2008, 7:10 PM
    • Loading...
    • johram
    • Joined on 06-13-2006, 6:36 AM
    • Sweden
    • Posts 1,865
    • Moderator

    There's an attribute called pwdlastset that you can read from your DirectoryEntry.Properties, but you have to convert it as it is in file time format.

    Here's a previous thread for you: Check password expired

    Code samples are in VB.net though but I think you'll manage to translate. Let us know otherwise.

    If this post was useful to you, please mark it as answer. Thank you!
Page 1 of 1 (2 items)