morganstanley/modern-cpp-kafka

how to use SASL credentials?

rahulsharma11 opened this issue · 1 comments

Hi,

In producer example how can i implement the sasl parameters? like sasl_mecahnism. sasl_plain_user/pass etc?
i tried -
export KAFKA_CLIENT_ADDITIONAL_SETTINGS="security.protocol=SASL_PLAINTEXT;sasl.kerberos.service.name=username;sasl.kerberos.service.password=password;sasl.mechanism=PLAIN"
But no result.

Thanks