2

In my asp.net project I need to Access Active Directory to get E-mail id of Employees. What're the steps to access it?? I got C# class to retreive those datas,but I don't know what to do with that... I found my ADC server name using "nslookup
set type=all _ldap._tcp.dc._msdcs.DOMAIN_NAME" command. please help me by giving some information or links

Thanks,

1 Answer 1

2

You can access the information you need with System.DirectoryServices.AccountManagement-Namespace. There is the class UserPrincipal, which has a static FindById-Method. You will need an PrincipalContext to query you AD. To connect to the "current"-AD you can use the Domain-Class

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.