How to configure/integrate ldap with liferay.

Its very easy to integrate/configure ldap with liferay.
To do this you need below:

1. LDAP server(to manage user, groups and authentication)

Follow below link to install Ubuntu in linux ..

http://www.unixmen.com/install-and-configure-openldap-in-ubuntu-15-04-and-debian-8/ 

2. Login liferay as admin and go to control panel> got portal settings > authintication and then configure as below:








































Export Mapping:
Users DN = dc=example,dc=com
User Default Object Classes = top,person,inetOrgPerson,organizationalPerson

User Mapping:
Screen Name =cn
Email Address =mail
Password =userPassword
First Name =givenName
Last Name =sn


Connection:
Base Provider URL=ldap://localhost:389
Base DN=dc=example,dc=com
Principal =cn=admin,dc=example,dc=com
Credentials = ldap admin pass

Users:
Authentication Search Filter=(mail=@email_address@)
Import Search Filter=(objectClass=person)


Finally change the below properties:
ldap.auth.password.encryption.algorithm=SSHA
You can set this in hook properties or globally in portal-setup-wizard.properties

Thanks .............

Comments

Popular posts from this blog

How to run ofbiz as ubuntu Service.

JPA vs Spring JPA vs Spring Data JPA vs Hibernate

Java Array Interview Questions for Entry-Level Developers Part 01