apache - Problems with CAS validation and mod_auth_cas -
so have apache server running mod_auth_cas module. i'm trying have secure directory protected. load module in httpd.conf file:
loadmodule auth_cas_module /usr/lib64/php/modules/mod_auth_cas.so
and have of configuration loaded cas.conf file:
casversion 1 casdebug on casrootproxiedas http://something.com/secure casloginurl https://secure.its.somewhere.edu/cas/login casvalidateurl https://secure.its.somewhere.edu/cas/servlet/validate cascookiepath /var/www/webroot/cas/ <directory /var/www/webroot/root/secure> authtype cas require valid-user </directory>
when visit secure directory, website redirect me cas login page, , send me ticket after i've logged in. 401 authorization required page. looked through apache logs , i've found:
[debug] mod_auth_cas.c(2026): [client ] entering cas_authenticate() [debug] mod_auth_cas.c(575): [client ] cas service 'http%3a%2f%2fsomething.com%2fsecure%2fsecure' [debug] mod_auth_cas.c(523): [client ] entering getcasloginurl() [debug] mod_auth_cas.c(500): [client ] entering getcasgateway() [debug] mod_auth_cas.c(590): [client ] entering redirectrequest() [debug] mod_auth_cas.c(602): [client ] adding outgoing header: location: https://secure.its.somewhere.edu/cas/login?service=http%3a%2f%2fsomething.com%2fsecure%2fsecure [debug] mod_auth_cas.c(2026): [client ] entering cas_authenticate() [debug] mod_auth_cas.c(645): [client ] modified r->args (now '') [debug] mod_auth_cas.c(1729): [client ] entering getresponsefromserver() [debug] mod_auth_cas.c(575): [client ] cas service 'http%3a%2f%2fsomewhere.com%2fsecure%2fsecure%2fsecure' [debug] mod_auth_cas.c(1806): [client ] validation response: no\n\n [debug] mod_auth_cas.c(1434): [client ] entering isvalidcasticket() [debug] mod_auth_cas.c(1440): [client 73.163.185.61] mod_auth_cas: response = no\n\n
i've looked in file cookie should saved, , there no cookies.
i've been looking documentation cas , trying figure out why on earth not working. followed of documentation set apache module. i'm confused. help?
so, after tearing hair out while , trying sorts of apache configuration changes, recompiling module, , reading through more documentation, found small, annoying, bug.
casrootproxiedas http://something.com/secure
this doesn't work. has proxied as:
casrootproxiedas http://something.com
simple bug. had me tearing hair out few days.
Comments
Post a Comment