javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=XXX' ]; remaining name 'OU=users'

JFrog JIRA | Frederic Simon | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    For example if the search base is ou=people|ou=users|ou=externals and ou=users does not exists in the LDAP server the ou=externals will never be used. It cannot be done dynamically on user login, since it will keep trying for all login and slows down dramatically the login process. It should be solve with an error message during LDAP configuration test and save. Exception thrown: 2011-09-26 11:57:03,693 ["ajp-bio-8019"-exec-285] [ERROR] (o.a.s.l.ArtifactoryLdapAuthenticationProvider:207) - Unexpected exception in LDAP authentication: org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=XXX' ]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=XXX' ]; remaining name 'OU=users' at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:172) [spring-ldap-core-1.3.0.RELEASE.jar:1.3.0.RELEASE] at org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:810) [spring-ldap-core-1.3.0.RELEASE.jar:1.3.0.RELEASE] at org.springframework.ldap.core.LdapTemplate.executeReadOnly(LdapTemplate.java:793) [spring-ldap-core-1.3.0.RELEASE.jar:1.3.0.RELEASE] at org.springframework.security.ldap.SpringSecurityLdapTemplate.searchForSingleEntry(SpringSecurityLdapTemplate.java:195) [spring-security-ldap-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.security.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:116) [spring-security-ldap-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.artifactory.security.ldap.ArtifactoryBindAuthenticator.authenticate(ArtifactoryBindAuthenticator.java:144) [artifactory-core-2.3.4.1.jar:na] at org.artifactory.security.ldap.ArtifactoryLdapAuthenticationProvider.authenticate(ArtifactoryLdapAuthenticationProvider.java:143) [artifactory-core-2.3.4.1.jar:na] at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:130) [spring-security-core-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.artifactory.security.RealmAwareAuthenticationManager.doAuthentication(RealmAwareAuthenticationManager.java:72) [artifactory-core-2.3.4.1.jar:na] at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48) [spring-security-core-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.artifactory.security.PasswordDecryptingManager.authenticate(PasswordDecryptingManager.java:70) [artifactory-core-2.3.4.1.jar:na] at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:142) [spring-security-web-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:86) [artifactory-web-application-2.3.4.1.jar:na] at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:126) [artifactory-web-application-2.3.4.1.jar:na] at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:170) [artifactory-web-application-2.3.4.1.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:148) [artifactory-web-application-2.3.4.1.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:116) [artifactory-web-application-2.3.4.1.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.11] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.11] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.3.4.1.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.11] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.11] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:66) [artifactory-web-application-2.3.4.1.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.11] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.11] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) [catalina.jar:7.0.11] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) [catalina.jar:7.0.11] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498) [catalina.jar:7.0.11] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) [catalina.jar:7.0.11] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [catalina.jar:7.0.11] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.11] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:394) [catalina.jar:7.0.11] at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:294) [tomcat-coyote.jar:7.0.11] at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:183) [tomcat-coyote.jar:7.0.11] at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:169) [tomcat-coyote.jar:7.0.11] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) [tomcat-coyote.jar:7.0.11] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.6.0_20] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.6.0_20] at java.lang.Thread.run(Thread.java:636) [na:1.6.0_20] Caused by: javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=XXX'

    JFrog JIRA | 5 years ago | Frederic Simon
    javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=XXX' ]; remaining name 'OU=users'
  2. 0

    For example if the search base is ou=people|ou=users|ou=externals and ou=users does not exists in the LDAP server the ou=externals will never be used. It cannot be done dynamically on user login, since it will keep trying for all login and slows down dramatically the login process. It should be solve with an error message during LDAP configuration test and save. Exception thrown: 2011-09-26 11:57:03,693 ["ajp-bio-8019"-exec-285] [ERROR] (o.a.s.l.ArtifactoryLdapAuthenticationProvider:207) - Unexpected exception in LDAP authentication: org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=XXX' ]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=XXX' ]; remaining name 'OU=users' at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:172) [spring-ldap-core-1.3.0.RELEASE.jar:1.3.0.RELEASE] at org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:810) [spring-ldap-core-1.3.0.RELEASE.jar:1.3.0.RELEASE] at org.springframework.ldap.core.LdapTemplate.executeReadOnly(LdapTemplate.java:793) [spring-ldap-core-1.3.0.RELEASE.jar:1.3.0.RELEASE] at org.springframework.security.ldap.SpringSecurityLdapTemplate.searchForSingleEntry(SpringSecurityLdapTemplate.java:195) [spring-security-ldap-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.security.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:116) [spring-security-ldap-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.artifactory.security.ldap.ArtifactoryBindAuthenticator.authenticate(ArtifactoryBindAuthenticator.java:144) [artifactory-core-2.3.4.1.jar:na] at org.artifactory.security.ldap.ArtifactoryLdapAuthenticationProvider.authenticate(ArtifactoryLdapAuthenticationProvider.java:143) [artifactory-core-2.3.4.1.jar:na] at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:130) [spring-security-core-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.artifactory.security.RealmAwareAuthenticationManager.doAuthentication(RealmAwareAuthenticationManager.java:72) [artifactory-core-2.3.4.1.jar:na] at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48) [spring-security-core-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.artifactory.security.PasswordDecryptingManager.authenticate(PasswordDecryptingManager.java:70) [artifactory-core-2.3.4.1.jar:na] at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:142) [spring-security-web-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:86) [artifactory-web-application-2.3.4.1.jar:na] at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:126) [artifactory-web-application-2.3.4.1.jar:na] at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:170) [artifactory-web-application-2.3.4.1.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:148) [artifactory-web-application-2.3.4.1.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:116) [artifactory-web-application-2.3.4.1.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.11] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.11] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.3.4.1.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.11] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.11] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:66) [artifactory-web-application-2.3.4.1.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.11] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.11] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) [catalina.jar:7.0.11] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) [catalina.jar:7.0.11] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498) [catalina.jar:7.0.11] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) [catalina.jar:7.0.11] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [catalina.jar:7.0.11] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.11] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:394) [catalina.jar:7.0.11] at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:294) [tomcat-coyote.jar:7.0.11] at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:183) [tomcat-coyote.jar:7.0.11] at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:169) [tomcat-coyote.jar:7.0.11] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) [tomcat-coyote.jar:7.0.11] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.6.0_20] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.6.0_20] at java.lang.Thread.run(Thread.java:636) [na:1.6.0_20] Caused by: javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=XXX'

    JFrog JIRA | 5 years ago | Frederic Simon
    javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=XXX' ]; remaining name 'OU=users'

    Root Cause Analysis

    1. javax.naming.NameNotFoundException

      [LDAP: error code 32 - 0000208D: NameErr: DSID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=XXX' ]; remaining name 'OU=users'

      at org.springframework.ldap.support.LdapUtils.convertLdapException()
    2. spring-ldap-core
      LdapTemplate.executeReadOnly
      1. org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:172)[spring-ldap-core-1.3.0.RELEASE.jar:1.3.0.RELEASE]
      2. org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:810)[spring-ldap-core-1.3.0.RELEASE.jar:1.3.0.RELEASE]
      3. org.springframework.ldap.core.LdapTemplate.executeReadOnly(LdapTemplate.java:793)[spring-ldap-core-1.3.0.RELEASE.jar:1.3.0.RELEASE]
      3 frames
    3. spring-security-ldap
      FilterBasedLdapUserSearch.searchForUser
      1. org.springframework.security.ldap.SpringSecurityLdapTemplate.searchForSingleEntry(SpringSecurityLdapTemplate.java:195)[spring-security-ldap-3.0.5.RELEASE.jar:3.0.5.RELEASE]
      2. org.springframework.security.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:116)[spring-security-ldap-3.0.5.RELEASE.jar:3.0.5.RELEASE]
      2 frames
    4. org.artifactory.security
      ArtifactoryLdapAuthenticationProvider.authenticate
      1. org.artifactory.security.ldap.ArtifactoryBindAuthenticator.authenticate(ArtifactoryBindAuthenticator.java:144)[artifactory-core-2.3.4.1.jar:na]
      2. org.artifactory.security.ldap.ArtifactoryLdapAuthenticationProvider.authenticate(ArtifactoryLdapAuthenticationProvider.java:143)[artifactory-core-2.3.4.1.jar:na]
      2 frames
    5. spring-security-core
      ProviderManager.doAuthentication
      1. org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:130)[spring-security-core-3.0.5.RELEASE.jar:3.0.5.RELEASE]
      1 frame
    6. org.artifactory.security
      RealmAwareAuthenticationManager.doAuthentication
      1. org.artifactory.security.RealmAwareAuthenticationManager.doAuthentication(RealmAwareAuthenticationManager.java:72)[artifactory-core-2.3.4.1.jar:na]
      1 frame
    7. spring-security-core
      AbstractAuthenticationManager.authenticate
      1. org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)[spring-security-core-3.0.5.RELEASE.jar:3.0.5.RELEASE]
      1 frame
    8. org.artifactory.security
      PasswordDecryptingManager.authenticate
      1. org.artifactory.security.PasswordDecryptingManager.authenticate(PasswordDecryptingManager.java:70)[artifactory-core-2.3.4.1.jar:na]
      1 frame
    9. Spring Security
      BasicAuthenticationFilter.doFilter
      1. org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:142)[spring-security-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
      1 frame
    10. org.artifactory.webapp
      AccessFilter.doFilter
      1. org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:86)[artifactory-web-application-2.3.4.1.jar:na]
      2. org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:126)[artifactory-web-application-2.3.4.1.jar:na]
      3. org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:170)[artifactory-web-application-2.3.4.1.jar:na]
      4. org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:148)[artifactory-web-application-2.3.4.1.jar:na]
      5. org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:116)[artifactory-web-application-2.3.4.1.jar:na]
      5 frames
    11. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.11]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.11]
      2 frames
    12. org.artifactory.webapp
      RequestFilter.doFilter
      1. org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54)[artifactory-web-application-2.3.4.1.jar:na]
      1 frame
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.11]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.11]
      2 frames
    14. org.artifactory.webapp
      ArtifactoryFilter.doFilter
      1. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:66)[artifactory-web-application-2.3.4.1.jar:na]
      1 frame
    15. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.11]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.11]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)[catalina.jar:7.0.11]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)[catalina.jar:7.0.11]
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498)[catalina.jar:7.0.11]
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)[catalina.jar:7.0.11]
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)[catalina.jar:7.0.11]
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.11]
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:394)[catalina.jar:7.0.11]
      9 frames
    16. org.apache.coyote
      AjpProtocol$AjpConnectionHandler.process
      1. org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:294)[tomcat-coyote.jar:7.0.11]
      2. org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:183)[tomcat-coyote.jar:7.0.11]
      3. org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:169)[tomcat-coyote.jar:7.0.11]
      3 frames
    17. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)[tomcat-coyote.jar:7.0.11]
      1 frame
    18. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[na:1.6.0_20]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[na:1.6.0_20]
      3. java.lang.Thread.run(Thread.java:636)[na:1.6.0_20]
      3 frames