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

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

written-by

Katlyn Lee

knowledge-article-header-disclaimer-how-to

knowledge-article-header-disclaimer

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 同じメール アドレスを持つ 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