<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Integrating Liferay with exsiting CAS server</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=32202746" />
  <subtitle>Integrating Liferay with exsiting CAS server</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=32202746</id>
  <updated>2026-06-11T20:34:25Z</updated>
  <dc:date>2026-06-11T20:34:25Z</dc:date>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114001960" />
    <author>
      <name>jasleen pannu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114001960</id>
    <updated>2019-06-14T18:16:26Z</updated>
    <published>2019-06-14T18:16:26Z</published>
    <summary type="html">Trying Liferay 7 ga5, deploying CAS 5.3.11 war in tomcat not able to see deploymentContext.xml file which in WEB-INF/lib . But able to login to CAS server .Can you help to place the secret and private key generated to be saved in which folder.I have placed in WEB-INF\classes\application.propertiescas.tgc.crypto.encryption.key=&lt;br /&gt;cas.tgc.crypto.signing.key=&lt;br /&gt;cas.webflow.crypto.signing.key=&lt;br /&gt;cas.webflow.crypto.encryption.key=</summary>
    <dc:creator>jasleen pannu</dc:creator>
    <dc:date>2019-06-14T18:16:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=76518959" />
    <author>
      <name>robin thakur</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=76518959</id>
    <updated>2016-07-12T09:21:08Z</updated>
    <published>2016-07-12T09:21:08Z</published>
    <summary type="html">Hi chitra,&lt;br /&gt;&lt;br /&gt;I want to know the steps you follow to integrate CAS with liferay.&lt;br /&gt;Please revert back its urgent requirement&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Robin Thakur</summary>
    <dc:creator>robin thakur</dc:creator>
    <dc:date>2016-07-12T09:21:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=41048533" />
    <author>
      <name>pratty M</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=41048533</id>
    <updated>2014-08-06T06:07:00Z</updated>
    <published>2014-08-06T06:07:00Z</published>
    <summary type="html">Hey Meera,&lt;br /&gt;&lt;br /&gt;Thanks for reply. That was really helpful. &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>pratty M</dc:creator>
    <dc:date>2014-08-06T06:07:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=40939271" />
    <author>
      <name>Meera Prince</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=40939271</id>
    <updated>2014-08-04T07:37:05Z</updated>
    <published>2014-08-04T07:37:05Z</published>
    <summary type="html">Hi you can find in the following location..&lt;br /&gt;http://sourceforge.net/projects/meeralferay/files/LiferayCAS/&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Meera Prince</summary>
    <dc:creator>Meera Prince</dc:creator>
    <dc:date>2014-08-04T07:37:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=40368772" />
    <author>
      <name>pratty M</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=40368772</id>
    <updated>2014-07-22T11:05:31Z</updated>
    <published>2014-07-22T11:05:31Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Meera Prince:&lt;/div&gt;&lt;blockquote&gt;Hi&lt;br /&gt;&lt;br /&gt;I understand that  you already have CAS in one server and your liferay in other server.&lt;br /&gt; &lt;br /&gt;First make sure stand alone CAS is working or not.&lt;br /&gt;&lt;br /&gt;means access your https://domainname.com/cas/login&lt;br /&gt;&lt;br /&gt;enter credentials  then you should get login success.. similarly you have to access https://domainname.com/cas/logout and it should log out success.&lt;br /&gt;&lt;br /&gt;tell me your cas application context path...&lt;br /&gt;&lt;br /&gt;Once cas working fine now we want use CAS for liferay means you will provide user credentils from liferay data base &lt;br /&gt;&lt;br /&gt;Open you existed CAS application deploymentContext.xml    file which in WEB-INF/lib  &lt;br /&gt;&lt;br /&gt;create data source for your liferay data base i.e lportal&lt;br /&gt;&lt;br /&gt;&amp;lt;bean id=&amp;#34;dataSource&amp;#34; class=&amp;#34;org.apache.commons.dbcp.BasicDataSource&amp;#34;&amp;gt;&lt;br /&gt;			&amp;lt;property name=&amp;#34;driverClassName&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;value&amp;gt;com.mysql.jdbc.Driver&amp;lt;/value&amp;gt;&lt;br /&gt;			&amp;lt;/property&amp;gt;&lt;br /&gt;			&amp;lt;property name=&amp;#34;url&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;value&amp;gt;jdbc:mysql://localhost:3306/watsonportal2&amp;lt;/value&amp;gt;&lt;br /&gt;			&amp;lt;/property&amp;gt;&lt;br /&gt;			&amp;lt;property name=&amp;#34;username&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;value&amp;gt;root&amp;lt;/value&amp;gt;&lt;br /&gt;			&amp;lt;/property&amp;gt;&lt;br /&gt;			&amp;lt;property name=&amp;#34;password&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;value&amp;gt;&amp;lt;/value&amp;gt;&lt;br /&gt;			&amp;lt;/property&amp;gt;&lt;br /&gt;		&amp;lt;/bean&amp;gt;&lt;br /&gt;&lt;br /&gt;and add Authenticate handler indeploymentContext.xml&lt;br /&gt;&lt;br /&gt;&amp;lt;property name=&amp;#34;authenticationHandlers&amp;#34;&amp;gt;&lt;br /&gt;			&amp;lt;list&amp;gt;&lt;br /&gt;				&amp;lt;bean class=&amp;#34;org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler&amp;#34;&lt;br /&gt;					p:httpClient-ref=&amp;#34;httpClient&amp;#34; /&amp;gt;&lt;br /&gt;				&amp;lt;bean class=&amp;#34;org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationSHA1Base64&amp;#34;&amp;gt;&lt;br /&gt;					&amp;lt;property name=&amp;#34;dataSource&amp;#34; ref=&amp;#34;dataSource&amp;#34;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;					&amp;lt;property name=&amp;#34;sql&amp;#34; value=&amp;#34;SELECT password_ from User_ where lower(emailAddress) = lower(?)&amp;#34;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;				&amp;lt;/bean&amp;gt;&lt;br /&gt;			&amp;lt;/list&amp;gt;&lt;br /&gt;&amp;lt;/property&amp;gt;&lt;br /&gt;&lt;br /&gt;and Liferay used  SHA1Base64 w need implement class QueryDatabaseAuthenticationSHA1Base64.java&lt;br /&gt;&lt;br /&gt;see this post&lt;br /&gt;&lt;br /&gt;https://www.liferay.com/community/forums/-/message_boards/message/4505633&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;once you done this in your existed cas server &lt;br /&gt;now add cas-client-core-3.1.10.jar file in liferay portal  tomcat/lib/ext &lt;br /&gt;now configure your CAS server deatils in liferay from Admin screen go to portal setting and enable cass provide cas login and cas log out urls&lt;br /&gt;&lt;br /&gt;In my www.liferaysavvy.com    go to Cas Problems and Solition download entire zip file from that take cas-server-support-jdbc-3.4.11.jar add to your cas application lib directory in that i implemented QueryDatabaseAuthenticationSHA1Base64.java&lt;br /&gt;&lt;br /&gt;and add above authentication handler to your cas deployemnt context  for reference see my dowloaded cas-web  deploymentContext.xml&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and you need to add keystore certificate that you have used for your cas same certificate you need to add for liferay used jre using following command&lt;br /&gt;&lt;br /&gt;keytool -import -alias tomcat1 -file ./server1.cert -keypass changeit -keystore &amp;#34;C:/Program Files/Java/jdk1.6.0_43/jre/lib/security/cacerts&amp;#34;&lt;br /&gt;&lt;br /&gt;make sure your liferay server using which JRE in that jre/lib/security   you have to add keystore file&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Hey Meera,&lt;br /&gt;&lt;br /&gt;I am trying the same. Can you please help me find the cas-server-support-jdbc-3.4.11.jar.</summary>
    <dc:creator>pratty M</dc:creator>
    <dc:date>2014-07-22T11:05:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32855943" />
    <author>
      <name>Chitra Thambirajan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32855943</id>
    <updated>2014-01-03T13:42:11Z</updated>
    <published>2014-01-03T13:42:11Z</published>
    <summary type="html">Hi Meera,&lt;br /&gt;&lt;br /&gt;Extremely sorry for the late reply.&lt;br /&gt;&lt;br /&gt;Actually in my concern CAS installation and configuration is done by a different team.&lt;br /&gt;&lt;br /&gt;So I just showed the reply which you have posted and some other posts related to CAS integration.&lt;br /&gt;&lt;br /&gt;They told like all the related steps are done already.&lt;br /&gt;&lt;br /&gt;So I just touched the liferay alone to integrate CAS and it&amp;#39;s worked.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Chitra</summary>
    <dc:creator>Chitra Thambirajan</dc:creator>
    <dc:date>2014-01-03T13:42:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32404181" />
    <author>
      <name>Meera Prince</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32404181</id>
    <updated>2013-12-13T10:15:54Z</updated>
    <published>2013-12-13T10:15:54Z</published>
    <summary type="html">Hi&lt;br /&gt;Nice to hear you  that is you done successful configuration...&lt;br /&gt;&lt;br /&gt;I have question  only configuration done in Liferay your cas is working?&lt;br /&gt;how do your CAS get the user details without data sources configured in CAS deploymentContext.xml file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any way i am going write article on Liferay CAS integration....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Meera Prince</summary>
    <dc:creator>Meera Prince</dc:creator>
    <dc:date>2013-12-13T10:15:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32401646" />
    <author>
      <name>Chitra Thambirajan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32401646</id>
    <updated>2013-12-13T08:14:21Z</updated>
    <published>2013-12-13T08:14:21Z</published>
    <summary type="html">Hi Meera,&lt;br /&gt;&lt;br /&gt;Thanks a lot for your time and posts.In this world we could find only few people with helping tendency.You are one among them.&lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;As I mentioned earlier my CAS environment already configured to work with Tomcat applications.&lt;br /&gt;&lt;br /&gt;So what I did is,Just enabled LDAP &amp;amp; CAS authentication in Liferay and added the necessary cas urls.&lt;br /&gt;&lt;br /&gt;And then added a service entry for Liferay in CAS manage page. (my entry is - https://myserver.mydomain.com:8443/c/portal/login )&lt;br /&gt;&lt;br /&gt;That&amp;#39;s all. Everything is working fine.&lt;br /&gt;&lt;br /&gt;Once again thank you for your time meera.&lt;br /&gt;&lt;br /&gt;Also thank you Krzysztof.&lt;br /&gt;&lt;br /&gt;Thank you guys.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Chitra</summary>
    <dc:creator>Chitra Thambirajan</dc:creator>
    <dc:date>2013-12-13T08:14:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32372711" />
    <author>
      <name>Meera Prince</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32372711</id>
    <updated>2013-12-12T10:27:44Z</updated>
    <published>2013-12-12T10:27:44Z</published>
    <summary type="html">HI &lt;br /&gt;Chitra Thambirajan&lt;br /&gt;&lt;br /&gt;did you resolve your problem....??&lt;br /&gt;&lt;br /&gt;I understand you have CAS in another server.. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1) connect your existed CAS to Liferay data base then only user can  be authenticated other wise can cant get used information to authenticate user.&lt;br /&gt;&lt;br /&gt;for this you need create data source to lporal database in Existed CAS server  deploymentContext.xml file as i said earlier.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Liferay internally uses SHA Base64 algorithm to encrypt user password and store in data base .so we need to implement CAS authentication handler which should use same algorithm to do authentication against user who is in lportal&lt;br /&gt;&lt;br /&gt;for this i already done in my cas-web ... you simple go my cas-web/lib    you can find  cas-server-support-jdbc-3.4.11.jar  take this jar file and place in your existed CAS WEB-INF/lib&lt;br /&gt;&lt;br /&gt;now configure authentication handler in deploymentContext.xml of your existed  CAS for this i already show the code and you can see my cas-web deploymentContext.xml&lt;br /&gt;&lt;br /&gt;i implemented authentication handler java class is QueryDatabaseAuthenticationSHA1Base64.java same you can use because u already add my jar file to you CAS &lt;br /&gt;&lt;br /&gt;Now you need add same key store certificate for both servers JRE. because we are using https   protocol the entire information encrypted by the public and private key whic is stored in key store cerificate.&lt;br /&gt;here you are using two servers one for lifera another for CAS  each jre should know these key when the encript and decript for this we need to share same keystore file in two servers JRE&lt;br /&gt;&lt;br /&gt;You need to enables HTTPS port in liferay portal application server if it is  tomcat then open server.xml file and enable HTTPS port as follows&lt;br /&gt;&lt;br /&gt;&amp;lt;Connector port=&amp;#34;7070&amp;#34; protocol=&amp;#34;HTTP/1.1&amp;#34;&lt;br /&gt;               connectionTimeout=&amp;#34;20000&amp;#34;&lt;br /&gt;               redirectPort=&amp;#34;7443&amp;#34; /&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;Connector port=&amp;#34;7443&amp;#34; maxHttpHeaderSize=&amp;#34;8192&amp;#34;&lt;br /&gt;maxThreads=&amp;#34;150&amp;#34; minSpareThreads=&amp;#34;25&amp;#34; maxSpareThreads=&amp;#34;75&amp;#34;&lt;br /&gt;enableLookups=&amp;#34;false&amp;#34; disableUploadTimeout=&amp;#34;true&amp;#34;&lt;br /&gt;acceptCount=&amp;#34;100&amp;#34; scheme=&amp;#34;https&amp;#34; secure=&amp;#34;true&amp;#34;&lt;br /&gt;clientAuth=&amp;#34;false&amp;#34; sslProtocol=&amp;#34;TLS&amp;#34; /&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;Connector port=&amp;#34;7009&amp;#34; protocol=&amp;#34;AJP/1.3&amp;#34; redirectPort=&amp;#34;7443&amp;#34; /&amp;gt;&lt;br /&gt;&lt;br /&gt;you can see this information in my downloaded server.xml file&lt;br /&gt;&lt;br /&gt;Now start liferay login as Admin liferay go to portal settings select CAS authentication  &lt;br /&gt;&lt;br /&gt;configure cas login url, cas logout url , case server name and enable cas using check box.&lt;br /&gt;&lt;br /&gt;if you are using older version of Liferay before 6.x version then add cas-client-core.jar  in tomacat/lib/ext this is called portal global lib  because this jar file in included in portal in previous versions.. you can check this jar file in your portal ROOT.war/WEB-INF/lib   if not available then add in liferay global lib .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Meera Prince</summary>
    <dc:creator>Meera Prince</dc:creator>
    <dc:date>2013-12-12T10:27:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32253713" />
    <author>
      <name>Krzysztof Gołębiowski</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32253713</id>
    <updated>2013-12-09T09:06:10Z</updated>
    <published>2013-12-09T09:06:10Z</published>
    <summary type="html">Hello,&lt;br /&gt;I&amp;#39;ve deployed CAS with Liferay as user source once, but I took a different approach. If you use simple database user/password check then you ommit all Liferay authentication mechanism. Only the simplest username/password case works, If you try to use any different authenticator from chain (eg. LDAP) it will not work, this method does not even check if user is active.&lt;br /&gt;I used Liferay API for authenticating users with CAS, it is quite simple cause you have to extend &lt;span style="font-family: Courier New"&gt;AbstractUsernamePasswordAuthenticationHandler&lt;/span&gt; class and override &lt;span style="font-family: Courier New"&gt;authenticateUsernamePasswordInternal&lt;/span&gt; method with similar code:&lt;br /&gt;&lt;span style="font-family: Courier New"&gt;&lt;br /&gt;			final String username = credentials.getUsername();&lt;br /&gt;			final String password = credentials.getPassword();&lt;br /&gt;			int status = UserLocalServiceUtil.authenticateByScreenName(&lt;br /&gt;					PortalUtil.getDefaultCompanyId(), username, password, null, null, null);&lt;br /&gt;			if(status == Authenticator.SUCCESS) {&lt;br /&gt;				authenticated = true;&lt;br /&gt;			} else if(status == Authenticator.FAILURE) {&lt;br /&gt;				log.info(&amp;#34;User [&amp;#34; + username + &amp;#34;] has an active account but credentials are invalid. Authentication failed.&amp;#34;);&lt;br /&gt;				authenticated = false;&lt;br /&gt;			} else if(status == Authenticator.DNE) {&lt;br /&gt;				log.info(&amp;#34;User [&amp;#34; + username + &amp;#34;] does not have valid account. Authentication failed.&amp;#34;);&lt;br /&gt;				authenticated = false;&lt;br /&gt;			}&lt;br /&gt;			return authenticated;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This requires CAS to be deployed on the same JVM, if it is other server then web service API should be used.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;KG</summary>
    <dc:creator>Krzysztof Gołębiowski</dc:creator>
    <dc:date>2013-12-09T09:06:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32248780" />
    <author>
      <name>Chitra Thambirajan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32248780</id>
    <updated>2013-12-09T05:58:26Z</updated>
    <published>2013-12-09T05:58:26Z</published>
    <summary type="html">Hi Meera,&lt;br /&gt;&lt;br /&gt;Thank you for your detailed explanation.Will give a try and update you.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Chitra</summary>
    <dc:creator>Chitra Thambirajan</dc:creator>
    <dc:date>2013-12-09T05:58:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32211933" />
    <author>
      <name>Meera Prince</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32211933</id>
    <updated>2013-12-06T15:45:58Z</updated>
    <published>2013-12-06T15:45:58Z</published>
    <summary type="html">Hi&lt;br /&gt;&lt;br /&gt;I understand that  you already have CAS in one server and your liferay in other server.&lt;br /&gt; &lt;br /&gt;First make sure stand alone CAS is working or not.&lt;br /&gt;&lt;br /&gt;means access your https://domainname.com/cas/login&lt;br /&gt;&lt;br /&gt;enter credentials  then you should get login success.. similarly you have to access https://domainname.com/cas/logout and it should log out success.&lt;br /&gt;&lt;br /&gt;tell me your cas application context path...&lt;br /&gt;&lt;br /&gt;Once cas working fine now we want use CAS for liferay means you will provide user credentils from liferay data base &lt;br /&gt;&lt;br /&gt;Open you existed CAS application deploymentContext.xml    file which in WEB-INF/lib  &lt;br /&gt;&lt;br /&gt;create data source for your liferay data base i.e lportal&lt;br /&gt;&lt;br /&gt;&amp;lt;bean id=&amp;#34;dataSource&amp;#34; class=&amp;#34;org.apache.commons.dbcp.BasicDataSource&amp;#34;&amp;gt;&lt;br /&gt;			&amp;lt;property name=&amp;#34;driverClassName&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;value&amp;gt;com.mysql.jdbc.Driver&amp;lt;/value&amp;gt;&lt;br /&gt;			&amp;lt;/property&amp;gt;&lt;br /&gt;			&amp;lt;property name=&amp;#34;url&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;value&amp;gt;jdbc:mysql://localhost:3306/watsonportal2&amp;lt;/value&amp;gt;&lt;br /&gt;			&amp;lt;/property&amp;gt;&lt;br /&gt;			&amp;lt;property name=&amp;#34;username&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;value&amp;gt;root&amp;lt;/value&amp;gt;&lt;br /&gt;			&amp;lt;/property&amp;gt;&lt;br /&gt;			&amp;lt;property name=&amp;#34;password&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;value&amp;gt;&amp;lt;/value&amp;gt;&lt;br /&gt;			&amp;lt;/property&amp;gt;&lt;br /&gt;		&amp;lt;/bean&amp;gt;&lt;br /&gt;&lt;br /&gt;and add Authenticate handler indeploymentContext.xml&lt;br /&gt;&lt;br /&gt;&amp;lt;property name=&amp;#34;authenticationHandlers&amp;#34;&amp;gt;&lt;br /&gt;			&amp;lt;list&amp;gt;&lt;br /&gt;				&amp;lt;bean class=&amp;#34;org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler&amp;#34;&lt;br /&gt;					p:httpClient-ref=&amp;#34;httpClient&amp;#34; /&amp;gt;&lt;br /&gt;				&amp;lt;bean class=&amp;#34;org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationSHA1Base64&amp;#34;&amp;gt;&lt;br /&gt;					&amp;lt;property name=&amp;#34;dataSource&amp;#34; ref=&amp;#34;dataSource&amp;#34;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;					&amp;lt;property name=&amp;#34;sql&amp;#34; value=&amp;#34;SELECT password_ from User_ where lower(emailAddress) = lower(?)&amp;#34;&amp;gt;&amp;lt;/property&amp;gt;&lt;br /&gt;				&amp;lt;/bean&amp;gt;&lt;br /&gt;			&amp;lt;/list&amp;gt;&lt;br /&gt;&amp;lt;/property&amp;gt;&lt;br /&gt;&lt;br /&gt;and Liferay used  SHA1Base64 w need implement class QueryDatabaseAuthenticationSHA1Base64.java&lt;br /&gt;&lt;br /&gt;see this post&lt;br /&gt;&lt;br /&gt;https://www.liferay.com/community/forums/-/message_boards/message/4505633&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;once you done this in your existed cas server &lt;br /&gt;now add cas-client-core-3.1.10.jar file in liferay portal  tomcat/lib/ext &lt;br /&gt;now configure your CAS server deatils in liferay from Admin screen go to portal setting and enable cass provide cas login and cas log out urls&lt;br /&gt;&lt;br /&gt;In my www.liferaysavvy.com    go to Cas Problems and Solition download entire zip file from that take cas-server-support-jdbc-3.4.11.jar add to your cas application lib directory in that i implemented QueryDatabaseAuthenticationSHA1Base64.java&lt;br /&gt;&lt;br /&gt;and add above authentication handler to your cas deployemnt context  for reference see my dowloaded cas-web  deploymentContext.xml&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and you need to add keystore certificate that you have used for your cas same certificate you need to add for liferay used jre using following command&lt;br /&gt;&lt;br /&gt;keytool -import -alias tomcat1 -file ./server1.cert -keypass changeit -keystore &amp;#34;C:/Program Files/Java/jdk1.6.0_43/jre/lib/security/cacerts&amp;#34;&lt;br /&gt;&lt;br /&gt;make sure your liferay server using which JRE in that jre/lib/security   you have to add keystore file</summary>
    <dc:creator>Meera Prince</dc:creator>
    <dc:date>2013-12-06T15:45:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32211456" />
    <author>
      <name>Chitra Thambirajan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32211456</id>
    <updated>2013-12-06T15:08:58Z</updated>
    <published>2013-12-06T15:08:58Z</published>
    <summary type="html">Hi Meera,&lt;br /&gt;&lt;br /&gt;Thank you very much for your reply.&lt;br /&gt;To say the truth I have referred all the links before except the Liferay &amp;#34;CAS Issues and Solutions&amp;#34;.&lt;br /&gt;Actually I do not understand anything from this.&lt;br /&gt;Every one is saying about building and deploying cas-war and enabling SSL and etc...&lt;br /&gt;&lt;br /&gt;Let me clearly explain about my liferay set up and my queries,&lt;br /&gt;&lt;ul&gt;&lt;li&gt;In Liferay I have already implemented SSL and imported our domain CA certificate and it is working fine with &amp;#39;https&amp;#39; protocol&lt;/li&gt;&lt;li&gt;We have installed and configured CAS in separate server and its working fine for our external Java/Non java applications.&lt;/li&gt;&lt;li&gt;Liferay 6.x versions are CASified by default (refer http://www.liferayaddict.com/home/-/blogs/51443;jsessionid=EBF26B4A2CD1B6B518CC8B14CDAB68B8 , https://wiki.jasig.org/display/CAS/CASifying+Applications)&lt;/li&gt;&lt;li&gt;Here my query is,why should I deploy cas-web.war..?&lt;/li&gt;&lt;li&gt;And what needs to be done for enabling CAS authentication in my Liferay setup...?&lt;/li&gt;&lt;/ul&gt; &lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;Chitra</summary>
    <dc:creator>Chitra Thambirajan</dc:creator>
    <dc:date>2013-12-06T15:08:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32208855" />
    <author>
      <name>Meera Prince</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32208855</id>
    <updated>2013-12-06T13:40:21Z</updated>
    <published>2013-12-06T13:40:21Z</published>
    <summary type="html">Hi &lt;br /&gt;&lt;br /&gt;You need add trusted keystore certificate to liferay used JRE.&lt;br /&gt;&lt;br /&gt;Here the same key store certificate should be available to both servers JRE&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.liferaysavvy.com/2012/09/liferay-cas-issues-and-solutions.html"&gt;http://www.liferaysavvy.com/2012/09/liferay-cas-issues-and-solutions.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Meera Prince&lt;br /&gt;&lt;a href="http://www.liferaysavvy.com"&gt;http://www.liferaysavvy.com&lt;/a&gt;</summary>
    <dc:creator>Meera Prince</dc:creator>
    <dc:date>2013-12-06T13:40:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32208820" />
    <author>
      <name>Meera Prince</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32208820</id>
    <updated>2013-12-06T13:37:19Z</updated>
    <published>2013-12-06T13:37:19Z</published>
    <summary type="html">HI&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.liferay.com/community/wiki/-/wiki/Main/CAS+Liferay+6+Integration"&gt;https://www.liferay.com/community/wiki/-/wiki/Main/CAS+Liferay+6+Integration&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.liferay.com/community/wiki/-/wiki/Main/Single+SignOn+-+Integrating+Liferay+With+CAS+Server"&gt;https://www.liferay.com/community/wiki/-/wiki/Main/Single+SignOn+-+Integrating+Liferay+With+CAS+Server&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.liferay.com/marketplace/-/mp/application/15194077"&gt;https://www.liferay.com/marketplace/-/mp/application/15194077&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://www.liferay.com/community/wiki/-/wiki/Main/CAS++Authentication+using+multiple+Ldap+Servers"&gt;https://www.liferay.com/community/wiki/-/wiki/Main/CAS++Authentication+using+multiple+Ldap+Servers&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://content.liferay.com/4.3/doc/installation/liferay_4_installation_guide/multipage/ch05s04.html"&gt;http://content.liferay.com/4.3/doc/installation/liferay_4_installation_guide/multipage/ch05s04.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Meera Prince&lt;br /&gt;&lt;a href="http://www.liferaysavvy.com"&gt;http://www.liferaysavvy.com&lt;/a&gt;</summary>
    <dc:creator>Meera Prince</dc:creator>
    <dc:date>2013-12-06T13:37:19Z</dc:date>
  </entry>
  <entry>
    <title>Integrating Liferay with exsiting CAS server</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32202745" />
    <author>
      <name>Chitra Thambirajan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=32202745</id>
    <updated>2013-12-06T10:15:53Z</updated>
    <published>2013-12-06T10:15:53Z</published>
    <summary type="html">Hi All,&lt;br /&gt;&lt;br /&gt;This is regarding CAS integration with Liferay portal.Am using Liferay tomcat server 6.1 ce ga3 server.&lt;br /&gt;We have already installed and configured CAS and Microsoft AD LDAP SSO is working fine with our Java/non java applications.&lt;br /&gt;&lt;br /&gt;Now we need to add liferay also in that list.&lt;br /&gt;I have just enabled CAS authentication in Liferay portal settings page and given CAS login and logout url.&lt;br /&gt;Also created a entry in CAS manage server page.&lt;br /&gt;&lt;br /&gt;After that when ever I enter http://localhost:8080 its redirecting to CAS but am getting an error stating that,my application is not added into CAS server.&lt;br /&gt;But I have added the liferay URL in the CAS manage page.&lt;br /&gt;&lt;br /&gt;I do not know what am missing..&lt;br /&gt;Can anyone please guide me to complete this.&lt;br /&gt;If anyone know how to configure Liferay with the existing CAS please guide me with the steps/document..&lt;br /&gt;&lt;br /&gt;Any help would be appreciated.Thanks in advance.&lt;br /&gt;&lt;br /&gt;Chitra</summary>
    <dc:creator>Chitra Thambirajan</dc:creator>
    <dc:date>2013-12-06T10:15:53Z</dc:date>
  </entry>
</feed>
