Subject: | problem for auto-create account if aka NAME field in database contains uppercase. |
Date: | Fri, 5 Feb 2016 15:38:05 +0100 (CET) |
To: | bug-RT-Authen-ExternalAuth [...] rt.cpan.org |
From: | Bruno Marmol <bruno.marmol [...] ccsd.cnrs.fr> |
Hi,
My user login (aka: Name field for RT/Authen/ExternalAuth/DBI) can contain uppercase.
Mysql act identicaly for
1) Select ... from .... where Name='toto';
2) Select ... from .... where Name='ToTo';
So DBI, create an hashref in RT::Authen::ExternalAuth::DBI::CanonicalizeUserInfo with hashkey "ToTo"
But, when getting REMOTE_USER value in RT::Interface::WebCanonicalizeInfo, RT does an lowercase of the value... so "toto"
In RT::Authen::ExternalAuth::DBI::CanonicalizeUserInfo the line
my $result = $results_hashref->{$value};
give wront result because the hash key is "ToTo", but $value is "toto"
I patched by
my $result = (values %$results_hashref)[0];
to get the only value I want and it works.
--
Bruno Marmol.
Email: Bruno.Marmol@Inria.fr
Inria.