DockerRockz
DockerRockz

Reputation: 25

No such configuration property: "sasl.kerberos.kinit.cmd"

I am using librdkafka to write kafka .net client on windows which connects to kafka cluster running in linux OS (basically cross platform). I want to expose all the configurations needed within client and set them with some default values (by default values I want to basically set up simply no encryption and no authentication) so that my end client can change these values as per their security needs.

https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md

            {"security.protocol", "plaintext" },
            {"ssl.ca.location","" },
            {"sasl.mechanisms","PLAIN" },
            {"sasl.kerberos.service.name","" },
            {"sasl.kerberos.kinit.cmd","%{sasl.kerberos.keytab}" },
            {"sasl.kerberos.keytab","" },
            {"sasl.kerberos.principal","" },

SSL is working fine when I provide plain text and provide nothing for ca.location. But for SASl, I am getting this exception "No such configuration property: "sasl.kerberos.kinit.cmd"". What I am I doing wrong here.

Upvotes: 1

Views: 5901

Answers (1)

Edenhill
Edenhill

Reputation: 3113

On Windows, librdkafka only supports GSSAPI/Kerberos through the native windows SSPI - providing authentication using the current logged on user, Windows AD, etc. The unix kerberos utilities, such as kinit and keytabs, are not supported on Windows.

See the librdkafka wiki for more information.

Upvotes: 4

Related Questions