RTFM and NoAuth

Hello All,

I am trying to setup RTFM with NoAuth… Everything works great when you are
authenticated… but when trying via NoAuth i get the Overview page but
cannot see any classes. I did create a user “RTFM Guest”

However the logs say:
RT: Couldn’t load from the users database.
(/opt/rt3/lib/RT/CurrentUser.pm:111)

How can I allow access via NoAuth.

-Jamie

James L. Harrison
harrison@palisadesys.com
Technical Support Engineer
Palisade Systems
515.296.0701

Hello,

–Am Mittwoch, 16. April 2003 13:50 Uhr -0500 schrieb "James L. Harrison"
harrison@palisadesys.com:

I am trying to setup RTFM with NoAuth… Everything works great when you
are authenticated… but when trying via NoAuth i get the Overview page
but cannot see any classes. I did create a user “RTFM Guest”

However the logs say:
RT: Couldn’t load from the users database.
(/opt/rt3/lib/RT/CurrentUser.pm:111)

How can I allow access via NoAuth.

the same happens here. There seems to be no code handling the case, where
no username is known. Does anybody have a solution?

Regards,
Dirk.

Yeah,

I’m not sure why… But I was looking at NoAuth/RTFM/autohandler and
NoAuth/RTFM/Elements/authandler
You are right… No code is handling it…

I ended up with this as my NoAuth/RTFM/autohandler
%$m->call_next();

<%init>
#unless ($session{‘CurrentUser’}) {

$session{‘CurrentUser’} = RT::User->new($RT::SystemUser);

     $session{'CurrentUser'}->LoadByName('RTFM Guest');

#}
#unless ($session{‘CurrentUser’}->Id) {

$m->comp("/RTFM/Elements/Error", Details => "No 'RTFM Guest’user

exists");
#}
</%init>

<%once>
use RT::FM::ArticleCollection;
use RT::FM::ClassCollection;
use RT::FM::CustomFieldCollection;
use Time::ParseDate;
</%once>

It isn’t pretty, but it does work. It forces RTFM Guest to log in. Then I
made some minor html changes…

-Jamie

It�s a known issue. Please do note the fact that this is beta software
and isn�t yet even supposed to be fully functional.

jOn Tue, Apr 22, 2003 at 09:36:51AM -0500, James L. Harrison wrote:

Yeah,

I’m not sure why… But I was looking at NoAuth/RTFM/autohandler and
NoAuth/RTFM/Elements/authandler
You are right… No code is handling it…

I ended up with this as my NoAuth/RTFM/autohandler
%$m->call_next();

<%init>
#unless ($session{‘CurrentUser’}) {

$session{‘CurrentUser’} = RT::User->new($RT::SystemUser);

     $session{'CurrentUser'}->LoadByName('RTFM Guest');

#}
#unless ($session{‘CurrentUser’}->Id) {

$m->comp("/RTFM/Elements/Error", Details => "No 'RTFM Guest’user

exists");
#}
</%init>

<%once>
use RT::FM::ArticleCollection;
use RT::FM::ClassCollection;
use RT::FM::CustomFieldCollection;
use Time::ParseDate;
</%once>

It isn’t pretty, but it does work. It forces RTFM Guest to log in. Then I
made some minor html changes…

-Jamie

-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of Dirk Pape
Sent: Tuesday, April 22, 2003 9:10 AM
To: Rt-Users (E-mail)
Subject: Re: [rt-users] RTFM and NoAuth

Hello,

–Am Mittwoch, 16. April 2003 13:50 Uhr -0500 schrieb "James L. Harrison"
harrison@palisadesys.com:

I am trying to setup RTFM with NoAuth… Everything works great when you
are authenticated… but when trying via NoAuth i get the Overview page
but cannot see any classes. I did create a user “RTFM Guest”

However the logs say:
RT: Couldn’t load from the users database.
(/opt/rt3/lib/RT/CurrentUser.pm:111)

How can I allow access via NoAuth.

the same happens here. There seems to be no code handling the case, where
no username is known. Does anybody have a solution?

Regards,
Dirk.


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

http://www.bestpractical.com/rt – Trouble Ticketing. Free.