Ansible windows 失败并显示“在 Kerberos 数据库中找不到服务器" [英] Ansible windows fails with "Server not found in Kerberos database"

查看:41
本文介绍了Ansible windows 失败并显示“在 Kerberos 数据库中找不到服务器"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试 ansible(开发人员版本)以连接到 windows 机器.

I am testing ansible (developer build) to connect to a windows machine.

ansible 2.0.0 (devel d1b98ec776)

以下命令失败

ansible inh-jnambood-dt.india.mentorg.com -m win_ping -vvvv

错误如下

bash-4.1$ ansible inh-jnambood-dt.india.mentorg.com -m win_ping -vvvv
Using /etc/ansible/ansible.cfg as config file
Loaded callback minimal of type stdout, v2.0
<inh-jnambood-dt.india.mentorg.com> ESTABLISH WINRM CONNECTION FOR USER: jnambood@MGC.MENTORG.COM on PORT 5985 TO inh-jnambood-dt.india.mentorg.com
inh-jnambood-dt.india.mentorg.com | FAILED! => {
    "failed": true,
    "msg": "ERROR! kerberos: (('Unspecified GSS failure.  Minor code may provide more information', 851968), ('Server not found in Kerberos database', -1765328377)), plaintext: 401 Unauthorized."

jnambood 是我的用户 ID MGC.MENTORG.COM 是域

jnambood is my user id MGC.MENTORG.COM is the domain

显然我遗漏了一些步骤.我应该怎么做才能修复这个错误?

Clearly there is some step I missed. What should I do to fix this error?

推荐答案

我们遇到了同样的错误.对我们来说,它是通过将主机名缩短到少于 15 个字符来解决的.

We had this same error. For us, it was resolved by shortening the hostname to have less than 15 characters.

这篇关于Ansible windows 失败并显示“在 Kerberos 数据库中找不到服务器"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆