legacy-knowledge-base
公開されました Jul. 2, 2025

LDAPユーザーがログインできない

written-by

Sivakumar Perumal

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • LDAPに存在するユーザーがLiferayにログインできず、サーバーコンソールで以下のエラーが確認されました。
    ERROR [liferay/scheduler_dispatch-4][PortalLDAPImporterImpl:717] Unable to import user CN=abdulfar: null:null:{samaccountname=sAMAccountName: abdulfar}
    com.liferay.portal.DuplicateUserEmailAddressException: {userId=6404764}
    at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:6053)
    at com.liferay.portal.service.impl.UserLocalServiceImpl.addUserWithWorkflow(UserLocalServiceImpl.java:753)
    at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:615)
    at sun.reflect.GeneratedMethodAccessor972.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)

環境

  • Liferay Portal 6.x
  • Liferay DXP 7.x

解決策

  • 説明します: 汎用では、LDAPユーザーがLiferayにログインを行おうとすると、それぞれのユーザー属性がLDAPからLiferayにインポートされます。 インポート中に、属性がユニークであることが検証されます。 Liferayデータベースに既に存在するユーザーの属性値と一致した場合、Duplicate例外がスローされます。
  • 上記のエラーでは、Liferayのデータベースに既に存在するユーザーの属性(メールアドレス)の値が、ログインを行おうとしているLDAPユーザーと一致しています。 そのため、上記のようなエラーが発生し、LDAPユーザーがログインできない状態になります。
  • 各ユーザーの必須属性はユニークでなければならない。
did-this-article-resolve-your-issue

legacy-knowledge-base