Apache:无效命令 'Krb5Keytab'

Apache: Invalid command 'Krb5Keytab'

我正在 Debian stretch 上安装 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 stretch box 上安装了 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 就成功启动了,一切都很好。