Active Directory Authentication

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

Guest

I need help writing a method to check a username and password in AD. I know;
I've seen forms authentication methods, but I want a simpler way. How can I
search for a user object and compare the name and password against it?

Can someone please offer a simple solution to validate the password and
username in AD? thanks.
 
Thank you for the response. Like I said, I tried forms based authentication,
but I don't like it that way. I've also seen the code project sample, but
that wasn't it either. Users don't know LDAP naming conventions.

There should be a way to enumerate users, find the one I want, and check if
the passwords match. Can anyone think of a better way?
 
You can't check if passwords match, there no way to retrieve passwords from
the AD.
What's more the AD is not a windows authentication service, it's a
directory, some people suggest (even MSFT) to use it to authenticate but
it's plain wrong to do this, you don't connect with SQL to authenticate a
user neither don't you.
That said, if you need to check a windows user credentials, one could call
"LogonUser" Win32 API. Note that this implies TCB privileges on W2K and
lower.

Willy.
 
Back
Top