Installing CAS Server on Centos

21 Jul

Install Prereq software

Download and install CAS Server

Setup custom authentication

  • cd /opt/cas/cas-server-3.4.7
  • cp modules/cas-server-support-generic-3.4.7.jar /usr/share/tomcat6/webapps/cas-server-webapp-3.4.7/WEB-INF/lib
  • Edit /usr/share/tomcat6/webapps/cas-server-webapp-3.4.7/WEB-INF/lib/deployerConfigContext.xml
    • Comment out bean definition for SimpleTestUsernamePasswordAuthenticationHandler
    • Add the following bean definition replace username and password with appropriate value.
      <bean class="org.jasig.cas.adaptors.generic.AcceptUsersAuthenticationHandler">
          <property name="users">
             <map>
                <entry key="<username>" value="<password>" />
             </map>
          </property>
      </bean>

       

Setup SSL support using Self-Signed Certificates

— Change the server.xml and add the following:

<!– Define a SSL HTTP/1.1 Connector on port 8443

This connector uses the JSSE configuration, when using APR, the

connector should be using the OpenSSL style configuration

described in the APR documentation –>

<Connector port=”8443″ protocol=”HTTP/1.1″ SSLEnabled=”true”

maxThreads=”150″ scheme=”https” secure=”true”

clientAuth=”false” sslProtocol=”TLS” keystorePass=”changeit”/>

— More details at http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html#Configuration

  • Restart Tomcat
    • service tomcat6 restart
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: