For a project in APEX, I wanted to use LDAP (Active Directory) authentication. It took me a few hours to got it working. The only thing I needed is to change the short 'windows' name into the CN name.
With the help of this great example:
I fixed it.
The example shows how to login to LDAP and get values from it.