Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66210

javax.naming.NameNotFoundException: [LDAP: error code 32

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • ldap-plugin

      We have a problem with ldap login after update from 2.277.3 to 2.289.2

      We are using Azure AD domain LDAP

      jenkins_1 | 2021-03-25 08:39:52.637+0000 [id=13] SEVERE o.s.s.w.a.AbstractAuthenticationProcessingFilter#doFilter: An internal error occurred while trying to authenticate the user. 2
      jenkins_1 | javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03100238, problem 2001 (NO_OBJECT), data 0, best match of: 3
      jenkins_1 |      'DC=company,DC=eu' 4
      jenkins_1 | ]; remaining name '/' 5
      jenkins_1 |      at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3286) 6jenkins_1 | at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3207) 7
      jenkins_1 |      at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2998) 8jenkins_1 | at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1874) 9
      jenkins_1 |      at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1797) 10jenkins_1 | at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1814) 11
      jenkins_1 |      at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:418) 12
      jenkins_1 |      at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:396) 13
      jenkins_1 |      at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:297) 14
      jenkins_1 |      at org.springframework.security.ldap.SpringSecurityLdapTemplate.searchForSingleEntryInternal(SpringSecurityLdapTemplate.java:271) 15
      jenkins_1 |      at org.springframework.security.ldap.SpringSecurityLdapTemplate.lambda$searchForSingleEntry$3(SpringSecurityLdapTemplate.java:260) 16
      jenkins_1 |      at org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:817) 17
      jenkins_1 | Caused: org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03100238, problem 2001 (NO_OBJECT), data 0, best match of: 18
      jenkins_1 |      'DC=company,DC=eu' 19
      jenkins_1 | ]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03100238, problem 2001 (NO_OBJECT), data 0, best match of: 20
      jenkins_1 |      'DC=company,DC=eu' 21
      jenkins_1 | ]; remaining name '/' 22
      jenkins_1 |      at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:183) 23
      jenkins_1 |      at org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:820) 24
      jenkins_1 |      at org.springframework.ldap.core.LdapTemplate.executeReadOnly(LdapTemplate.java:803) 25
      jenkins_1 |      at org.springframework.security.ldap.SpringSecurityLdapTemplate.searchForSingleEntry(SpringSecurityLdapTemplate.java:260) 26
      jenkins_1 |      at org.springframework.security.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:100) 27
      jenkins_1 |      at org.springframework.security.ldap.authentication.BindAuthenticator.authenticate(BindAuthenticator.java:82) 28
      jenkins_1 |      at jenkins.security.plugins.ldap.BindAuthenticator2.authenticate(BindAuthenticator2.java:50) 29
      jenkins_1 |      at org.springframework.security.ldap.authentication.LdapAuthenticationProvider.doAuthentication(LdapAuthenticationProvider.java:174) 30
      jenkins_1 | Caused: org.springframework.security.authentication.InternalAuthenticationServiceException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03100238, problem 2001 (NO_OBJECT), data 0, best match of: 31
      jenkins_1 |      'DC=company,DC=eu' 32
      jenkins_1 | ]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03100238, problem 2001 (NO_OBJECT), data 0, best match of: 33
      jenkins_1 |      'DC=company,DC=eu' 34
      jenkins_1 | ]; remaining name '/' 35
      jenkins_1 |      at org.springframework.security.ldap.authentication.LdapAuthenticationProvider.doAuthentication(LdapAuthenticationProvider.java:190)

            Unassigned Unassigned
            johny2000uwb Zdenek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: