Hi guys,
i need some help over here.
I need c# codes which link to active directory that force users to change their password when log in.
Will be grateful if anyone could help. Thanks! ^^
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
harry krishPosted Jul 27, 2010, 12:07 PM
where is the user login information stored?
if the user information is stored in a database thn you can follow the below approach
--> add a new column like "isPasswordChangeRequired" in the user table
--> set the value of this field to 1 or 0
* 1 for password change required
* 0 for password change not required
--> in the application add a code to verify the value of this column to the respective login user. if it is set to 1 thn re-direct or promp the user to change the password and once the password is changed update the column in the database to 0. so that it won't prompt for password change in the second login if the user changes the password successfully.
:)