Thread:Extension talk:LDAP Authentication/LDAP search for special entry/reply

I think you want $wgLDAPAuthAttribute