[rt-users] RE: unpriv users... SelfService problems...

Beachey, Kendric Kendric.Beachey at garmin.com
Fri Mar 1 10:00:32 EST 2002


Hooray!  This works!!  Thanks man, now I can finally show the SelfService
thing to my users!

(and yes, I did verify that RT still works for privileged users.  :-) )

> -----Original Message-----
> From: moreiras at agestado.com.br [mailto:moreiras at agestado.com.br]
> Sent: Thursday, February 28, 2002 1:35 PM
> To: rt-users at lists.fsck.com
> Cc: rickford at ufl.edu; rm at codeon.de; Kendric.Beachey at garmin.com
> Subject: unpriv users... SelfService problems...
> 
> 
> Hi, 
> 
> I was experiencing the following problem:
> 
> - a unprivileged user was able to login into the
> system, but all the links at SelfService page seems
> not working, reopening the same page, even
> the Logout link...
> 
> I was able to find similar problems in the list
> but not a clue for a solution... Well, I think
> that now I'm able to share with the list at least
> a clue and a work around:
> 
> I found that in the problematic system, the variable:
> 
>   $m->base_comp->path
> 
> have one extra slash (/) in the begining of the 
> string... I don't know why...
> 
> I first thought that was a bug in the version of the 
> Mason library, but that wasn't the case...  I have 
> two instalations of RT 2.0.11 with the same version 
> of the Mason library and one operates
> correctly and the other with the error...
> 
> Well, to test if it is the case, one can add the
> following lines to the begining of the <%INIT> section
> of the autohandler:
> 
> print STDERR "teste de base_comp ";
> print STDERR $m->base_comp->path,"\n";
> 
> then view the result at apache error log: 
> (tail -f /var/log/httpd/error_log)
> 
> My workaround was to modify two regular expressions
> in the autohandler:
> 
> (...)
> 
> #if it's a noauth file, don't ask for auth.
>   if ($m->base_comp->path =~ '^//NoAuth/') {
>           $m->call_next();
> 	          $m->abort();
> 		  }
> (...)
> 
>    # If the user isn\'t privileged, they can only see SelfService
>        if ((! $session{'CurrentUser'}->Privileged) and
>                ($m->base_comp->path !~ '^//SelfService/') ) {
> 	               $m->comp('/SelfService/index.html');
> 		               $m->abort();
> 			       
> (...)
> 
> -- 
> 
> 
> []'s
> 
> Moreiras.
> ----------------------------
> Laboratório - Agência Estado
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20020301/ed985b38/attachment.htm>


More information about the rt-users mailing list