Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Liferay: LDAP Authentication not working

LDAP Authentication has been enabled. Test LDAP Connection returns successful. Test LDAP Users returns with a list of users. Test LDAP Groups is successful as well.

I sign out of [email protected] and try logging in as on of the users returned from "Test LDAP Users." Authentication fails.

Liferay throws authentication fails very quickly as if it did not even check against Active Directory.

Any suggestions? Thanks!

like image 898
Bruno Avatar asked Dec 10 '25 14:12

Bruno


1 Answers

Liferay does not connect to LDAP to do authentication. It imports LDAP entities (user/groups) into it's own db. Only after import you can authenticate with user from LDAP (Liferay's copy of user).

How did you setup LDAP import setting? On startup? Periodically?

UPDATE:

  • Do you have errors in logs regarding ldap import?
  • Which version of Liferay do you use?
  • Do you have export to ldap enabled? (that never worked for me, meaning import failed because of export)
like image 185
Martin Gamulin Avatar answered Dec 12 '25 09:12

Martin Gamulin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!