Symptom
The error below happens during LDAP authentication:
"loggerName":"org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/hac].[springmvc]", "message":"class de.hybris.platform.ldap.connection.ActiveDirectoryConnectionImpl (in unnamed module @0x2631c655) cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap to unnamed module @0x2631c655", "name":"java.lang.IllegalAccessError", "extendedStackTrace":[
- "class":"de.hybris.platform.ldap.connection.ActiveDirectoryConnectionImpl","method":"checkPasswordUseFastBind","file":"ActiveDirectoryConnectionImpl.java","line":509}
- "class":"de.hybris.platform.ldap.connection.ActiveDirectoryConnectionImpl","method":"checkPassword","file":"ActiveDirectoryConnectionImpl.java","line":476}
- "class":"de.hybris.platform.ldap.jalo.LDAPManager","method":"checkPassword","file":"LDAPManager.java","line":234}
- "class":"de.hybris.platform.ldap.jalo.LDAPManager","method":"checkPassword","file":"LDAPManager.java","line":218}
- "class":"de.hybris.platform.ldap.jalo.security.user.LDAPUserPasswordCheckingStrategy","method":"checkPassword","file":"LDAPUserPasswordCheckingStrategy.java","line":44}
- "class":"de.hybris.platform.jalo.user.UserManager","method":"checkPassword","file":"UserManager.java","line":1701}
- "class":"de.hybris.platform.jalo.user.User","method":"checkPassword","file":"User.java","line":683}
- "class":"de.hybris.platform.jalo.user.User","method":"checkPassword","file":"User.java","line":653}
- "class":"de.hybris.platform.spring.security.CoreAuthenticationProvider","method":"authenticate","file":"CoreAuthenticationProvider.java","line":120}
- "class":"org.springframework.security.authentication.ProviderManager","method":"authenticate","file":"ProviderManager.java","line":182}
- ...
]
Read more...
Environment
SAP Commerce Cloud
Product
Keywords
ldap, standalone.jdkmodulesexports, Java 17, JDK 17, 17, --add-opens, java.naming, com.sun.jndi.ldap, ALL-UNNAMED , KBA , CEC-SCC-PLA-PL , Platform , Problem
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.