Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Liferay 6.x Portal Enterprise Intranets Cookbook
Liferay 6.x Portal Enterprise Intranets Cookbook

Liferay 6.x Portal Enterprise Intranets Cookbook: Over 60 hands-on recipes to help you efficiently create complex and highly personalized enterprise intranet solutions with Liferay Portal 6.x CE

eBook
$9.99 $43.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Liferay 6.x Portal Enterprise Intranets Cookbook

Chapter 2. Authentication and Registration Process

In this chapter, we will cover the following topics:

  • Changing the default authentication settings
  • Setting up e-mail notifications
  • Customizing the registration form
  • Overriding the default login page with the administrator-defined page
  • Setting up a password policy
  • Integration with CAS SSO
  • CAS and Liferay users' database
  • Liferay and the LDAP integration
  • The magic trio: Liferay, CAS, and LDAP

Introduction

The authentication and registration processes are very important to build intranet systems. In this type of software, it is necessary to protect data against non-authorized users. We decided to describe typical solutions that are commonly used in many projects. It will help you configure the out-of-the box authentication system in Liferay and define the password policy. You will also learn about integration with the most popular single sign-on mechanism (SSO). The purpose of an SSO is to permit a user to access multiple applications while providing their credentials only once. The Central Authentication Service (CAS) is a single sign-on protocol for the Web. It is also a software package that implements this protocol.

Changing the default authentication settings

Liferay provides a built-in authentication mechanism that, by default, allows users to log in using their e-mail address. Additionally, there are a number of functionalities, such as automatic log in or forgotten password functionality, that assist users and help them go through the authentication process. However, in some cases, the standard authentication behavior must be modified.

Getting ready

Log in to Liferay as a user with administrator credentials. By default, the credentials are as follows:

  • E-mail: test@liferay.com
  • Password: test

How to do it…

In order to change the default authentication settings, perform the following steps:

  1. Log in as an administrator and go to Admin | Control Panel | Configuration | Portal Settings | Authentication section:
    How to do it…
  2. Make sure that you are in the General tab.
  3. Choose the option that you prefer from the Authentication type drop-down list.
  4. Enable/disable the Allow users to automatically login? option.
  5. Enable/disable...

Setting up e-mail notifications

In Liferay, there are four automatically sent e-mail notifications. They are as follows:

  • Account Created Notification, which is sent when a user successfully creates a new account
  • Email Verification Notification, which provides the e-mail verification link and code
  • Password Changed Notification, which informs a user that their password has been changed
  • Password Reset Notification, which enables a user to reset their current password by providing the password reset URL

This recipe provides information on how these default notifications can be customized.

Getting ready

Make sure that the Java mail session is properly configured. To check whether it works, look at portal-ext.properties and find and/or configure the following settings:

mail.session.mail.pop3.host=localhost
mail.session.mail.pop3.password=
mail.session.mail.pop3.port=110
mail.session.mail.pop3.user=
mail.session.mail.smtp.auth=false
mail.session.mail.smtp.host=localhost
mail.session.mail.smtp.password...

Customizing the registration form

The content of the registration form and the behavior of the system after completing the registration process can vary, depending on the system's functional and non-functional requirements. The default configuration of the registration form enables you to gather the data strictly required to create an account. The configuration also provides some additional fields, such as birth date or gender, which may not be always desirable. This recipe describes how to change the default set of registration form fields and modify their basic preferences and system behavior within the registration and authorization processes.

How to do it…

In order to customize the registration form, perform these steps:

  1. Login as an administrator and go to Admin | Control Panel | Configuration | Portal settings | Users:
    How to do it…
  2. Make sure that you are in the Fields tab.
  3. Enable/disable the Terms of Use Required option.
  4. Enable/disable the Autogenerate User Screen Names option.
  5. Enable/disable...

Overriding the default login page with the administrator defined page

Liferay provides the possibility to use or replace the default dialog login feature with a custom login page. The custom page can be used to present some additional information such as instructions, description of benefits, and so on. This recipe provides guidelines on how to set such a page within the intranet.

How to do it…

In order to set a custom page in the login process, follow these steps:

  1. Log in as an administrator and go to Admin | Site Administration | Pages.
  2. Make sure that you are in the Public Pages tab.
  3. Click on the Add page button.
  4. Provide a name for the page (for instance, login).
  5. Enable the Hide from Navigation Menu option.
  6. Click on the Add page button. The new page will be created.
  7. Go to the page's details by clicking on the page in the tree that was created and copy the Friendly URL value.
  8. Go to the created page by typing (or pasting) its address in the browser's address bar.
  9. Click on the add button...

Setting up a password policy

The Liferay password policy creator allows you to set the password life cycle and rules of employing it. You can decide whether the password should be changed. You can also specify the password syntax, the expiration rules, the lockout options, and the password history.

The default password policy provided by Liferay is very simple. It enables you to change the password of users and specifies that the reset password link should be valid for one day. This recipe provides a detailed description on how to create a new, more restricted password policy.

The password policy in this example will require the users to provide eight-character passwords, which cannot be found in a dictionary. Users must include numbers and uppercase letters in the password, and it must be changed every sixty days (it should not be possible to set the password that has been used last ten times). Additionally, the system will count the failure login attempts and block the account for 10 minutes...

Introduction


The authentication and registration processes are very important to build intranet systems. In this type of software, it is necessary to protect data against non-authorized users. We decided to describe typical solutions that are commonly used in many projects. It will help you configure the out-of-the box authentication system in Liferay and define the password policy. You will also learn about integration with the most popular single sign-on mechanism (SSO). The purpose of an SSO is to permit a user to access multiple applications while providing their credentials only once. The Central Authentication Service (CAS) is a single sign-on protocol for the Web. It is also a software package that implements this protocol.

Changing the default authentication settings


Liferay provides a built-in authentication mechanism that, by default, allows users to log in using their e-mail address. Additionally, there are a number of functionalities, such as automatic log in or forgotten password functionality, that assist users and help them go through the authentication process. However, in some cases, the standard authentication behavior must be modified.

Getting ready

Log in to Liferay as a user with administrator credentials. By default, the credentials are as follows:

  • E-mail: test@liferay.com

  • Password: test

How to do it…

In order to change the default authentication settings, perform the following steps:

  1. Log in as an administrator and go to Admin | Control Panel | Configuration | Portal Settings | Authentication section:

  2. Make sure that you are in the General tab.

  3. Choose the option that you prefer from the Authentication type drop-down list.

  4. Enable/disable the Allow users to automatically login? option.

  5. Enable/disable the...

Setting up e-mail notifications


In Liferay, there are four automatically sent e-mail notifications. They are as follows:

  • Account Created Notification, which is sent when a user successfully creates a new account

  • Email Verification Notification, which provides the e-mail verification link and code

  • Password Changed Notification, which informs a user that their password has been changed

  • Password Reset Notification, which enables a user to reset their current password by providing the password reset URL

This recipe provides information on how these default notifications can be customized.

Getting ready

Make sure that the Java mail session is properly configured. To check whether it works, look at portal-ext.properties and find and/or configure the following settings:

mail.session.mail.pop3.host=localhost
mail.session.mail.pop3.password=
mail.session.mail.pop3.port=110
mail.session.mail.pop3.user=
mail.session.mail.smtp.auth=false
mail.session.mail.smtp.host=localhost
mail.session.mail.smtp.password...

Customizing the registration form


The content of the registration form and the behavior of the system after completing the registration process can vary, depending on the system's functional and non-functional requirements. The default configuration of the registration form enables you to gather the data strictly required to create an account. The configuration also provides some additional fields, such as birth date or gender, which may not be always desirable. This recipe describes how to change the default set of registration form fields and modify their basic preferences and system behavior within the registration and authorization processes.

How to do it…

In order to customize the registration form, perform these steps:

  1. Login as an administrator and go to Admin | Control Panel | Configuration | Portal settings | Users:

  2. Make sure that you are in the Fields tab.

  3. Enable/disable the Terms of Use Required option.

  4. Enable/disable the Autogenerate User Screen Names option.

  5. Enable/disable the Last...

Left arrow icon Right arrow icon

Description

If you are a Java developer or administrator with a technical background and want to install and configure Liferay Portal as an enterprise intranet, this is the book for you. In short, reusable recipes help you realize business goals as working features in Liferay. This book will also give you useful hints on how to easily improve the default functionality of the system and its performance.

Who is this book for?

If you are a Java developer or administrator with a technical background and want to install and configure Liferay Portal as an enterprise intranet, this is the book for you. In short, reusable recipes help you realize business goals as working features in Liferay. This book will also give you useful hints on how to easily improve the default functionality of the system and its performance.

What you will learn

  • Build a corporate knowledge base for all employees in your organization
  • Configure site and page templates for departments in your company
  • Design and implement roles and permissions to fit your organization
  • Define efficient business processes using XML representation
  • Integrate with LDAP, CAS SSO, and Solr search engine
  • Improve your portal with caching, clustering, indexing, searching, and more
  • Use effective taxonomy and folksonomy to organize documents and articles

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 30, 2015
Length: 300 pages
Edition : 1st
Language : English
ISBN-13 : 9781782164296
Vendor :
Liferay Inc.
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 30, 2015
Length: 300 pages
Edition : 1st
Language : English
ISBN-13 : 9781782164296
Vendor :
Liferay Inc.
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 159.97
Liferay Portal Performance Best Practices
$38.99
Liferay Portal 6.x Enterprise Intranets (Update)
$65.99
Liferay 6.x Portal Enterprise Intranets Cookbook
$54.99
Total $ 159.97 Stars icon
Banner background image

Table of Contents

13 Chapters
1. Installation and Basic Configuration Chevron down icon Chevron up icon
2. Authentication and Registration Process Chevron down icon Chevron up icon
3. Working with a Liferay User / User Group / Organization Chevron down icon Chevron up icon
4. Liferay Site Configuration Chevron down icon Chevron up icon
5. Roles and Permissions Chevron down icon Chevron up icon
6. Documents and Media in Liferay Chevron down icon Chevron up icon
7. Working with Content Chevron down icon Chevron up icon
8. Search and Content Presentation Tools Chevron down icon Chevron up icon
9. Liferay Workflow Capability Chevron down icon Chevron up icon
10. Collaboration Tools Chevron down icon Chevron up icon
11. Quick Tricks and Advanced Knowledge Chevron down icon Chevron up icon
12. Basic Performance Tuning Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8
(4 Ratings)
5 star 75%
4 star 25%
3 star 0%
2 star 0%
1 star 0%
Jens J Jul 03, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I’m new to Liferay and so I bought this book to get basic and detailed information about this system. I had the goal that after reading this book I will have the knowledge for configuration and administration Liferay.In the first chapters the book describes the topics from the installation to the first Liferay site. It’s really well explained and easy to understand. For me it was easy to do my first Liferay installation. Beside this information I was looking for more knowledge about integrating LDAP. In this book the chapter for authentication and registration has in sum 36 pages. The authors gives step by step instructions and “How it works information”. As a user you can do the configuration and know how it works or what happens in the background. For me it was really informative to go through this chapter.When you a working with Liferay for the first time and you plan to configure the first user you will be in contact with the “user”, “user group” and “organization” structure. For me it was new and I had no idea how they work together or how they are interdependent. But in this book there are good examples to understand how to use these functions in a business environment and find a structure for your own company with the necessary roles and rules.In the following chapters the book covers topics like configuring a new site, creating templates, document management and integration workflows. I like to point out the topics live staging and integrating search functionality. For me both are really interesting and helpful for using Liferay as a portal user.If you are using a system like Liferay you will come to a point where you aren’t satisfied with the system performance. This book has an own chapter for “Basic Performance Tuning”. For me it was interesting to go through it. Beside scalability aspects you will find solutions for typical problems like JVM Garbage collection settings to avoid out of memory exceptions.In sum I really enjoyed reading this book. On one hand I had step by step examples to setup and use Liferay and on the other hand I received really informative background information. All in all I can recommend this book to users who are new or still have knowledge in Liferay.
Amazon Verified review Amazon
Pierpaolo Sep 09, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Firstly it's necessary to observe that something like an encyclopedia should be necessary to properly deal the topic "Liferay Portal". Of course resources around the web are generally useful to solve daily problems but, to be honest, Liferay team needs for further effort (because finding dated or non perfect information is really common).In my mind this book is the right tool for people searching for quick and useful information, without losing the possibility to go in depth on important topics, if necessary.In fact, as any cookbook, it doesn't deal with heavy theoretical aspects, but it goes directly to the point by its great number of recipes. On the other hand, it is very common to find an "how it works" paragraph beside a recipe; it analyses important aspects of the previous recipe(s) steps. In other words: a practice to not-mandatory-theory approach.Obviously not all the topic over Liferay are dealt with, but the book is full of recipes for users, developers, systems experts, etc.To provide several example, it writes of any CMS tool (e.g. collaboration), of users, groups, permissions and documents management, of setup and tuning for production environments, of workflow capabilities, etc...
Amazon Verified review Amazon
Vinay Jul 31, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I love this book..Will recommend it to everyonw
Amazon Verified review Amazon
SANTHOSH G May 15, 2016
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Good for beginners
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.