Problems with LoadyGecos

Hello,

I had a user in RT with “User Name” and “Unix login” equal to
"myuser"… but when I perform the following at scrip it tells me that
it isn’t found:

my $userNameSolicitante=“MYUSER”;
my $user = RT::CurrentUser->new($RT::SystemUser);
my $res = $user->LoadByGecos($userNameSolicitante);
if ( $res == 1)
{
$RT::Logger->info(“FOUND!”);
}
else
{
$RT::Logger->info(“NOT FOUND!”);
}

I tried to change both field to lowercase with the web interface, but
it still doesn’t work…

What am I doing wrong?

Best regards,

M.A.