6.3. 配置 mod_auth_kerb
当您配置 Kerberos 身份验证时,您必须通过在 auth_kerb.conf 文件中指定设置来配置 mod_auth_kerb。
先决条件
流程
-
前往
JBCS_HOME/httpd/conf.d/目录。 -
创建名为
auth_kerb.conf的文件。 输入以下配置详情:
# # The mod_auth_kerb module implements Kerberos authentication over HTTP, following the "Negotiate" protocol. # # The LoadModule statement is done in conf.d/10-auth_kerb.conf # LoadModule auth_kerb_module modules/mod_auth_kerb.so <Location /kerberostest> AuthType Kerberos AuthName "Kerberos Login" KrbMethodNegotiate On KrbMethodK5Passwd Off KrbAuthRealms EXAMPLE.COM KrbServiceName HTTP Krb5KeyTab $JBCS_HOME/httpd/krb5.keytab require valid-user </Location>
重要
环境变量不会在配置文件中扩展。在前面的示例中,确保您替换了 JBCS_HOME 变量的完整路径。