Tracy12 wrote: > 1) As we dont use the apache basic authentication but our CAS > authentication. If the authentication is not successful how can we redirect > to the CAS login page. > > My suggestion -> instead of returning the AUTH_REQUIRED redirect to > CAS URL with the service. > if this is wrong how to achieve this in a different way
I'd still use AUTH_REQUIRED and then use ErrorDocument to handle the redirection (unless of course you need to figure out the URL dynamically). This way you can keep the location as part of your config data. ErrorDocument 403 /login/url > 2) As we dont use the basic authentication in apache in the above httpd.conf > entry what the values should we give for AuthType , AuthName in the above > Location declaration. Set AuthType to 'Basic' since it's not 'Digest'. And then AuthName can be whatever you want it to be. It's basically a way to group the locations that use the same Auth together (called a "realm"). > 3) Pass addtional parameters to the handler > solution -> in the httpd.conf block pass it as > > PerlSetVar CASHost "testCasServer" > PerlSetVar CASPort "8443" Yep. If possible keep the configuration data inside the configuration <Location>s. -- Michael Peters Developer Plus Three, LP