Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-97833

Test LDAP Users fails after connected to the LDAP server on Microsoft AD


    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.0.X, 7.1.X, 7.2.X, Master
    • Fix Version/s: None
    • Component/s: Application Security
    • Labels:
    • Fix Priority:


      Steps to reproduce:

      1. Go to the Windows Server 2003 VM
      2. Navigate to: Control Panel> Administrative Tools> Active Directory users and Computers
      3. Clicks the Users folder and go to New> InetOrgPerson
      4. Add a user with a password(Disabled and not defined of Password Policy on DefaultDomain Security Setting)
      5. Navigate to portal, Control Panel> Settings> Authentication> LDAP
      6. Add an LDAP Server and select Microsoft Active Directory Server
      7. Type Base Provider URL, Base DN, Principal and Credentials, and click on Test LDAP Connections to make sure Liferay has successfully connected to the LDAP server.
      8. Type the value in Users and click Test LDAP Users.

      Actual Result:
      Portlet is temporarily unavailable. message displays on the page and throws following error.

      2019-07-04 10:17:55.652 ERROR [http-nio-8080-exec-2][render_portlet_jsp:131] null
      javax.naming.NamingException: [LDAP: error code 1 - 00000000: LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, vece_]; remaining name 'dc=mydomain,dc=com' [Sanitized]
              at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3175)
              at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3081)
              at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2888)
              at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1846)
              at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1769)
              at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:392)
              at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:358)
              at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:341)
              at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:267)
              at com.liferay.portal.security.ldap.internal.DefaultPortalLDAP.searchLDAP(DefaultPortalLDAP.java:982)
              at com.liferay.portal.security.ldap.internal.DefaultPortalLDAP.getUsers(DefaultPortalLDAP.java:756)
              at com.liferay.portal.settings.authentication.ldap.web.internal.util.PortalLDAPUtil.getUsers(PortalLDAPUtil.java:196)
              at org.apache.jsp.com_liferay_portal_settings_web.test_005fldap_005fusers_jsp._jspService(test_005fldap_005fusers_jsp.java:315)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:319)

      Note: The issue can't be reproduced on Apache LDAP.


        1. LDAP Connected.png
          LDAP Connected.png
          7 kB
        2. LDAPUsers.png
          28 kB
        3. Test LDAP Users.png
          Test LDAP Users.png
          10 kB



            • Assignee:
              linda.sui Linda Sui
              linda.sui Linda Sui
              Participants of an Issue:
              Recent user:
              Linda Sui
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created:
                Days since last comment:
                1 year, 5 weeks, 3 days ago


                Version Package