How to validate domain user credentials across domains using C#?

I need to validate domain user credentials across domains within the same network. For example domain user account is created on “Domain1”, but I need to verify this user account from a computer C1 that is joined to “Domain2”.
I am able to validate successfully by using DC IP address, but for this I need to find out DC IP adress of domain2 from the computer C1 which I couldn’t do programmatically.

Is there any other way to validate domain user credentials?


Source: .net

1 Comment

  1. Digin Dominic

    You can use Dns.GetHostEntry for acquiring the IP address. https://msdn.microsoft.com/en-us/library/ms143998%28v=vs.110%29.aspx

    Reply

Leave a Reply