Question

I tried using portal-ext.properties with values below.

Its still not allowing user to login.

I get authentication failed error.

When I check DB I do not see user imported.

portal-ext.properties:

company.security.auth.type=screenName

ldap.auth.enabled=true ldap.auth.required=true

ldap.auth.method=bind

ldap.import.enabled=false ldap.import.on.startup=false
ldap.import.method=user

ldap.password.policy.enabled=false

ldap.import.user.password.enabled=true

ldap.import.user.password.autogenerated=false

ldap.export.enabled=false

ldap.base.provider.url.0=ldap://host:port

ldap.base.dn.0=DC=companyName,DC=com

ldap.security.principal.0=domainname/myusername

ldap.security.credentials.0=mypassword

ldap.auth.search.filter.0=(&(objectclass=person)(sAMAccountName=@screen_name@))

ldap.user.mappings.0=emailAddress=mail\nfirstName=givenName\nlastName=sn\npassword=userPassword\nscreenName=sAMAccountName\n

ldap.import.user.search.filter.0=(objectClass=organizationalPerson)

users.screen.name.allow.numeric=true

users.screen.name.validator=com.liferay.portal.security.auth.DefaultScreenNameValidator

Was it helpful?

Solution

The best way is define your own portal-ext.properties and overwrite properties for LDAP and if you need a SSO you can configure here a CAS too. the Liferay User Guide, explain about use this portal-ext.properties

So look up all properties you have for ldap and you have to overwrite: and all properties you have for CAS and you have to overwrite:

After you create your portal-ext.properties put in \webapps\ROOT\WEB-INF\classes and reboot.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top