壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 859|回复: 0

Liferay-cas集成

[复制链接]
发表于 2010/6/1 10:44:13 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
Go to the server.xml file and uncomment the SSL section to open port 8443.

Save.
Download the latest available version of the Liferay-portal-cas-4.3.x.war file from www.liferay/web/guest/downloads.
Rename the file to cas-web.war.
Copy the war file and paste it to the Tomcat webapps directory.
To download the Yale CAS Client 2.0.11 go to http://www.ja-sig.org/products/cas/downloads/index.html.
Create a folder and extract the cas.client zip file into this folder.
Open the folder and navigate to the casclient jar file (cas-client-2.0.11\java\lib).
Copy the file.
Go to the lib file in Tomcat (webapps\ROOT\WEB_INF\lib) and paste the casclient jar file to replace the existing one.
In the command prompt go to the ROOT directory.
Enter the following:
keytool -genkey -alias tomcat -keypass changeit -keyalg RSA
Enter changeit for the password.
Anser the list of questions. Note that the first and last name must be the host name of your server and cannot be an IP address. This is very important because an IP address will fail client hostname verification even if it is correct.

Enter the following command to export he cert you generated from your personal keystore:
keytool -export -alias tomcat -keypass changeit -file server.cert
Enter changeit for the password.
Import the cert into Java's keystore with this command:
keytool -import -alias tomcat -file %FILE_NAME% -keypass changeit -keystore %JAVA_HOME%/jre/lib/security/cacerts
Enter changeit for the password.
Enter yes.

To set up Liferay Portal, navigate to the classes file in Tomcat (webapps\ROOT\WEB_INF\classes).
Create portal-ext.properties if it does not exist yet, somewhere in the server classpath:
Open portal-ext.properties and enter:
cas.auth.enabled=true
If necessary assign appropriate values to the following properties (default values shown below):
# # A user may be authenticated from CAS and not yet exist in the portal. Set # this to true to automatically import users from LDAP if they do not exist # in the portal. # cas.import.from.ldap=false # # Set the default values for the required CAS URLs. # cas.login.url=https://localhost:8443/cas-web/login cas.logout.url=https://localhost:8443/cas-web/logout cas.service.url=http://localhost:8080/c/portal/login cas.validate.url=https://localhost:8443/cas-web/proxyValidate
Save.
Start Tomcat and go to Liferay Portal.
Click Sign In. If everything is set up correctly you will be redirected to the CAS servera

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 16:23 , Processed in 0.010358 second(s), 15 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表