Legacy Knowledge Base
公開されました Jun. 30, 2025

スクリーン名は重複してはならないが、ユーザーによって既に使用されている SAML エラー

Written By

Ricardo Couso

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • Liferayがサービスプロバイダとして動作している場合、一部のユーザはSAML経由でLiferayにログインできません。
  • ログにスクリーンネームの重複に関するエラーがある
    2023-11-30 18:04:53.521 ERROR [ajp-nio-127.0.0.1-8009-exec-2][WebSsoProfileImpl:809] Screen name 12345 must not be duplicate but is already used by user 67890

環境

  • Liferay DXP 7.3、7.4、四半期リリース 2023.Q3、2023.Q4

解像度

  • このエラーは、ログインしようとするユーザが SAML アイデンティティプロバイダによって認識されるが、Liferay 自体が SAML レスポンスの識別子を使用してそのユーザをシステム内で見つけられない場合に発生する。
  • これにより、Liferay は同じ SAML レスポンスの属性を使用してユーザーを作成しようとします。
  • それなら、もし
    • レスポンス中の screenName の属性は、すでに別の既存ユーザーによって取られており
    • the property users.screen.name.always.autogenerate is false (default value)、
    スクリーンネームの衝突があり、エラーがスローされる。
  • この問題を解決するために:
    • Liferay の SAML 構成の属性マッピングを見直す;
    • ID プロバイダが発行する SAML 応答の属性を確認する;
    • Screen Name を Name Identifier Formatとして使用する可能性を見直す。

追加情報

  • SAML 操作中の問題を分析する場合は、以下の DEBUG トレースを有効にすると便利です:
    • com.liferay.saml.opensaml.integration.internal.resolver.DefaultUserResolver
    • com.liferay.saml.opensaml.integration.internal.servlet.profile.WebSsoProfileImpl
    • com.liferay.saml.web.internal.struts.BaseSamlStrutsAction
Did this article resolve your issue ?

Legacy Knowledge Base