[rt-users] Problems with LoadyGecos

Dummy cerberus dummycerberus at gmail.com
Thu Oct 18 03:56:25 EDT 2007


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.



More information about the rt-users mailing list