Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

windows authentication giving error "kerberos: Bad HTTP response returned from server. Code 500" in new virtual environment | Ansible #84

Open
aayj opened this issue Jul 14, 2020 · 3 comments

Comments

@aayj
Copy link

aayj commented Jul 14, 2020

We are creating new virtual environment but experiencing failure on windows host with kerberos error while the same playbook works in older virtual environment with same ansible version.
All the required packages and dependencies have been installed in both environments.

Error ->
fatal: [w096440.cgftdev.com]: UNREACHABLE! => {
"changed": false,
"msg": "kerberos: Bad HTTP response returned from server. Code 500",
"unreachable": true
}

Expected output ->
[w096440.cgftdev.com] => {
"changed": false,
"invocation": {
"module_args": {
"data": "pong"
}
},
"ping": "pong"

@alehaa
Copy link

alehaa commented Jul 7, 2021

Same error on macOS 10.15.7 with kerberos 1.3.1 when connecting via HTTP. However, the module states it has no support for message encryption, which should be available since version 1.2.1?

~:$ python -c "import kerberos; print(hasattr(kerberos, 'authGSSWinRMEncryptMessage'))"
False

@tricon
Copy link

tricon commented Oct 12, 2021

This library does not support authGSSWinRMEncryptMessage. The following library is needed for Ansible + WinRM: https://pypi.org/project/pykerberos (pykerberos as opposed to kerberos, in which the latter is represented by this code base).

@Felix-neko
Copy link

@aayj , how did you install kerberos python package under windows?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants