You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by khoi dinh <kh...@yahoo.com.INVALID> on 2019/10/29 21:09:48 UTC
Custom SASL Callback Handlers
I am looking at this thread: https://cwiki.apache.org/confluence/display/KAFKA/KIP-86%3A+Configurable+SASL+callback+handlers on how to create the sasl plain callback handler. I have made the class but I don't know what to do next. Is there a page or tutorial that explains how to fully implement and use the custom callback handlers?
Re:Custom SASL Callback Handlers
Posted by iamabug <18...@163.com>.
Hi,
I recently did the same thing. In my experience, after you have made the class, there are 4 things to do:
0. I suppose that things work using the basic SASL/PLAIN config.
1. Use maven or gradle to build a jar which includes the customized class.
2. Put the jar in the CLASSPATH that Kafka uses, such as lib/ in Kafka directory.
3. Add a configuration entry in server.properties:
listener.name.sasl_plaintext.plain.sasl.server.callback.handler.class=com.example.MyCallbackHandler
4. Restart Kafka.
I wrote a blog about this: https://iamabug.github.io/2019/10/21/kafka-sasl-plain-plugin/, maybe you want to check it out, though it is in Chinese. If it is not clear enough, please feel free to reach to me.
On 10/30/2019 05:09,khoi dinh<kh...@yahoo.com.INVALID> wrote:
I am looking at this thread: https://cwiki.apache.org/confluence/display/KAFKA/KIP-86%3A+Configurable+SASL+callback+handlers on how to create the sasl plain callback handler. I have made the class but I don't know what to do next. Is there a page or tutorial that explains how to fully implement and use the custom callback handlers?