Accessing Active Directory

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm having a problem accessing Active Directory, the problem is that I need
to access the passwords of the user to validate a login that i'm doing. I
have access for the usernames but not to there passwords.

Can anyone help me

Thanks
João Felgueiras
 
You are SOL. Passwords are encrypted, and even a a network administrator
cannot see them. A network administrator can set a new password, but not see
the exisiting one.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

If the truth hurts, wear it.
 
You can't get to the password. In reality, you wouldn't want to,
anyway.....too big of a security hole.

What you can do is check a given username/password combination to see if its
valid within active directory....eg:
DirectoryEntry de = new
DirectoryEntry(@"\\MyDomain","Someuser","Pas$word1");

here's a link :
http://www.codeproject.com/csharp/activedirusers.asp
(there's a code snippet for "LogonValid" that walks you throuigh the logic)
 
Back
Top