我在Debian上设置了Apache2 2.4.25。我的conf包含以下几行:
AuthType Kerberos
Krb5Keytab /etc/apache2/auth_kerb.keytab
KrbVerifyKDC off
当我重新启动Apache时,我收到此错误:
Invalid command 'Krb5Keytab', perhaps misspelled or defined by a module not included in the server configuration
如何启用必要的kerberos模块?
你有安装libapache2-mod-auth-kerb
包吗?如果没有,我认为可能就这么简单。
我在一个干净的Debian拉伸框上安装了apache2,并将你的示例配置添加到我的默认Directory
。我得到了同样的错误:
apachectl[9682]: Invalid command 'Krb5Keytab', perhaps misspelled or defined by a module not included in the server configuration
有一次我做了apt-get install libapache2-mod-auth-kerb
,apache开始成功,一切都很顺利。