Original posts: https://stackoverflow.com/questions/354037/how-do-i-find-out-which-computer-is-the-domain-controller-in-windows-programmati Your own logon server: Own logon server with C#: List of all domain controllers in particular domain: List of all domain controllers computer is connected to:
Authenticate domain user using LDAP, providing IP of Dc
Original post: https://gist.github.com/dzitkowskik/279164c1343e652660dc