Last active
November 12, 2019 01:25
-
-
Save opensourceforlife/5713395 to your computer and use it in GitHub Desktop.
Liferay LDAP properties setup in portal-ext.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ldap.auth.enabled=true | |
ldap.auth.required=true | |
# | |
# Set the values used to connect to a LDAP store. | |
# | |
# The list of properties must end with a subsequent integer (0, 1, etc.) and | |
# it is assumed that the list has reached an end when the pattern or | |
# replacement is not set. | |
# | |
ldap.base.provider.url.0=ldap://localhost:10389 | |
ldap.base.dn.0=ou=users,ou=system | |
ldap.security.principal.0=uid=admin,ou=system | |
ldap.security.credentials.0=secret | |
# | |
# When importing and exporting users, the portal will use this mapping to | |
# connect LDAP user attributes and portal user attributes. | |
# | |
# See com.liferay.portal.model.UserModel for a list of attributes. | |
# | |
ldap.user.mappings.0=screenName=cn\npassword=userPassword\nemailAddress=mail\nfirstName=givenName\nlastName=sn\njobTitle=title | |
# | |
# Set this to true to use the LDAP's password policy instead of the portal | |
# password policy. | |
# | |
#ldap.password.policy.enabled=true | |
# | |
# Active Directory stores information about the user account as a series of | |
# bit fields in the UserAccountControl attribute. | |
# | |
# If you want to prevent disabled accounts from logging into the portal you | |
# need to use a search filter similiar to the following: | |
# (&(objectclass=person)(userprincipalname=@email_address@)(!(UserAccountControl:1.2.840.113556.1.4.803:=2))) | |
# | |
# See the following links: | |
# http://support.microsoft.com/kb/305144/ | |
# http://support.microsoft.com/?kbid=269181 | |
# | |
ldap.auth.search.filter.0=(mail=@email_address@) | |
# | |
# Settings for importing users and groups from LDAP to the portal. These | |
# setttings are not used unless the property "ldap.import.enabled" is set | |
# to true. | |
# | |
ldap.import.user.search.filter.0=(objectClass=inetOrgPerson) | |
ldap.import.group.search.filter.0=(objectClass=groupOfUniqueNames) | |
ldap.group.mappings.0=groupName=cn\ndescription=description\nuser=uniqueMember | |
ldap.user.custom.mappings.0= | |
ldap.contact.mappings.0= | |
ldap.contact.custom.mappings.0= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment