7.4. 使用 Kerberos 进行身份验证
Kerberos 是一种网络协议,用于根据加密票据的交换集中管理身份验证。如需更多信息,请参阅使用 Kerberos。
- 在您的操作系统中配置 Kerberos。请参阅 配置 Kerberos 在 Red Hat Enterprise Linux 中设置 Kerberos。
在客户端应用程序中启用
GSSAPI
SASL 机制。proton::connection_options opts {}; opts.sasl_allowed_mechs("GSSAPI"); container.connect("amqps://example.com", opts);
proton::connection_options opts {}; opts.sasl_allowed_mechs("GSSAPI"); container.connect("amqps://example.com", opts);
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用
kinit
命令验证您的用户凭证并存储生成的 Kerberos 票据。kinit USER@REALM
$ kinit USER@REALM
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 运行客户端程序。