javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "deployment.AccountDataImporterWeb.war:main" from Service Module Loader [Root exception is javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1 ]]

Stack Overflow | sam | 3 months ago
  1. 0

    Wildfly 8 and Spring Security authentication issue

    Stack Overflow | 3 months ago | sam
    javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "deployment.AccountDataImporterWeb.war:main" from Service Module Loader [Root exception is javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1 ]]
  2. 0

    LDAP, spring4 security issue, WildFly 8.1.0.Final, [LDAP: error code 49 - Invalid Credentials]

    Stack Overflow | 2 years ago | Sanjeev
    javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
  3. 0

    AuthenticationException LDAP using plain Java

    Stack Overflow | 2 years ago | Robert Hempel
    javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WebSphere and MS ADAM

    Google Groups | 1 decade ago | johan.j...@se.ibm.com
    javax.naming.AuthenticationException: [LDAP: error code 49 - 80090304: LdapErr: DSID-0C090311, comment: AcceptSecurityContext error, data 20ee, va28]
  6. 0

    We have company LDAP server with all users, I have tried to configure Jenkins to use this LDAP database, but user login fails with exception in jenkins.log (see bellow) Problem: Our LDAP identify user by "uid" token, but in log file there is some "userDnuid", which is not supported. There is no possible to configure mapping user to another token. Jenkins configuration: - User search filter: uid={0} ... this explicit setting does not help either ------- WARNING: Failed to bind to LDAP: userDnuid=myname,ou=Account,dc=mycompany,dc=com username=myname javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials] at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3032) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2978) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2780) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2694) at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:306) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:193) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:211) at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) ... INFO: Login attempt failed org.acegisecurity.BadCredentialsException: Bad credentials at org.acegisecurity.providers.ldap.authenticator.BindAuthenticator.authenticate(BindAuthenticator.java:76) at org.acegisecurity.providers.ldap.authenticator.BindAuthenticator2.authenticate(BindAuthenticator2.java:49) at org.acegisecurity.providers.ldap.LdapAuthenticationProvider.retrieveUser(LdapAuthenticationProvider.java:233) at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:119) at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195) at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45) at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)

    Jenkins JIRA | 5 years ago | Radek Chromy
    javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.AuthenticationException

      [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1 ]

      at com.sun.jndi.ldap.LdapCtx.mapErrorCode()
    2. Java RT
      LdapCtxFactory.getInitialContext
      1. com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3135)[rt.jar:1.8.0_60]
      2. com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3081)[rt.jar:1.8.0_60]
      3. com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2883)[rt.jar:1.8.0_60]
      4. com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2797)[rt.jar:1.8.0_60]
      5. com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)[rt.jar:1.8.0_60]
      6. com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)[rt.jar:1.8.0_60]
      7. com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210)[rt.jar:1.8.0_60]
      8. com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)[rt.jar:1.8.0_60]
      9. com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)[rt.jar:1.8.0_60]
      9 frames
    3. JBoss Application Server: Naming Subsystem
      InitialContext.init
      1. org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:114)
      2. org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:116)
      3. org.jboss.as.naming.InitialContext.init(InitialContext.java:99)
      3 frames
    4. Java RT
      InitialLdapContext.<init>
      1. javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)[rt.jar:1.8.0_60]
      1 frame
    5. JBoss Application Server: Naming Subsystem
      InitialContextFactory.getInitialContext
      1. org.jboss.as.naming.InitialContext.<init>(InitialContext.java:90)
      2. org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:44)
      2 frames
    6. Java RT
      InitialLdapContext.<init>
      1. javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)[rt.jar:1.8.0_60]
      2. javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)[rt.jar:1.8.0_60]
      3. javax.naming.InitialContext.init(InitialContext.java:244)[rt.jar:1.8.0_60]
      4. javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)[rt.jar:1.8.0_60]
      4 frames
    7. spring-security-ldap
      ActiveDirectoryLdapAuthenticationProvider.bindAsUser
      1. org.springframework.security.ldap.authentication.ad.ActiveDirectoryLdapAuthenticationProvider$ContextFactory.createContext(ActiveDirectoryLdapAuthenticationProvider.java:401)[spring-security-ldap-4.0.1.RELEASE.jar:4.0.1.RELEASE]
      2. org.springframework.security.ldap.authentication.ad.ActiveDirectoryLdapAuthenticationProvider.bindAsUser(ActiveDirectoryLdapAuthenticationProvider.java:202)[spring-security-ldap-4.0.1.RELEASE.jar:4.0.1.RELEASE]
      2 frames