Last post Jul 27, 2011 11:02 AM by Tamilmani Kpr
Member
5 Points
24 Posts
Jul 22, 2011 04:28 PM|ks123|LINK
Hi,
How do I progrmatically (in C#) determine which domain controller authenticates a user knowing the domain name for the user? I obtained the domain name for the user from the distinguisedName for the user.
Thanks for any help
592 Points
263 Posts
Jul 27, 2011 12:07 AM|Tamilmani Kpr|LINK
Use the PricipalContext class..
PrincipalContext.ConnectedServer
Jul 27, 2011 08:29 AM|ks123|LINK
I am new to AD. Could you please give a code example?
Thanks.
Jul 27, 2011 11:02 AM|Tamilmani Kpr|LINK
Try this...
PrincipalContext principalContext = new PrincipalContext(ContextType.Domain, domainName); string connectedDC = principalContext.ConnectedServer;
Member
5 Points
24 Posts
Domain Conroller
Jul 22, 2011 04:28 PM|ks123|LINK
Hi,
How do I progrmatically (in C#) determine which domain controller authenticates a user knowing the domain name for the user? I obtained the domain name for the user from the distinguisedName for the user.
Thanks for any help
Member
592 Points
263 Posts
Re: Domain Conroller
Jul 27, 2011 12:07 AM|Tamilmani Kpr|LINK
Use the PricipalContext class..
PrincipalContext.ConnectedServer
Member
5 Points
24 Posts
Re: Domain Conroller
Jul 27, 2011 08:29 AM|ks123|LINK
I am new to AD. Could you please give a code example?
Thanks.
Member
592 Points
263 Posts
Re: Domain Conroller
Jul 27, 2011 11:02 AM|Tamilmani Kpr|LINK
Try this...