‘Bad HTTP response returned from server. Code 500’ – Ansible win_ping test [closed]

  Kiến thức lập trình

This is failing only when using Kerberos, NTLM and Basic are working. Windows and Linux show Kerberos ticket creation successful. WinRM events do not show any errors.

Domain users are part of the Remote Management and Administrator groups.

Net trace shows the HTTP 500 from the server [email protected] (10.0.0.9). The client is 10.0.0.5. Trace image

Any ideas?

Full error:

avdserver-0 | UNREACHABLE! => {
    "changed": false,
    "msg": "kerberos: Access is denied.  (extended fault data: {'transport_message': 'Bad HTTP response returned from server. Code 500', 'http_status_code': 500, 'wsmanfault_code': '5', 'fault_code': 's:Sender', 'fault_subcode': 'w:AccessDenied'})",
    "unreachable": true
}

WinRM service config details:

AllowRemoteShellAccess = true
AllowUnencrypted = true
Kerberos = true
EnableCompatibilityHttpListener = true
CbtHardeningLevel = Relaxed

Listener
    Address = *
    Transport = HTTP
    Port = 5985
    Hostname
    Enabled = true

Linux host file value:

[win]
[email protected]

[win:vars]
ansible_user= [email protected]
ansible_port=5985
ansible_connection=winrm
ansible_winrm_transport=kerberos
[sebas@ansible ~]$ klist

Help solving HTTP 500 error when using kerberos auth

New contributor

Sebastian Jimenez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT