Thread:Extension talk:LDAP Authentication/User-name mapping hook does not work (2)/reply

I believe PHP's LDAP implementation requires attribute names be lowercase; use this instead:

$LDAPUsername = $info[0]['displayname'][0];