[rt-users] RT 4.0.8 - rt-mailgate hangs on authenticated RT server

Duncan Napier dgnapier at sfu.ca
Tue Jun 18 12:18:29 EDT 2013



----- Original Message -----
 > Message: 6
> Date: Mon, 17 Jun 2013 15:21:19 -0700
> From: Thomas Sibley <trs at bestpractical.com>
> To: rt-users at lists.bestpractical.com
> Subject: Re: [rt-users] RT 4.0.8 - rt-mailgate hangs on authenticated
> 	RT	server
> Message-ID: <51BF8BDF.407 at bestpractical.com>
> Content-Type: text/plain; charset=UTF-8
> 
> On 06/17/2013 03:06 PM, Duncan Napier wrote:
> > I understand that to get around this, you open up areas of the
> > server to the the localhost (127.0.0.1) so no authentication is
> > required. I have tried a bunch of fixes, but none seem to work.
> > They seem require NoAuth areas of the rt directory have
> > authentication disabled using Apache Location or Directory
> > directives, as in:
> > 
> > #############
> > # Begin Code Fragment
> > #############
> >     <LocationMatch /share/html/NoAuth>
> >         Satisfy Any
> >         Allow from all
> >     </LocationMatch>
> > 
> >     <LocationMatch /share/html/REST/1.0/NoAuth>
> >         Satisfy Any
> >         Allow from all
> >     </LocationMatch>
> 
> Your Apache configuration directives are wrong.
>  Location/LocationMatch
> take a URL location, not a directory path (that's what
> Directory/DirectoryMatch are for).  You also aren't using the
> matching
> power of LocationMatch, and don't need it, so you want something
> like:
> 
> <Location /REST/1.0/NoAuth/mail-gateway>
>     Satisfy any
>     Allow from 127.0.0.1
> </Location>
> 
> You don't need to allow /NoAuth for mailgate.
> 

Hi Thomas,

Thanks very much. I did succeed in making it work, but still using LocatioMatch directive. I changed

> > #############
> > # Begin Code Fragment
> > #############
> >     <LocationMatch /share/html/NoAuth>
> >         Satisfy Any
> >         Allow from all
> >     </LocationMatch>
> > 
> >     <LocationMatch /share/html/REST/1.0/NoAuth>
> >         Satisfy Any
> >         Allow from all
> >     </LocationMatch>

by changing the above fragment (and putting in required quotes "" that were missing! Doh!) to

  <LocationMatch "/NoAuth">
        Satisfy Any
        Allow from all
    </LocationMatch>

    <LocationMatch "/REST">
        Satisfy Any
        Allow from all
    </LocationMatch>
 
It works fine now and I'm not going to mess with it (the cardinal rule of RT - don't mess with what works!!!), unless you have some additional comments or advice about it. 

                                 Regards,

                                 Duncan.





More information about the rt-users mailing list