LDAP attribute names are case insensitive, but the attribute values may or may not be sensitive.
in other words the "DN=" is the same as "dn=", but "cn=myuser" may or may not be the same as "cn=MyUser" (in the case of Active Driectory they are the same).
The trivial workaroiund for this is to specify the search in the canonical way that is returned by the server (e.g. if your server returns CN=User Xyz,OU=Employees,OU=Example AG,DC=example,DC=com then make sure your searchgroups, memober lookups etc all use the same form (capitals for attribute names).
The code should not really be looking at the string as a whole, but the individual parts and comparing them with the actual case sensitivity set for the plugin.
+1