Click here to Skip to main content
15,885,123 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I am developing the WPF tool in other domainand I need to connect to the Active directory in other domain.How to connect?

What I have tried:

PrincipalContext context = new PrincipalContext(ContextType.Domain,stringDomainName);


It is only taking the current domain .I needed the other domain.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900