CredSSP issue

510 views
Skip to first unread message

Peter G

unread,
Oct 4, 2021, 7:32:56 AM10/4/21
to rundeck-discuss

Hello All,

Currently, I´m having trouble to setup CredSSP Authentication in the py-winrm-plugin. While it works running an ansible playbook with credSSP, in Rundeck the job fails with:

[ERROR ] CredSSP not installed, try: pip install pywinrm[credssp] (winrm-exec.py:246)[root]

Does anyone have an idea what could be the problem?

Thanks,

Peter

rac...@rundeck.com

unread,
Oct 4, 2021, 7:39:06 AM10/4/21
to rundeck-discuss
Hi Peter,

That's a specific requirement to use CredSSP with the pywinrm plugin, you need to install the python module, take a look.

Regards!

Peter G

unread,
Oct 4, 2021, 7:42:33 AM10/4/21
to rundeck-discuss
Hey,

forgot to mention that I´ve installed all dependecies that I´ve found:
apt-get install python3-dev libkrb5-dev gcc libssl-dev python3-winrm 
pip install pywinrm[kerberos] requests-kerberos  pexpect pywinrm[credssp]

But anyway I get this error, but only in rundeck. Ansible e.g. is working with credssp

Regards

rac...@rundeck.com

unread,
Oct 4, 2021, 8:49:41 AM10/4/21
to rundeck-discuss

Hi Peter, these modules are installed as a rundeck user? Make sure to use Python 3 as the default Python env (and check the same modules with pip3 command instead of pip command).

Greetings!

Peter G

unread,
Oct 4, 2021, 9:06:31 AM10/4/21
to rundeck-discuss
Hi,

just double checked, the module "requests" was not installed as rundeck user but now it is. All others where already installed, no matter if pip or pip3 is used.
There is one error not sure if this relevant: 
"ERROR: winrmlib 1.3 has requirement requests==2.5.0, but you'll have requests 2.9.1 which is incompatible."

I´ve tried it also with version 2.5.0 but not luck.

Since I´ve only installed python3 this is the default env.

Not sure what else it could be.

Greetings

rac...@rundeck.com

unread,
Oct 4, 2021, 11:25:08 AM10/4/21
to rundeck-discuss
Also, make sure to set the python3 (or python3 binary full path) as the default interpreter in the node executor (Project Settings > Edit Configuration > Default Node Executor tab.). Take a look.

Regards.

Peter G

unread,
Oct 4, 2021, 12:14:59 PM10/4/21
to rundeck-discuss
Well, that was the trick... I had to set the default node interpreter to "/usr/bin/python3" . 
Since python3 is the only installed version I thought it would be okay, especially cause python links to python3.

Anyway thanks very much for the help!



rac...@rundeck.com

unread,
Oct 4, 2021, 12:23:53 PM10/4/21
to rundeck-discuss
Amazing Peter! Good news then :-)
Reply all
Reply to author
Forward
0 new messages