ruby-ldap/ruby-net-ldap — pull request #41 by justcfx2u (2012-05-01 02:11:08+00:00)
Title: Fall back if string cannot be encoded

This patch makes searching for "(objectclass=user)" on my ActiveDirectory behave itself. Something in the LDAP directory was failing terribly, which was allowing searches by "(cn=[a-z]*)" but would not complete on a filter for "user".

This quick'n'dirty patch resolved my issue.

I use it in combination with Pull Request 33 [GitHub]/ruby-ldap/ruby-net-ldap/pull/33