SAP Knowledge Base Article - Preview

2031153 - Troubleshooting ActiveDirectory

Symptom

  • Reported Problem

I am using LDAP Active Directory configuration in my hybris application. When I enter username and password for the first time it is giving exception. And for the second time, its working correctly.

  • Typical exceptions/log entries

CommunicationException
 
javax.naming.CommunicationException: Connection reset [Root exception is java.net.SocketException: Connection reset]; remaining name ''
    at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1965)
    at com.sun.jndi.ldap.LdapCtx.doSearchOnce(LdapCtx.java:1897)
    at com.sun.jndi.ldap.LdapCtx.c_lookup(LdapCtx.java:991)
    at com.sun.jndi.toolkit.ctx.ComponentContext.p_lookup(ComponentContext.java:526)
    at com.sun.jndi.toolkit.ctx.PartialCompositeContext.lookup(PartialCompositeContext.java:159)
    at com.sun.jndi.toolkit.ctx.PartialCompositeContext.lookup(PartialCompositeContext.java:148)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at de.hybris.platform.ldap.connection.JNDIConnectionManager.getDirContext(JNDIConnectionManager.java:172)
    at de.hybris.platform.ldap.connection.JNDIConnectionImpl.<init>(JNDIConnectionImpl.java:65)
    at de.hybris.platform.ldap.connection.LDAPConnectionFactory.getLDAPConnection(LDAPConnectionFactory.java:55)
    at de.hybris.platform.ldap.jalo.LDAPManager.checkPassword(LDAPManager.java:215)
    at de.hybris.platform.ldap.jalo.LDAPManager.checkPassword(LDAPManager.java:201)
    at de.hybris.platform.ldap.jaloimpl.LDAPUserEJBImpl.checkPassword(LDAPUserEJBImpl.java:95)
    at de.hybris.platform.jalo.user.User.checkPassword(User.java:409)
    at de.hybris.platform.jalo.JaloSession.performLogin(JaloSession.java:314)
    at de.hybris.platform.jalo.JaloSession.transfer(JaloSession.java:642)
 
LDAP: error code 49 - 80090308
 
DEBUG [ActiveDirectoryConnectionImpl] rawSearchSubTree( cn=development,ou=hybris groups,ou=hybris,dc=hybris,dc=de,(&(objectclass=*)(cn=*)),-1,-1,<returnAttributes>)
DEBUG [ActiveDirectoryConnectionImpl] used pagesize: 100
ERROR [ActiveDirectoryConnectionImpl] javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece
WARN  [ActiveDirectoryConnectionImpl] Operation failed: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece
de.hybris.platform.ldap.exception.LDAPOperationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece
 
Note: data 525 (user not found) represents an ActiveDirectory Error Code (see 8. ActiveDirectory Error Codes)


Read more...

Environment

  • hybris commerce platform
  • Microsoft ActiveDirectory Server

Product

SAP hybris Commerce Suite 5.2 ; hybris Commerce Suite 4.4 ; hybris Commerce Suite 4.5 ; hybris Commerce Suite 4.6 ; hybris Commerce Suite 4.7 ; hybris Commerce Suite 4.8 ; hybris Commerce Suite 5.0 ; hybris Commerce Suite 5.1

Keywords

KBA , hybris , sso , ldap , single sign on , activedirectory , exchange , CEC-SCC-PLA-PL , Platform , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.