[jboss-jira] [JBoss JIRA] (WFCORE-3884) Securing EJB with legacy ldap realm does not work
Martin Choma (JIRA)
issues at jboss.org
Thu May 24 09:52:00 EDT 2018
Martin Choma created WFCORE-3884:
------------------------------------
Summary: Securing EJB with legacy ldap realm does not work
Key: WFCORE-3884
URL: https://issues.jboss.org/browse/WFCORE-3884
Project: WildFly Core
Issue Type: Bug
Components: Security
Affects Versions: 3.1.0.Final
Reporter: Martin Choma
Assignee: Darran Lofthouse
Priority: Blocker
Use Case: securing EJB with legacy ldap realm
{code}
javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "org.wildfly.extension.io" version 5.0.0.Final-redhat-20180517 from local module loader @2ea6137 (finder: local module finder @41ee392b (roots: /home/mchoma/Repos/tests-ldap-kerberos/tests/target/dist/jboss-eap/modules,/home/mchoma/Repos/tests-ldap-kerberos/tests/target/dist/jboss-eap/modules/system/layers/base)) [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory from [Module "org.wildfly.extension.io" version 5.0.0.Final-redhat-20180517 from local module loader @2ea6137 (finder: local module finder @41ee392b (roots: /home/mchoma/Repos/tests-ldap-kerberos/tests/target/dist/jboss-eap/modules,/home/mchoma/Repos/tests-ldap-kerberos/tests/target/dist/jboss-eap/modules/system/layers/base))]]
{code}
from
{code}
Thread [default task-1] (Suspended)
owns: AuthenticationTimeoutSaslServerFactory$DelegatingTimeoutSaslServer (id=500)
UserLdapCallbackHandler.lambda$getPrincipalMapper$0(Principal) line: 143
2024198162.apply(Object) line: not available
712660640(Function<T,R>).lambda$andThen$1(Function, Object) line: 88
1508181426.apply(Object) line: not available
ServerAuthenticationContext.rewriteAll(Principal, Function<Principal,Principal>, Function<Principal,Principal>, Function<Principal,Principal>) line: 1114
ServerAuthenticationContext.assignName(SecurityIdentity, MechanismConfiguration, MechanismRealmConfiguration, Principal, Evidence, IdentityCredentials, IdentityCredentials, boolean) line: 1144
ServerAuthenticationContext$InitialState(ServerAuthenticationContext$UnassignedState).setPrincipal(Principal, boolean) line: 1691
ServerAuthenticationContext.setAuthenticationPrincipal(Principal, boolean) line: 408
ServerAuthenticationContext.setAuthenticationName(String, boolean) line: 382
ServerAuthenticationContext.setAuthenticationName(String) line: 366
ServerAuthenticationContext$1.handleOne(Callback[], int) line: 898
ServerAuthenticationContext$1.handle(Callback[]) line: 839
TrustManagerSaslServerFactory.lambda$createSaslServer$0(CallbackHandler, Callback[]) line: 96
1848118324.handle(Callback[]) line: not available
PlainSaslServer.evaluateResponse(byte[]) line: 117
AuthenticationCompleteCallbackSaslServerFactory$1.evaluateResponse(byte[]) line: 58
AuthenticationTimeoutSaslServerFactory$DelegatingTimeoutSaslServer.evaluateResponse(byte[]) line: 106
SecurityIdentitySaslServerFactory$1.evaluateResponse(byte[]) line: 59
SaslUtils.evaluateResponse(SaslServer, ByteBuffer) line: 245
SaslUtils.evaluateResponse(SaslServer, ByteBuffer, ByteBuffer) line: 217
ServerConnectionOpenListener$AuthStepRunnable.run() line: 486
EndpointImpl$TrackingExecutor.lambda$execute$0(Runnable) line: 926
1160617561.run() line: not available
ContextClassLoaderSavingRunnable.run() line: 35
EnhancedQueueExecutor.safeRun(Runnable) line: 1985
EnhancedQueueExecutor$ThreadBody.doRunTask(Runnable) line: 1487
EnhancedQueueExecutor$ThreadBody.run() line: 1349
Thread.run() line: 748
{code}
Please also log somewhere this exception. It was very hard to find out.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list