[
https://issues.apache.org/jira/browse/QPID-8426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17100078#comment-17100078
]
ASF subversion and git services commented on QPID-8426:
-------------------------------------------------------
Commit e9a23e36d81ca0fb16ef5b4fcfff387fe7534b5c in qpid-broker-j's branch
refs/heads/master from Alex Rudyy
[ https://gitbox.apache.org/repos/asf?p=qpid-broker-j.git;h=e9a23e3 ]
QPID-8426: [Broker-J] Make Kerberos tests passing on IBM JDK
> [Broker-J][Tests] Kerberos integration tests can sporadically fail in some
> environments
> ---------------------------------------------------------------------------------------
>
> Key: QPID-8426
> URL: https://issues.apache.org/jira/browse/QPID-8426
> Project: Qpid
> Issue Type: Bug
> Components: Java Tests
> Affects Versions: qpid-java-broker-8.0.0, qpid-java-broker-7.1.5,
> qpid-java-broker-7.1.6, qpid-java-broker-7.1.7, qpid-java-broker-7.1.8
> Reporter: Alex Rudyy
> Priority: Major
>
> Integration tests from test suites {{KerberosAuthenticationManagerTest}} and
> {{SpnegoAuthenticatorTest}} can fail as below
> {noformat}
> [ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.277
> s <<< FAILURE! - in
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest
> [ERROR]
> testCreateSaslNegotiator(org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest)
> Time elapsed: 0.095 s <<< ERROR!
> java.security.PrivilegedActionException
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.performNegotiation(KerberosAuthenticationManagerTest.java:242)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.authenticate(KerberosAuthenticationManagerTest.java:212)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.testCreateSaslNegotiator(KerberosAuthenticationManagerTest.java:137)
> Caused by: javax.security.sasl.SaslException: GSS initiate failed
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.lambda$performNegotiation$0(KerberosAuthenticationManagerTest.java:245)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.performNegotiation(KerberosAuthenticationManagerTest.java:242)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.authenticate(KerberosAuthenticationManagerTest.java:212)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.testCreateSaslNegotiator(KerberosAuthenticationManagerTest.java:137)
> Caused by: org.ietf.jgss.GSSException: No valid credentials provided
> (Mechanism level: Server not found in Kerberos database (7) - Server not
> found in Kerberos database)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.lambda$performNegotiation$0(KerberosAuthenticationManagerTest.java:245)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.performNegotiation(KerberosAuthenticationManagerTest.java:242)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.authenticate(KerberosAuthenticationManagerTest.java:212)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.testCreateSaslNegotiator(KerberosAuthenticationManagerTest.java:137)
> Caused by: sun.security.krb5.KrbException: Server not found in Kerberos
> database (7) - Server not found in Kerberos database
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.lambda$performNegotiation$0(KerberosAuthenticationManagerTest.java:245)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.performNegotiation(KerberosAuthenticationManagerTest.java:242)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.authenticate(KerberosAuthenticationManagerTest.java:212)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.testCreateSaslNegotiator(KerberosAuthenticationManagerTest.java:137)
> Caused by: sun.security.krb5.Asn1Exception: Identifier doesn't match expected
> value (906)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.lambda$performNegotiation$0(KerberosAuthenticationManagerTest.java:245)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.performNegotiation(KerberosAuthenticationManagerTest.java:242)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.authenticate(KerberosAuthenticationManagerTest.java:212)
> at
> org.apache.qpid.server.security.auth.manager.KerberosAuthenticationManagerTest.testCreateSaslNegotiator(KerberosAuthenticationManagerTest.java:137
> {noformat}
> The Apache kerby embedded kerberos server {{SimpleKdcServer}} is used in the
> failing tests. What is interesting that kerberos integration tests where
> ApacheDS Kerberos Server is used have never been seen failing sporadically
> (See {{SimpleLDAPAuthenticationManagerTest}}). Potentially, a switch from
> Kerby to ApacheDS Kerberos Server should solve the issue. Though, the
> original Kerby sources have been extracted from ApacheDS Kerberos Server
> implementation. The failures could be caused by configuration issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]