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

LDAPエクスポートに必要なグループマッピング

written-by

Liferay Support

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

この記事では、Active DirectoryユーザーがLiferayプラットフォームにログインしようとする際の1つの問題を解決します。

  1. LiferayがLDAPサーバーで使用できるように設定されている(Userセクションの "Group "属性をマッピングしない)。
  2. LDAPエクスポートが有効になっている
  3. LDAPユーザー「user1」がLiferayにログインできる。
  4. user1がユーザーグループ "Group1 "に参加する。
  5. user1が同じLDAP認証情報を使ってLiferayにログインしようとする。

結果:

残念ながら、ユーザは拒否され、以下のスタックトレースが発生します:

com.liferay.portal.ModelListenerException: javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - invalid type '']; remaining name 'cn=john.johnson,ou=Users,ou=test,dc=test-dev,dc=com'
at com.liferay.portal.model.UserListener.onAfterUpdate(UserListener.java:75)
at com.liferay.portal.model.UserListener.onAfterUpdate(UserListener.java:1)
at com.liferay.portal.model.BaseModelListener.onAfterUpdate(BaseModelListener.java:1)
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:264)
at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticate(UserLocalServiceImpl.java:5012)
at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticateByEmailAddress(UserLocalServiceImpl.java:855)

解決策

LDAPエクスポートを有効にすると、通常、ログイン時にLiferayユーザーの情報がLDAPサーバーにエクスポートされます。 この場合、そのユーザーはLiferayのユーザーグループに属していたため、そのユーザーがログインしようとすると、Liferayはそのユーザーが属していたグループをエクスポートしようとしました。 残念ながら、グループ設定がLiferayでマッピングされていなかったため、ログインと一緒にエクスポートも失敗してしまいました。

解決策は、「設定」-「> 認証」-「> LDAP」-「> (LDAPサーバーの選択)」でユーザーのグループに対するマッピングを設定するだけです。 ユーザー」の項目で、「グループ」フィールドの適切なマッピングを選択します(例:「memberOf」)。

did-this-article-resolve-your-issue

legacy-knowledge-base