confluentinc / librdkafka

The Apache Kafka C/C++ library
Other
293 stars 3.15k forks source link

How to enable kerberos related authentication debug logs #4879

Closed breeze7086 closed 1 month ago

breeze7086 commented 1 month ago

Read the FAQ first: https://github.com/confluentinc/librdkafka/wiki/FAQ

Do NOT create issues for questions, use the discussion forum: https://github.com/confluentinc/librdkafka/discussions

Description

Hi guys,

How do I enable debug logs when I use librdkafka to do SASL_SSL authentication via Kerberos? I have tired with enable "debug: all", but it looks like I can't get all logs I want compare with when I use Java client. In Java client, if I need kerberos authentication debug logs, I could use

export KAFKA_OPTS="-Djava.security.auth.login.config=jaas.conf -Dsun.security.krb5.debug=true -Dsun.security.jgss.debug=true -Djavax.net.debug=all"

My question is, how to represent these debug configurations by using librdkafka?

Checklist

IMPORTANT: We will close issues where the checklist has not been completed.

Please provide the following information: