PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-26182

Liferay authentication fails for screen name authentication when "mail" attribute is not set in LDAP (AD)

    Details

    • Similar Issues:
      Show 4 results 

      Description

      Context:
      1) A valid user in Active Directory exists
      2) The "mail" entry is missing in the Active Directory for the user
      3) The authentication is set by Screen Name

      When tries to login, the authentication fails. This issue is not occurring in other applications using Active Directory

      LDAP configuration used is attached..

      1. ldap1.png
        10 kB
      2. ldap2.png
        17 kB

        Activity

        Hide
        Alex Weirig added a comment -

        Hello,

        that's because the email is defined as a required field for the LDAP record.

        In your portal-ext.properties you can set the email as optional field. Simply set the following to false.
        #

        1. Set this to false if you want to be able to create users without an email
        2. address. An email address will be automatically assigned to a user based
        3. on the property "users.email.address.auto.suffix".
          #
          users.email.address.required=true

        That should do the trick.

        HTH

        Alex

        Show
        Alex Weirig added a comment - Hello, that's because the email is defined as a required field for the LDAP record. In your portal-ext.properties you can set the email as optional field. Simply set the following to false. # 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 That should do the trick. HTH Alex
        Hide
        Amit Doshi added a comment - - edited

        Sanalkumar Parameswaran, Please discuss this in liferay community forum and also refer the above comment of Alex.

        It can't be considered as an issue. So,This issue will be closed.

        Show
        Amit Doshi added a comment - - edited Sanalkumar Parameswaran, Please discuss this in liferay community forum and also refer the above comment of Alex. It can't be considered as an issue. So,This issue will be closed.
        Hide
        Edward Gonzales added a comment -

        Hello! We plan to remove "Authentication" from the component field from issues that have more than 1 component. This issue has been identified as a candidate. It is recommended that you update any affected filters. Thanks!

        Show
        Edward Gonzales added a comment - Hello! We plan to remove "Authentication" from the component field from issues that have more than 1 component. This issue has been identified as a candidate. It is recommended that you update any affected filters. Thanks!

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 13 weeks, 1 day ago

              Development

                Structure Helper Panel