Suggestion regarding the extension RT-Extension-LDAPImport

Hello, i just wanted to report a small issue with RT-Extension-LDAPImport,
when i execute it, it will try to update any user that has a field with non
7 bit ASCII characters in it, for example:

User yvelasquez: Organization changed from 'CENTRO DE INSPECCI▒N AUTOMOTRIZ’
to ‘CENTRO DE INSPECCI▒N AUTOMOTRIZ’

The actual value is CENTRO DE INSPECCIÓN AUTOMOTRIZ. My guess is that any
field with 8 bit ASCII or Unicode will cause this problem.

View this message in context: http://requesttracker.8502.n7.nabble.com/Suggestion-regarding-the-extension-RT-Extension-LDAPImport-tp59883.html

Well i just found that this bug was reported and doesn’t have an update since
february 2013.

https://rt.cpan.org/Public/Bug/Display.html?id=74144

View this message in context: http://requesttracker.8502.n7.nabble.com/Suggestion-regarding-the-extension-RT-Extension-LDAPImport-tp59883p59885.html

I got contacted by Max Kosmach with a one line patch and it seems to be
working, i paste his patch below, don’t know if it breaks something else:

— RT/Extension/LDAPImport.pm.orig 2014-09-23 00:17:19.000000000
+0400
+++ RT/Extension/LDAPImport.pm 2015-03-11 13:21:30.161168864 +0300
@@ -386,7 +386,7 @@
sub connect_ldap {
my $self = shift;

  • my $ldap = Net::LDAP->new($RT::LDAPHost);
  • my $ldap = Net::LDAP->new($RT::LDAPHost, raw =>
    qr/(?i:^jpegPhoto|;binary)/);
    $self->_debug(“connecting to $RT::LDAPHost”);
    unless ($ldap) {
    $self->_error(“Can’t connect to $RT::LDAPHost”);

View this message in context: http://requesttracker.8502.n7.nabble.com/Suggestion-regarding-the-extension-RT-Extension-LDAPImport-tp59883p59901.html