问题
I am configuring Liferay with Open AM using Active Directory as the LDAP Server. The problem I am facing is if i configure OpenAM to authenticate using AD I get the following error in Liferay -
07:52:17,962 DEBUG [http-bio-8080-exec-15][OpenSSOUtil:146] Attributes response code 500
07:52:17,962 DEBUG [http-bio-8080-exec-15][OpenSSOAutoLogin:132] Validating user information for null null with screen name null and email address null
07:52:17,962 ERROR [http-bio-8080-exec-15][AutoLoginFilter:261] Current URL /web/guest/home?p_p_state=maximized&p_p_mode=view&saveLastPath=false&_58_struts_action=%2Flogin%2Flogin&p_p_id=58&p_p_lifecycle=0&_58_redirect=%2Fc generates exception: com.liferay.portal.security.auth.AutoLoginException: java.lang.Exception: Email address is null
On OpenAM side there is no error.
The steps I followed are -
- Configure AD in Liferay and enable it
- Configure SSO in Liferay through portal-ext file
- Enabled pass through authentication in OpenAM.
I dont see any errors in OpenAM logs. The only issue I see is in Liferay logs.
The following works -
- Liferay + AD
- Liferay + OpenAM using OpenDJ
Let me know if anyone knows what can be done to fix the issue.
回答1:
The error you show seam to indicate that the mappping between your openAM server data and the liferay one isn't correct. Look at the properties "open.sso.screen.name.attr" and similar from your portal.
Also keep in mind that you need to activate the ldap sync on your liferay server so the User are created and Liferay can match it with openAM data.
来源:https://stackoverflow.com/questions/25969373/liferay-integration-with-openam-using-active-directory