You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emanuele Sabellico edited this page Aug 25, 2025
·
11 revisions
In this tutorial we'll see how to set up SASL/GSSAPI in a cross-realm scenario with Windows Active Directory and MIT Kerberos.
On Windows librdkafka uses SSPI to automatically authenticate with current user. If cross-realm trust is set up Windows users can be directly authenticated as Kafka principals.
Requirements
Everything will be set up on a Windows Server instance, by using WSL2 for running Apache Kafka 4.0 on Ubuntu.
Configuration
Install Active Directory
Go to Server Manager
Select "Add roles and Features"
Check "Active Directory Domain Services"
Install it
After installation: "Promote this server to domain controller"
Add a new forest with name testwindomain.com (NetBIOS name: TESTWINDOMAIN)
Finish configuration and restart
To login now you've to use TESTWINDOMAIN\<admin_user>