Book Image

Liferay 6.x Portal Enterprise Intranets Cookbook

Book Image

Liferay 6.x Portal Enterprise Intranets Cookbook

Overview of this book

Table of Contents (19 chapters)
Liferay 6.x Portal Enterprise Intranets Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

CAS and the Liferay user's database


The following recipe presents an idea on how to use the Liferay user functionality so it is authenticated by the CAS server. This idea may be used instead of LDAP or Active Directory systems. In small companies, where Liferay will be the main system that contains all user details, it would be a great concept to implement SSO in the following way:

  • Liferay provides user details such as login and password to the CAS server

  • When a user tries to login to the Liferay Portal, the CAS server asks the Liferay database and checks the user's data correctness

Getting ready

This recipe is in continuation with the previous one. To be ready, check whether the CAS server is correctly installed and is communicating with Liferay (the CAS client). To check it, try authenticating yourself as a default Liferay user via CAS by invoking https://localhost:8443/cas-server-webapp-4.0.0/login.

How to do it…

Since 6.2 version, Liferay uses the PBKDF2WithHmacSHA1/160/128000 algorithm for...