First off question about AD are better answered by the 2 Joe's in the
following newsgroup:
microsoft.public.adsi.general
But there are several ways to achieve what you want, you can use unmanaged
code via the win32 api 'LogonUser' or you can use the DirectoryServices
namespace.
Using the DirectoryServices namespace you could do something like this:
{
...
DirectoryEntry de = new DirectoryEntry();
// example LDAP string 'LDAP://CN=Users;DC=mydomain;DC=net'
de.Path = LDAP://CN=Users;DC=DOMAINNAME;DC=DOMAINSUFFIX;
de.Username = @"USERNAME";
de.Password = "PASSWORD";
string nativeGuid = de.NativeGuid;
...
}
When the call to 'de.NativeGuid' is made if the username or password are
invalid an exception will be thrown.
Have a look at this:
http://www.c-sharpcorner.com/Code/20.../ADand.NET.asp
HTH
Ollie Riches
"Bevo" <Be**@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
We are developing a desktop application for a customer (VS 2003). The
customer wants us to retrieve the Windows logon information from Active
Directory, then ask the user to verify his password and then assure that
this
password is the same as the one given when doing Windows logon. This must
be
done before starting the app.
I wonder: whats the best way to accomplish this?
Thanks!