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

问题描述

限时删除!!

我正在测试ansible(开发人员内部版本)以连接到 Windows计算机./a>

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: [email protected] 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?

推荐答案

我不是在使用Ansible,而是直接使用pywinrm.为了使RHEL7计算机可以在域中的Windows 10主机上正常工作,我在pywinrm代码中将@更改为/.我这样做是因为我看到其他软件在与Kerberos通讯时使用HTTP/主机名而不是HTTP @主机名.希望这对某人有用.

I'm not using Ansible, but pywinrm directly. To get things working from a RHEL7 computer to a Windows 10 host in the domain, I changed @ to / in the pywinrm code. I did this because I saw other software use HTTP/hostname and not HTTP@hostname when talking to Kerberos. Hope this is useful for somebody.

https://github.com/requests/requests-kerberos/pull/141/commits

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

1403页,肝出来的..

09-06 21:55