Configuring SASL JAAS Config in Kafka Source Connector

Summary

The user is trying to configure the SASL JAAS Config in the Kafka source connector but is facing an issue with the message ‘login module control flag is not available in JAAS config’.


Question

Hi all,
How to configure the SASL JAAS Config in Kafka source connector. I tried the below way

listener.name.sasl_ssl.scram-sha-256.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required
username=“dXByaWdodC1kb2dmaXNoLTExOTgyJD3oqhQrUBUMEPPUsbk8IdHrjoex29”
password=“ZjRkZTJkZWYtMTc0Mi00MGY3LWFlMTYtYjUzZTMzZ”;

KafkaServer {
org.apache.kafka.common.security.scram.ScramLoginModule required
username=“dXByaWdodC1kb2dmaXNoLTExOTgyJD3oqhQrUBUMEPPUsbk8IdHrjoex29”
password=“ZjRkZTJkZWYtMTc0Mi00MGY3LWFlMTYtYjUzZTMzZ”;
};

sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required
username=“dXByaWdodC1kb2dmaXNoLTExOTgyJD3oqhQrUBUMEPPUsbk8IdHrjoex29”
password=“ZjRkZTJkZWYtMTc0Mi00MGY3LWFlMTYtYjUzZTMzZ”;

sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required
username=“dXByaWdodC1kb2dmaXNoLTExOTgyJD3oqhQrUBUMEPPUsbk8IdHrjoex29”
password=“ZjRkZTJkZWYtMTc0Mi00MGY3LWFlMTYtYjUzZTMzZ”;

But facing the issue" login module control flag is not available in JAAS config"



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want to access the original thread.

Join the conversation on Slack

["sasl-jaas-config", "kafka-source-connector", "login-module", "sasl-ssl", "scram-sha-256"]