Thread:Extension talk:LDAP Authentication/Problem with $wgLDAPSearchAttributes/reply (3)

Doh. I read that wrong. Your configuration was actually correct.

I couldn't imagine why uid wouldn't work. You should be able to change:

$wgLDAPSearchAttributes = array( "xyz" => "mail" );

to:

$wgLDAPSearchAttributes = array( "xyz" => "uid" );

This works for me, and I've tested extensively with Sun Directory Server.