Bruno
Bruno

Reputation: 6449

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!

Upvotes: 3

Views: 3339

Answers (3)

nik1987
nik1987

Reputation: 11

I also suffered with this problem before. I solved it now.

Do you enable the Export of LDAP. How you are doing the ldap configuration if you are using control panel-> Portal Setting then
You can check the search Filter of User portion and set objectClass=inetOrgPerson

Upvotes: 1

Martin Gamulin
Martin Gamulin

Reputation: 3865

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)

Upvotes: 4

Brian Desmond
Brian Desmond

Reputation: 4503

Usually the best way to start troubleshooting these things is to get a network trace with something like WireShark and see what calls are being made as well as the corresponding replies.

Upvotes: 0

Related Questions