I have a Windows computer. I need Windows domains to be available for this PC to log in. Any ideas?
This only works if it USERDOMAINis defined as an environment variable. I read at http://www.wilsonmar.com/1envvars.htm that %USERDOMAIN%this is the username.
USERDOMAIN
%USERDOMAIN%
If %USERDOMAIN%is the username, use this:
String UserDomainName = System.getenv("USERDOMAIN");
As suggested by the answer to this question , ActiveDirectoryis an LDAP server. Here's an article on how to use it with Java .
ActiveDirectory
This is a Windows-only feature, so you may have to use JNA to access the Windows system functions, and then find the right function for that.
Use WAFFLE. It supports "Active Directory Domain Enumeration and Domain Information."