Is there any sample for kerberos connection?
See original GitHub issueWhile trying Consumer with Kerberos, I could not get it work (I tried Kafka official consumer-console.sh and it is working as normal). While using node-rdkafka, the application hang and there is no error or connect ready emit. Here is my Consumer log:
KafkaConsumer {
_events:
{ ready: [Function],
disconnected: [Function],
'event.error': [Function] },
_eventsCount: 3,
_maxListeners: undefined,
_client: KafkaConsumer {},
metrics: {},
_isConnected: false,
errorCounter: 0,
_metadata: {},
globalConfig:
{ debug: 'all',
'group.id': 'my_group_id',
'metadata.broker.list':'host1:port,host2:port,host3:port',
'security.protocol': 'sasl_plaintext',
'sasl.kerberos.kinit.cmd':
'kinit -k -t /my.keytab ${principal}',
'sasl.mechanisms': 'GSSAPI',
'sasl.kerberos.keytab': '/my.keytab',
'sasl.kerberos.service.name': 'kafka',
'sasl.kerberos.principal': '${principal',
'sasl.kerberos.min.time.before.relogin': 60000,
'enable.auto.commit': false,
connect_cb: [Function: connect_cb],
rebalance_cb: [Function] },
topicConfig: { 'auto.offset.reset': 'earliest' },
_consumeTimeout: 1000 }
I have my custimized krb5.conf which is easily set if using Java: `-Djava.security.krb5.conf=/my/krb5.conf`
I set it using environment variable `KRB5_CONFIG` but still not work.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
Example Configuration of Kerberos Authentication Using ...
To perform Kerberos authentication, the user authenticating must exist in the Kerberos database. In this example, the user has the user name kerberos-test, ......
Read more >Kerberos Authentication Explained - Varonis
Sample Varonis threat models that help detect Kerberos attacks include: Potential pass-the-ticket attack: access to a resource was requested ...
Read more >Kerberos in 5 Minutes: Introducing network authentication
An example of mutual authentication: A user in a network using Kerberos can authenticate to a mail server to prove they are who...
Read more >Using Kerberos integrated authentication to connect to SQL ...
Get the Kerberos ticket, either by generating a new one or placing an existing one in the default Kerberos ticket location. To generate...
Read more >Configuring a connection with Kerberos authentication - IBM
If your service provider uses Kerberos authentication, you must have a Kerberos configuration file called krb5.conf for establishing the connection from the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s a working sample working with Secured Kafka Cluster
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.