Thread:Extension talk:LDAP Authentication/Unable to get plugin to work with OpenLDAP + Fix

I wasn't able to get the plugin to work with a OpenLDAP (GoSa2 Managed) server, as it was turning up password errors.

After enabling debugging, I noticed that the search string was not finding any groups (Returned groups was empty).

I noticed the search string was (&(MemberUid=)(objectclass=posixGroup)), which looked weird to me. I sent that through ldapsearch, which decided to choke on it.

After running a few test queries, I realized that with only "objectclass=posixGroup", ldapsearch returned the correct results.

I am not a professional coder by any chance, but opening LdapAuthentication.php and changing to fixed the problem for me.