[users@httpd] mod_rewrite redirect to login page

2014-03-03 Thread Keith Lawson
Hello, I'm attempting to set up a site with a mixture of mod_auth_kerb and an in house mod_perl2 auth handler we wrot. Basically what I need to do is when you hit the root of the site if "REMOTE_USER" isn't populated and you're on the LAN redirect to a page under mod_auth_kerb that sets a tic

Re: [users@httpd] mod_rewrite redirect to login page

2014-03-04 Thread Rich Bowen
On 03/03/2014 05:40 PM, Keith Lawson wrote: Hello, # Redirect to pass through authentication if internal # RewriteCond %{REMOTE_ADDR} ^10\..*$ RewriteCond %{LA-U:REMOTE_USER} !(.+) RewriteRule ^/kltest/env$ https://sso.lhsc.on.ca/signauto/in [NS] # Redirect to manual authentica

Re: [users@httpd] mod_rewrite redirect to login page

2014-03-04 Thread Keith Lawson
>>> On 2014/03/04 at 10:44 AM, in message <5315f4db.8020...@rcbowen.com>, Rich Bowen wrote: > On 03/03/2014 05:40 PM, Keith Lawson wrote: >> Hello, >># Redirect to pass through authentication if internal >># >>RewriteCond %{REMOTE_ADDR} ^10\..*$ >>RewriteCond %{LA-U:REMOTE_USER}

Re: [users@httpd] mod_rewrite redirect to login page

2014-03-04 Thread Rich Bowen
On 03/04/2014 03:12 PM, Keith Lawson wrote: >I suspect that you might be able to do the same thing with > >ErrorDocument 403https://sso.lhsc.on.ca/signauto/in > >and avoid the convolutions of mod_rewrite here. Assuming your in-house >mod_perl auth handler returns a 403 on auth failure. Actua