Thread:Extension talk:LDAP Authentication/Problem with memberUid being casesensitive while using Required Group

We found a problem with memberUid being casesensitive while using Required Group.

We have users in our ldap with lowercase uids and some older uids starting with uppercase character and then lowercase. These older uids are the way mediawiki is used to and could login, the newer all lowercase uids could not. With enabled debugging we found it is using the filter (&(memberUid=Wikibot)(objectclass=posixGroup)), which returned nothing. Using the filter (&(memberUid=wikibot)(objectclass=posixGroup)) returned the groups. Or the other way round with old uids and $wgLDAPLowerCaseUsername=true. Because we are having two different cases I had to use a filter like this (&(|(memberUid=Wikibot)(memberUid=wikibot))(objectclass=posixGroup)).

To get it work for us, I have just edited the LdapAuthentication.php from to

Perhaps it is also useful for someone else!

P.S.: I know having a well-structured LDAP would be the best solution! ;-)