legacy-knowledge-base
公開されました Jun. 30, 2025

LDAPによるユーザーデータの更新

written-by

Sergio Alonso

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を通して、ユーザーとグループのインポートを有効にしています。
  • Active Directory: 電子メールやユーザー名など、ユーザーデータが変更されても更新されないことが確認されていますが、インポートは完全に動作します。

Environment

  • Liferay DXP LDAP が設定されています。

解決策

  • LDAP を通してユーザーをインポートする場合、システムからユーザーを取得し、インポートされたユーザーが新規のユーザーであるか、既存のユーザーであるかを選択するために、2つの方法で比較します。 この2つの方法は、 スクリーンネームEメールによるものです。
  • Liferay DXP インスタンスには、同じ スクリーンネーム と同じ メールを持つユーザーが存在しないように、これら両方のユーザー属性にはユニークな制約があります。
    • ix_eec1e477 (スクリーンネーム) と ix_6c9f41d8 (メール) です。
  • また、次の2つの特性も関連しています:
#
# Set this to true to always autogenerate user screen names even if the user
# gives a specific user screen name. If this is set to true, the LDAP
# importer will fetch users by their email address even if the property
# "company.security.auth.type" is set to screenName.
#
# Env: LIFERAY_USERS_PERIOD_SCREEN_PERIOD_NAME_PERIOD_ALWAYS_PERIOD_AUTOGENERATE
#
users.screen.name.always.autogenerate=false
#
# The portal can authenticate users based on their email address, screen
# name, or user ID.
#
# Env: LIFERAY_COMPANY_PERIOD_SECURITY_PERIOD_AUTH_PERIOD_TYPE
#
company.security.auth.type=emailAddress
#company.security.auth.type=screenName
#company.security.auth.type=userId
  • 結論として:
    • Liferay DXPにユーザーを追加した場合、 スクリーンネームメールの両方の属性は、 LDAP を通じて個別に更新することができません。
    • 両方の属性が同時に更新されると、 Liferay DXPに新しいユーザーが追加されます。
    • 残りのユーザー属性は更新可能です。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base