Liferay Integration with OpenAM using Active Directory

懵懂的女人 提交于 2019-12-12 02:51:52

问题


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 -

  1. Configure AD in Liferay and enable it
  2. Configure SSO in Liferay through portal-ext file
  3. 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 -

  1. Liferay + AD
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!