ccs-pykerberos icon indicating copy to clipboard operation
ccs-pykerberos copied to clipboard

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

Open aayj opened this issue 5 years ago • 3 comments

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"

aayj avatar Jul 14 '20 23:07 aayj

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

alehaa avatar Jul 07 '21 00:07 alehaa

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).

tricon avatar Oct 12 '21 16:10 tricon

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

Felix-neko avatar Jan 29 '22 12:01 Felix-neko