Is there any way to get preferred domain controller name using BSD/POSIX C function calls? Please, advice if there are any functions that can be used to get preferred DC name under Mac OS X.
Asked
Active
Viewed 60 times
1 Answers
0
Domain controllers aren't standardized in any way. If you want to discover the domain controller, the best thing to do is find your target domain controller protocol and find it through this protocol using sockets. For instance, windows domain controllers can be found using C# libraries, but in linux C you'd either have to get a 3rd party library or write the protocol out yourself.

KrisSodroski
- 2,796
- 3
- 24
- 39
-
Thank you for advice! But what about examples of such 3rd party libraries? – Constantine Mars May 30 '13 at 06:52
-
There is no POSIX definition of how to interact with a domain controller. If you google LDAP C library though, you can get libraries for your desired LDAP architecture. – KrisSodroski May 30 '13 at 16:33