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

Kerberos authentication fails to authorize client #1932

Closed
ozzieba opened this issue May 4, 2021 · 0 comments · Fixed by #1933
Closed

Kerberos authentication fails to authorize client #1932

ozzieba opened this issue May 4, 2021 · 0 comments · Fixed by #1933

Comments

@ozzieba
Copy link
Contributor

ozzieba commented May 4, 2021

Versions

v1.28.0

I am getting the exact same errors described in #1658, both client-side and broker-side

Client-side:

client/metadata got error from broker -1 while fetching metadata: EOF

Broker:

[2021-05-04 18:13:03,100] DEBUG [SocketServer brokerId=1] Connection with $IP/$IP disconnected (org.apache.kafka.common.network.Selector)
javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: DerValue.getOID, not an OID 48]
        at jdk.security.jgss/com.sun.security.sasl.gsskerb.GssKrb5Server.evaluateResponse(GssKrb5Server.java:199)
        at org.apache.kafka.common.security.authenticator.SaslServerAuthenticator.handleSaslToken(SaslServerAuthenticator.java:419)
        at org.apache.kafka.common.security.authenticator.SaslServerAuthenticator.authenticate(SaslServerAuthenticator.java:294)
        at org.apache.kafka.common.network.KafkaChannel.prepare(KafkaChannel.java:185)
        at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:550)
        at org.apache.kafka.common.network.Selector.poll(Selector.java:486)
        at kafka.network.Processor.poll(SocketServer.scala:904)
        at kafka.network.Processor.run(SocketServer.scala:803)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: GSSException: DerValue.getOID, not an OID 48
        at java.security.jgss/sun.security.jgss.GSSContextImpl.acceptSecContext(GSSContextImpl.java:381)
        at java.security.jgss/sun.security.jgss.GSSContextImpl.acceptSecContext(GSSContextImpl.java:303)
        at jdk.security.jgss/com.sun.security.sasl.gsskerb.GssKrb5Server.evaluateResponse(GssKrb5Server.java:167)
        ... 8 more

I have confirmed that v1.26.0 and v1.28.0 fail the same way, while v1.27.0 succeeds.

Seems like acced82 undid #1697, and that part should be reverted

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

Successfully merging a pull request may close this issue.

1 participant