Checking whether user exists in Domain

  • Thread starter Thread starter ramnadh
  • Start date Start date
R

ramnadh

Hi

I am having a problem regarding checking whether the User exists in
the given domain.

For example I am the user in the Domain1 and i want to connect to
Domain2 with the Username and Password. What i am doing is that when i
connecting to Domain2 i am asking to enter the Username and password.
Can anyone please tell me how can we check whether the User with that
password exists in the Domain2. How can i check whether the user is in
the Domain2.

At present i am doing this task on .Net Platform. I used
DirectoryEntry class for this one. To do this , i am creating a
DirectoryEntry with the given user and pwd and Domain.

Ex:
DirectoryEntry("LDAP://<Domain>",<UserName>,<Pwd>,AuthenticationType.Secure)

But here i am creating a virtual Directory and checking whether it
existed or not. But i don't want to create any Virtual Directory, i
just want to check whether this user with this Pwd exists in this
Domain Or not.

Can anyone please help me.

Regards,
Ramnadh
 
If you want to validate the password, you need to look at the LogonUser API.
It's pretty straightfoward to use from .net. In general, you should probably
direct AD programming stuff to the ADSI groups - the experts are there.

--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com
 
Back
Top