ruby-ldap/ruby-net-ldap — Issue #30: Encoding::UndefinedConversionError after upgrading from 0.2.2 to 0.3.1
Author: MaffooClock
Created: 2012-02-20 19:22:13+00:00
State: open

I have an ActiveDirectory model that uses net-ldap for communication to an Active Directory server, and after upgrading the gem from v0.2.2 to v0.3.1, I get the a `Encoding::UndefinedConversionError` exception when binding and performing a query. When I downgrade to 0.2.2, the problem goes away instantly. It looks like it may be due to the recent changes to use UTF-8 by default.

It seems that my application encounters this only when I am searching AD using a GUID, which would indicate that net-ldap is trying to convert the binary GUID to UTF-8.

I'm not sure if this is due to me misusing net-ldap, or if this may be a regression, or if this is an Active Directory -specific issue that may require additional considerations in net-ldap with respect to UTF-8 conversions.