1. mechanism不在enable列表时,返回enabled_mechanisms
2. 在PLAIN 方式时,client 发来的信息是“[authzid] UTF8NUL authcid UTF8NUL passwd”,server根据server jaas文件里的username password来判断client发来的authcid和passwd正不正确。
代码在 org.apache.kafka.common.security.plain.PlainSaslServer.evaluateResponse()
3. 流程代码在 org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.authenticate()
本文详细介绍了 Apache Kafka 中 SASL PLAIN 认证机制的工作原理及其实现过程。当 mechanism 不在 enable 列表时,会返回 enabled_mechanisms;在 PLAIN 方式下,客户端发送包含 authzid、authcid 和 passwd 的信息,服务器通过 serverjaas 文件验证这些信息的正确性。
1023

被折叠的 条评论
为什么被折叠?



