Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testcases failing for Semeru JDK #2178

Closed
yasiribmcon opened this issue Aug 9, 2024 · 0 comments · Fixed by #2186
Closed

Testcases failing for Semeru JDK #2178

yasiribmcon opened this issue Aug 9, 2024 · 0 comments · Fixed by #2186

Comments

@yasiribmcon
Copy link
Contributor

When using the Semeru JDK 11.0.15 or newer, the following tests fail because of a bug in a dependency(kerby) of the MiniKDC test server that tries to load a class that does not exist in the Semeru JDKs:

com.linkedin.kafka.cruisecontrol.servlet.security.trustedproxy.TrustedProxySecurityProviderIntegrationTest > testNotAdminServiceLogin 
com.linkedin.kafka.cruisecontrol.servlet.security.trustedproxy.TrustedProxySecurityProviderIntegrationTest > testNoDoAsParameter 
com.linkedin.kafka.cruisecontrol.servlet.security.trustedproxy.TrustedProxySecurityProviderIntegrationTest > testSuccessfulAuthentication 
com.linkedin.kafka.cruisecontrol.servlet.security.trustedproxy.TrustedProxySecurityProviderSpnegoFallbackIntegrationTest > testSuccessfulAuthentication 
com.linkedin.kafka.cruisecontrol.servlet.security.trustedproxy.TrustedProxySecurityProviderSpnegoFallbackIntegrationTest > testUnsuccessfulAuthentication 
com.linkedin.kafka.cruisecontrol.servlet.security.spnego.SpnegoSecurityProviderIntegrationTest > testNotAdminServiceLogin 
com.linkedin.kafka.cruisecontrol.servlet.security.spnego.SpnegoSecurityProviderIntegrationTest > testSuccessfulAuthentication

with error similar to :

javax.security.auth.login.LoginException: No LoginModule found for com.ibm.security.auth.module.Krb5LoginModule
        at java.base/javax.security.auth.login.LoginContext.invoke(LoginContext.java:731)
        at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:672)
        at java.base/javax.security.auth.login.LoginContext$4.run(LoginContext.java:670)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:782)
        at java.base/javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:670)
        at java.base/javax.security.auth.login.LoginContext.login(LoginContext.java:581)
        at org.apache.kerby.kerberos.kerb.client.JaasKrbUtil.loginUsingKeytab(JaasKrbUtil.java:91)
        at com.linkedin.kafka.cruisecontrol.servlet.security.MiniKdc.loginAs(MiniKdc.java:68)
        at com.linkedin.kafka.cruisecontrol.servlet.security.trustedproxy.TrustedProxySecurityProviderIntegrationTest.testSuccessfulAuthentication(TrustedProxySecurityProviderIntegrationTest.java:71)

apache/directory-kerby#111 fixed this issue, hence simplekdc needs to be updated 2.0.3 as it contains the previously mentioned fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant