【问题标题】:Ansible kerberos auth : user account is failing to connect nodeAnsible kerberos auth:用户帐户无法连接节点
【发布时间】:2019-07-30 11:37:21
【问题描述】:

身份验证已从基础更改为 kerberos,并且已在控制器中进行了配置更改。但是在执行 ping 模块时,命令失败并出现以下错误。

在 /etc/krb5.conf 控制器机器中进行了必要的更改。 kinit 使用用户名

testwinim.NORTHERNGATES.INTERNAL | UNREACHABLE! => {
    "changed": false,
    "msg": "kerberos: authGSSClientStep() failed: (('Unspecified GSS failure.  Minor code may provide more information', 851968), ('Server not found in Kerberos database', -1765328377))",
    "unreachable": true
}

ansible -i /home/ansible/hosts win -m win_ping -e="ansible_ssh_port=5986, ansible_connection=winrm" 命令应该给出通过响应而不是失败

【问题讨论】:

    标签: ansible ansible-2.x ansible-inventory


    【解决方案1】:

    您能否尝试将下面的也作为参数传递
    ansible_winrm_kerberos_delegation: true

    【讨论】:

    • [win:vars] ansible_user= Ansibleservice@NORTHERNGATES.INTERNAL ansible_password= '27B#$$*(^%' ansible_connection= winrm ansible_winrm_transport= kerberos #ansible_winrm_realm= NORTHERNGATES.INTERNAL ansible_winrm_scheme= http ansible_winrm_server_cert_validation= ignore ansible_port= 5985 #ansible_winrm_kerberos_delegation= yes --- 尝试了hosts文件中的所有参数仍然是同样的错误。我们正在使用 2.7 Ansible 版本
    【解决方案2】:

    已解决,问题出在 Ansible 控制器和域控制器不同步的 NTP 服务器上。在控制器上发布设置 ntpd 并更改为 UTC 格式,服务帐户和剧本按预期工作,

    【讨论】:

      猜你喜欢
      • 2016-12-04
      • 2019-02-14
      • 2016-01-25
      • 2022-01-22
      • 2021-11-30
      • 1970-01-01
      • 2019-09-07
      • 2018-10-22
      • 2016-11-20
      相关资源
      最近更新 更多