javax.naming.AuthenticationException

[LDAP: error code 49 - INVALID_CREDENTIALS: Bind failed: ERR_229 Cannot authenticate user uid=admin,ou=system]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web130

  • via Unknown by Peter Lynch,
  • Stack trace

    • javax.naming.AuthenticationException: [LDAP: error code 49 - INVALID_CREDENTIALS: Bind failed: ERR_229 Cannot authenticate user uid=admin,ou=system] at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3135)[na:1.8.0_11] at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3081)[na:1.8.0_11] at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2883)[na:1.8.0_11] at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2797)[na:1.8.0_11] at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)[na:1.8.0_11] at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)[na:1.8.0_11] at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210)[na:1.8.0_11] at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)[na:1.8.0_11] at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)[na:1.8.0_11] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)[na:1.8.0_11] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)[na:1.8.0_11] at javax.naming.InitialContext.init(InitialContext.java:244)[na:1.8.0_11] at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)[na:1.8.0_11] at org.sonatype.security.ldap.realms.DefaultLdapContextFactory.getLdapContext(DefaultLdapContextFactory.java:254)[nexus-ldap-plugin-2.9.2-01/:na] at org.sonatype.security.ldap.realms.DefaultLdapContextFactory.getSystemLdapContext(DefaultLdapContextFactory.java:239)[nexus-ldap-plugin-2.9.2-01/:na] at org.sonatype.security.ldap.dao.DefaultLdapConnectionTester.testConnection(DefaultLdapConnectionTester.java:53)[nexus-ldap-plugin-2.9.2-01/:na] at com.sonatype.security.ldap.api.LdapTestAuthenticationPlexusResource.doPut(LdapTestAuthenticationPlexusResource.java:123)[nexus-ldap-plugin-2.9.2-01/:na] at com.sonatype.security.ldap.api.AbstractLdapPlexusResource.put(AbstractLdapPlexusResource.java:130)[nexus-ldap-plugin-2.9.2-01/:na] at com.sonatype.security.ldap.api.LdapTestAuthenticationPlexusResource.put(LdapTestAuthenticationPlexusResource.java:95)[nexus-ldap-plugin-2.9.2-01/:na] at org.sonatype.plexus.rest.resource.RestletResource.storeRepresentation(RestletResource.java:299)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.sonatype.nexus.rest.NexusRestletResource.storeRepresentation(NexusRestletResource.java:91)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.resource.Resource.put(Resource.java:706)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.resource.Resource.handlePut(Resource.java:603)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Finder.handle(Finder.java:359)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Router.handle(Router.java:504)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:36)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.9.2-01/:na] at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.9.2-01/:na] at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)[nexus-restlet1x-plugin-2.9.2-01/:na] at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Application.handle(Application.java:341)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Router.handle(Router.java:504)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Router.handle(Router.java:504)[nexus-restlet1x-plugin-2.9.2-01/:na] at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Component.handle(Component.java:676)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.restlet.Server.handle(Server.java:331)[nexus-restlet1x-plugin-2.9.2-01/:na] at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68)[nexus-restlet1x-plugin-2.9.2-01/:na] at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147)[nexus-restlet1x-plugin-2.9.2-01/:na] at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:881)[nexus-restlet1x-plugin-2.9.2-01/:na] at org.sonatype.nexus.restlet1x.internal.RestletServlet.service(RestletServlet.java:90)[nexus-restlet1x-plugin-2.9.2-01/:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)[javax.servlet-3.0.0.v201112011016.jar:na] at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:288)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:278)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)[guice-servlet-3.1.10.jar:3.1.10] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)[shiro-web-1.2.2.jar:1.2.2] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.9.2-01.jar:2.9.2-01] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10] at com.sonatype.nexus.analytics.internal.RestRequestCollector.doFilter(RestRequestCollector.java:82)[nexus-analytics-plugin-2.9.2-01/:na] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)[shiro-web-1.2.2.jar:1.2.2] at org.sonatype.nexus.web.internal.SecurityFilter.executeChain(SecurityFilter.java:73)[nexus-core-2.9.2-01.jar:2.9.2-01] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)[shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)[shiro-web-1.2.2.jar:1.2.2] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.2.jar:1.2.2] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.9.2-01.jar:2.9.2-01] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.9.2-01.jar:2.9.2-01] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10] at com.sonatype.nexus.licensing.internal.LicensingRedirectFilter.doFilter(LicensingRedirectFilter.java:135)[nexus-licensing-plugin-2.9.2-01/:na] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.9.2-01.jar:2.9.2-01] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)[guice-servlet-3.1.10.jar:3.1.10] at com.yammer.metrics.web.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:76)[metrics-web-2.2.0.jar:na] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.CommonHeadersFilter.doFilter(CommonHeadersFilter.java:69)[nexus-core-2.9.2-01.jar:2.9.2-01] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.ErrorPageFilter.doFilter(ErrorPageFilter.java:71)[nexus-core-2.9.2-01.jar:2.9.2-01] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.BaseUrlHolderFilter.doFilter(BaseUrlHolderFilter.java:70)[nexus-core-2.9.2-01.jar:2.9.2-01] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-3.1.10.jar:3.1.10] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)[nexus-core-2.9.2-01.jar:2.9.2-01] at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterPipeline.dispatch(NexusGuiceFilter.java:56)[nexus-core-2.9.2-01.jar:2.9.2-01] at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:132)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:129)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:206)[guice-servlet-3.1.10.jar:3.1.10] at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:129)[guice-servlet-3.1.10.jar:3.1.10] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)[jetty-servlet-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)[jetty-servlet-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)[jetty-security-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)[jetty-servlet-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at com.yammer.metrics.jetty.InstrumentedHandler.handle(InstrumentedHandler.java:200)[metrics-jetty-2.2.0.jar:na] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.Server.handle(Server.java:370)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[jetty-http-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[jetty-http-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[jetty-server-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)[jetty-io-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[jetty-io-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[jetty-util-8.1.11.v20130520.jar:8.1.11.v20130520] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[jetty-util-8.1.11.v20130520.jar:8.1.11.v20130520] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_11]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    kidkid
    9 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    4 more bugmates