[ https://issues.apache.org/jira/browse/KAFKA-7631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16827023#comment-16827023 ]
koert kuipers commented on KAFKA-7631: -------------------------------------- it is not clear to me how i should handle this situation. this Jira seems to focus on a better error message, presumably pointing to the fact that the broker jaas configuration file does not have ScramLoginModule. but that is correct for me, i want to use kerberos for broker authentication. should it work for me without ScramLoginModule in broker jaas.conf? do i need to add both Krb5LoginModule and ScramLoginModule to broker jaas.conf? > NullPointerException when SCRAM is allowed bu ScramLoginModule is not in > broker's jaas.conf > ------------------------------------------------------------------------------------------- > > Key: KAFKA-7631 > URL: https://issues.apache.org/jira/browse/KAFKA-7631 > Project: Kafka > Issue Type: Improvement > Components: security > Affects Versions: 2.0.0 > Reporter: Andras Beni > Assignee: Viktor Somogyi-Vass > Priority: Minor > > When user wants to use delegation tokens and lists {{SCRAM}} in > {{sasl.enabled.mechanisms}}, but does not add {{ScramLoginModule}} to > broker's JAAS configuration, a null pointer exception is thrown on broker > side and the connection is closed. > Meaningful error message should be logged and sent back to the client. > {code} > java.lang.NullPointerException > at > org.apache.kafka.common.security.authenticator.SaslServerAuthenticator.handleSaslToken(SaslServerAuthenticator.java:376) > at > org.apache.kafka.common.security.authenticator.SaslServerAuthenticator.authenticate(SaslServerAuthenticator.java:262) > at > org.apache.kafka.common.network.KafkaChannel.prepare(KafkaChannel.java:127) > at > org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:489) > at org.apache.kafka.common.network.Selector.poll(Selector.java:427) > at kafka.network.Processor.poll(SocketServer.scala:679) > at kafka.network.Processor.run(SocketServer.scala:584) > at java.lang.Thread.run(Thread.java:748) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)