PC Review


Reply
Thread Tools Rate Thread

Check AD password if "user must change password next login"

 
 
Oleg Ogurok
Guest
Posts: n/a
 
      23rd Jul 2004
Hi all,

I'm trying to find a way (using C#.NET or COM) to authenticate a user based
on his credentials in Active Directory. The problem is that when I manually
set "User Must Change Password at Next Logon", or when the password expires,
I can no longer bind to AD using this user. Is there a method that checks
the password in AD regardless of that flag?

What I'm trying to implement is a dialog box prompting a user to change the
password if the password has expired. How can I check the old password for
validity.

Thank you,
-Oleg.


 
Reply With Quote
 
 
 
 
Joe Kaplan \(MVP - ADSI\)
Guest
Posts: n/a
 
      23rd Jul 2004
You can't do this with an LDAP bind. The only way that I know it is
possible is by using SSPI directly, but I'm not sure how this is actually
done.

It is possible to discover if the user has that flag set using a different
set of credentials, but that doesn't help you bind unless you change that
flag.

Joe K.

"Oleg Ogurok" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
>
> I'm trying to find a way (using C#.NET or COM) to authenticate a user

based
> on his credentials in Active Directory. The problem is that when I

manually
> set "User Must Change Password at Next Logon", or when the password

expires,
> I can no longer bind to AD using this user. Is there a method that checks
> the password in AD regardless of that flag?
>
> What I'm trying to implement is a dialog box prompting a user to change

the
> password if the password has expired. How can I check the old password for
> validity.
>
> Thank you,
> -Oleg.
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: 1 user gets when "admin" in use - but no login/password prompt TxBlueEyes Microsoft Access Security 0 22nd Aug 2008 03:02 AM
How do you uncheck "User cannot change password" and "Password never exipers" attributes in vb.net whosyodaddy1019@hotmail.com Microsoft VB .NET 0 27th Sep 2006 01:57 PM
How do you uncheck "User cannot change password" and "Password never exipers" attributes in vb.net TheVillageCodingIdiot Microsoft Dot NET Framework 0 26th Sep 2006 04:08 PM
ADSI - Creating an AD account but not forcing a "change password on first login" AC [MVP MCMS] Microsoft C# .NET 2 8th Feb 2006 06:39 PM
Password expires and account state changes to "user must change password on next logon" dmohanty@gmail.com Microsoft Windows 2000 Active Directory 0 13th Sep 2005 10:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:41 PM.