[rt-users] RT::Authen:ExternalAuth garbles our beautiful German umlauts

Sinapius, Vinzenz Vinzenz.Sinapius at tracetronic.de
Wed May 11 09:47:42 EDT 2016


Hi,

Since migrating from MariaDB, CentOs 6 to PostgreSQL, Ubuntu 14.04 LTS RT::Authen:ExternalAuth garbles our beautiful German umlauts:

[24732] [Wed May 11 13:34:00 2016] [debug]: Calling UserExists with $username (horst) and $service (My_LDAP) (/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:465)
[...]
[24732] [Wed May 11 13:34:00 2016] [debug]: Found LDAP DN: CN=Testmäister\, Hörst,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=tracetronic,DC=local (/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:221)
[...]
[24732] [Wed May 11 13:34:00 2016] [info]: RT::Authen::ExternalAuth::CanonicalizeUserInfo returning EmailAddress: , Name: horst, RealName: Testmäister, Hörst (/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:868)
[24732] [Wed May 11 13:34:00 2016] [debug]: UPDATED user horst: User horst: RealName changed from 'Testmäister, Hörst' to 'Testmäister, Hörst' (/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:665)

I found that when running the value from LDAP through an additional $value_from_ldap = decode('utf-8', $value_from_ldap), the value gets ungarbled...(see attached patch). Which is an okay workaround for us, but maybe you know of a better workaround? Unfortunately my perl foo is not good enough to found the root cause of this issue.

Cheers,
Vinzenz
Vinzenz Sinapius
Information Technology | Informationstechnik

tracetronic GmbH
Stuttgarter Str. 3
01189 DRESDEN
GERMANY

Phone: +49 351 205768-167
Fax: +49 351 205768-999
E-mail: vinzenz.sinapius at tracetronic.de<mailto:vinzenz.sinapius at tracetronic.de>

Head Office | Hauptsitz: Stuttgarter Str. 3, 01189 DRESDEN, GERMANY
Managing Directors | Geschäftsführer: Dr.-Ing. Rocco Deutschmann, Dr.-Ing. Peter Strähle
Registration Court | Registergericht: Amtsgericht Dresden, HRB 23 086


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20160511/a6fbb41b/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rt_fixit.txt
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20160511/a6fbb41b/attachment.txt>


More information about the rt-users mailing list