IBM Support


In IBM Sterling B2B Integrator the LDAP authentication fails with error "LDAP: error code 49 - Invalid Credentials"

Troubleshooting


Problem

In IBM Sterling B2B Integrator (SBI), the LDAP authentication fails with error "LDAP: error code 49 - Invalid Credentials" LDAP Configuration details in customer_overrids.properties: #INTRANET LDAP authentication_policy.authentication_2.className=com.sterlingcommerce.woodstock.security.LDAPAuthentication authentication_policy.authentication_2.display_name=Intranet LDAP ## enable ldap authentication (true, false) default=false authentication_policy.authentication_2.enabled=true ## jndi parameters for ldap connections authentication_policy.authentication_2.jndi_factory=com.sun.jndi.ldap.LdapCtxFactory authentication_policy.authentication_2.server=pages.test.com authentication_policy.authentication_2.port=389 authentication_policy.authentication_2.security_type=simple authentication_policy.authentication_2.principle=uid=Test_user1,c=in,ou=testpages,o=test.com authentication_policy.authentication_2.credentials=******* ## comment out or leave as blank on this property if the server is not going to use SSL for the security protocol. ## authentication_2.security_protocol=ssl ## search parameters for user password authentication_policy.authentication_2.password_attribute=userPassword authentication_policy.authentication_2.search_root=c=in,ou=testpages,o=test.com authentication_policy.authentication_2.search_filter=(uid=) authentication_policy.authentication_2.with_user_bind=true

Symptom

Error message in the authentication.log:


[2015-12-21 23:29:08.192] DEBUG SecurityManager user:Test_user1 attempting to log in (SSO:false)
[2015-12-21 23:29:08.193] DEBUG LDAPAuthentication user:Test_user1 is identified as an EXTERNAL User
[2015-12-21 23:29:08.193] DEBUG LDAPAuthentication performing LDAP search....
[2015-12-21 23:29:08.193] ALL LDAPAuthenticationLDAP port:ldap://testpages.test.com:389
[2015-12-21 23:29:08.798] ERROR LDAPAuthentication LDAP authentication has failed with exception for user:Test_user1
[2015-12-21 23:29:08.799] ERROR [1450720748798] [LDAP: error code 49 - Invalid Credentials]
[2015-12-21 23:29:08.799] ERRORDTL [1450720748798]javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3099)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3045)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2847)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2761)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:328)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:205)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:223)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:166)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:96)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:695)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:318)
at javax.naming.InitialContext.init(InitialContext.java:253)
at javax.naming.InitialContext.<init>(InitialContext.java:227)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:112)
at com.sterlingcommerce.woodstock.security.LDAPAuthentication.isAuthenticated(LDAPAuthentication.java:123)
at com.sterlingcommerce.woodstock.security.AuthenticationService.isAuthenticated(AuthenticationService.java:549)
at com.sterlingcommerce.woodstock.security.SecurityManager.isAuthenticated(SecurityManager.java:520)
at com.sterlingcommerce.woodstock.security.User.isAuthenticated(User.java:463)
at com.sterlingcommerce.woodstock.ui.UserAutho.isAuthenticated(UserAutho.java:110)
at com.sterlingcommerce.woodstock.ui.EntityObject.isAuthorized(EntityObject.java:454)
at com.sterlingcommerce.neo.security.GISAuthentication.loginWrapped(GISAuthentication.java:361)
at com.sterlingcommerce.neo.security.GISAuthentication.login(GISAuthentication.java:238)
at org.apache.jetspeed.services.JetspeedAuthentication.login(JetspeedAuthentication.java:90)
at org.apache.jetspeed.services.JetspeedSecurity.login(JetspeedSecurity.java:166)
at org.apache.jetspeed.modules.actions.JLoginUser.doPerform(JLoginUser.java:296)
at org.apache.turbine.modules.ActionEvent.perform(ActionEvent.java:148)
at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at org.apache.turbine.Turbine.doGet(Turbine.java:509)
at org.apache.turbine.Turbine.doPost(Turbine.java:658)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
at com.sterlingcommerce.woodstock.ui.dlsso.DLSSOFilter.doFilter(DLSSOFilter.java:259)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at com.sterlingcommerce.woodstock.ui.SecurityExtensionFilter.doFilter(SecurityExtensionFilter.java:127)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:768)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:544)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:959)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:406)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

[{"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"External Authentication Server","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"All","Edition":"All Editions","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
08 November 2019

UID

swg21973809