This article describes how to configure a server connection with SASL and Kerberos correctly.
Kadeck supports a variety of configurations when connecting to a server using SASL.
SASL_PLAINTEXT |
SASL_SSL |
PLAIN |
GSSAPI |
SCRAM-SHA-256 |
SCRAM-SHA-512 |
A JAAS configuration file, as in the following example, can be entered into the JAAS config input field as follows:
Original file / Krb5.conf (Kerberos)
KafkaClient { com.sun.security.auth.module.Krb5LoginModule required doNotPrompt=true useTicketCache=true principal="kafka-user@MYCORP.NET" useKeyTab=true keyTab="/home/kafka-user/kafka-user.keytab" client=true
serviceName="kafka" };
JAAS config input field
com.sun.security.auth.module.Krb5LoginModule required doNotPrompt=true useTicketCache=true principal="kafka-user@MYCORP.NET" useKeyTab=true keyTab="/home/kafka-user/kafka-user.keytab" client=true serviceName="kafka";
The configuration via the SASL config input field is the preferred way and should normally be sufficient.