- yum install httpd-devel
(apr-devel is installed as a pre-req with httpd-devel)
- yum groupinstall 'Development Tools'
Build the josso/apache httpd module
- extract josso-src/dist/agents/josso-apache22-agent-1.8.2-.tar.gz
- cd josso-apache22-agent-1.8.2
- chmod 744 makemake
- ./makemake
- chmod 744 configure
- ./configure --with-apache-include=/usr/include/httpd --with-apr-include=/usr/include/apr-1
- make
- apxs -i -a -n auth_josso mod_auth_josso/.libs/libmod_auth_josso.so
Protect web resource
- edit /etc/httpd/conf/httpd.conf and add the following within the Directory "/var/www/html" tag
AuthType JOSSO
AuthName "MyApacheWeb"
Require user "user1"
Require role "role2"
GatewayLoginUrl "http://localhost:8080/josso/signon/login.do"
GatewayLogoutUrl "http://localhost:8080/josso/signon/logout.do"
GatewayEndpoint "localhost" 8080
Restart apache httpd
- service httpd restart
Check (ensure that tomcat6 is running)
- Go to http://localhost/
(Log in with user1/user1pwd)