Legacy Knowledge Base
公開されました Jul. 2, 2025

同じ電子メール アドレスを持つ LDAP ユーザーのインポート

Written By

Katlyn Lee

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.

問題

  • 同じメール アドレスを持つ LDAP ユーザーをインポートしたいのですが、メール アドレスが重複しているというエラーが発生してインポートに失敗します。
    2021-08-02 16:53:47.766 ERROR [https-jsse-nio-4443-exec-13][LDAPAuth:432] 
    Problem accessing LDAP server

    com.liferay.portal.kernel.exception.UserEmailAddressException$MustNotBeDuplicate

Environment

  • Liferay DXP

解決策

  • この動作は意図的なものであり、Liferay は重複した電子メール アドレスを持つユーザーをサポートしていません。 この動作を回避するには、ユーザーがスクリーンネームで認証されるように設定を変更し、次のポータル プロパティを利用して電子メール アドレスをオプションにすることができます。
            
        #
        # Set this to false if you want to be able to create users without an email
        # address. An email address will be automatically assigned to a user based
        # on the property "users.email.address.auto.suffix".
        #
        users.email.address.required=true
    
        #
        # Set the suffix of the email address that will be automatically generated
        # for a user that does not have an email address. This property is not used
        # unless the property "users.email.address.required" is set to false. The
        # autogenerated email address will be the user ID plus the specified suffix.
        #
        users.email.address.auto.suffix=@no-emailaddress.com
            
Did this article resolve your issue ?

Legacy Knowledge Base