ActiveDirectory

ActiveDirectory is basically a Directory Server which can be accessed via the LDAP protocol.

Java

In Java ActiveDirectory can be accessed natively via JNDI. But there are also other libraries which can be used and offer easier methods to get data from the ActiveDirectory server.

Attribute

The username which is used for logging in to a Windows domain is stored in the LDAP attribute sAMAccountName.