Some LDAP changes

I’ve installed RT5.0.3 some months ago and I had some problems to connect it to my LDAP system. I’ve done the following changes to:

/opt/rt5/lib/RT/Authen/ExternalAuth/ line 625:

  • From: $filter->as_string,
  • To: $search_filter->as_string,

/opt/rt5/lib/RT/ line 426:

  • From: my $ldap = Net::LDAP->new($RT::LDAPHost, @$RT::LDAPOptions);
  • To: my $ldap = Net::LDAP->new($RT::LDAPHost, @RT::LDAPOptions);

I’m a beginner at RT and I haven’t used Perl for the last decades. I don’t know if these changes are correct or suitable for other people. I post them here just in case it can be useful to someone.