ZF-12462: Zend\Ldap\Ldap.php (objectClass=posixAccount) should be removed as an invalid filter.
LDAP by default allows you to set filters. By setting the initial filter for posixAccount creates an issue on many enterpise LDAP applications that we currently work on. The lowest denominator should always be used by the search which is strictly (uid=username). Users have the ability to add filters in addition to the base filter which essentially renders this filter as a major bug on some LDAP servers where the posixAccount attribute does not exist. This requires the developers to patch the Zend\Ldap\Ldap.php during every release.
I will be happy to submit a merge request on github for zf2. However this affects the version 1.x release as well, and it's a single line that needs to be changed.