LDAP doesn't work from inside Phabricator, but does using ldapsearch and the included auth tool.
When attempting to login to Phabricator using LDAP, I get:
Unhandled Exception ("Exception") LDAP Exception: Failed to bind to LDAP server (as user "$user@$company.com"). LDAP Error #-1: Can't contact LDAP server
Using Ldap diagnostic tool I get:
Connecting to LDAP... >>> [6] <ldap> connect (ldap.$company.com:389) <<< [6] <ldap> 234 us >>> [7] <ldap> bind ($user@$company.com) <<< [7] <ldap> 8,855 us >>> [8] <ldap> search (DC=AD,DC=$company,DC=COM, sAMAccountName=$user) <<< [8] <ldap> 4,206 us Found LDAP Account: $user
LDAP Settings:
hostname: ldap.$company.com
port: 389
DN: DC=ad,DC=$company,DC=com
Search Attributes: sAMAccountName
Username Attributes: sAMAccountName
Realname Attributes: givenName, sn
LDAP Version: 3
ActiveDirectory Domain: $company.com
Versions
phabricator b256f2d7b2db27318728a63b7c2565241f87452c (Tue, May 31) arcanist 2234c8cacc21ce61c9c10e8e5918b6a63cc38fc8 (Mon, May 16) phutil 5eaf0a9f5a3540a2eba9c75b4e792d0fb26cf69a (Thu, May 26)