使用 mod_auth_kerb 针对 ActiveDirectory 和多个领域进行 Kerberos 身份验证

发布于 2024-11-09 09:17:45 字数 498 浏览 1 评论 0原文

我们的环境如下所示:

  • 我们有一个相互信任的 ActiveDirectory 服务器森林。
  • 我们有一个带有 mod_auth_kerb 的 Linux Apache,可以针对“主”AD 服务器进行身份验证。

对于某些客户和客户的组合域时,我们收到以下错误消息:

krb5_get_init_creds_password() failed: KRB5 error code 68

谷歌搜索显示此错误:

is being returned by Active Directory because your users are
attempting to obtain a Kerberos TGT for a realm that
is not hosted on the server to which they are authenticating.

有办法解决此问题吗?

Our environment looks like this:

  • we've got a forest of ActiveDirectory servers that trust each other.
  • we've got a Linux Apache with mod_auth_kerb that authenticates against the "main" AD server.

For some combinations of clients & domains, we get the following error message:

krb5_get_init_creds_password() failed: KRB5 error code 68

Googling says this error:

is being returned by Active Directory because your users are
attempting to obtain a Kerberos TGT for a realm that
is not hosted on the server to which they are authenticating.

Is there a way to work around this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

荆棘i 2024-11-16 09:17:45

您错过了将所有必需的领域/KDC 添加到您的 krb5.conf 中。 GSSAPI 无法获取未知领域的票证。
上面的示例与我们的森林环境中的 gssapi 完美配合。

为了简化配置工作,您可以配置 krb5.conf 以查询 DNS 来查找 KDC。这就是 Windows 所做的。

You missed to add all necessary Realms/KDCs into your krb5.conf. GSSAPI cannot obtain a ticket for an unknown realm.
The above examplee works perfectly with gssapi in our forest env.

To ease the configuration work, you may configure your krb5.conf to query DNS to lookup the KDCs. This is what Windows does.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文