Hello,
I have a problem with Rundeck in using winrmpython for execute a command on remote windows 2012 R2 (with auth CredSSP)
I have to do some tests
On my old server Rundeck 4.7
py-winrm-plugin (2.1.2)
On my new serveur Rundeck 5.3
py-winrm-plugin (2.1.3)
On the both servers, node definition is the same (format xml)
<node name="xxxxxxx" description="Serveur Etudes Paris" tags="Prod"
hostname="xxxxx.domain.xx" username="xxx...@xxxxx.domain.xx"
osFamily="Windows" osName="Microsoft Windows Server 2012 R2" osArch="amd64"
node-executor="WinRMPython" winrm-auth-type="CredSSP" winrm-protocol="http" winrm-spn-use-http="true"
winrm-connection-timeout="28800000" winrm-timeout="PT28800.000S"
winrm-cmd="CMD" winrm-kerberos-debug="false" winrm-domain="domain"
winrm-password-storage-path="keys/Myaccount">
</node>
My test is a just the dir command (adhoc)
- With release v4.7 it's working.
- With release v5.3 i have the following error:
[ERROR ] Execution finished with the following error (winrm-exec.py:378)[root]
[ERROR ] Server did not response with a CredSSP token after step TLS Handshake - actual 'Negotiate, Kerberos, Basic realm="WSMAN", CredSSP' (winrm-exec.py:379)[root]
For information if i use a basic authenification the command working but i would like to use CredSSP (for double Hop)
The parameters on the project (Rundeck v5.3)
project.plugin.FileCopier.WinRMcpPython.authtype=basic
project.plugin.FileCopier.WinRMcpPython.interpreter=python3
project.plugin.FileCopier.WinRMcpPython.kinit=kinit
project.plugin.FileCopier.WinRMcpPython.krb5config=/etc/krb5.conf
project.plugin.FileCopier.WinRMcpPython.nossl=false
project.plugin.FileCopier.WinRMcpPython.retryconnection=1
project.plugin.FileCopier.WinRMcpPython.retryconnectiondelay=10
project.plugin.FileCopier.WinRMcpPython.winrmport=5985
project.plugin.FileCopier.WinRMcpPython.winrmtransport=http
project.plugin.NodeExecutor.WinRMPython.authtype=credssp
project.plugin.NodeExecutor.WinRMPython.exitbehaviour=console
project.plugin.NodeExecutor.WinRMPython.interpreter=python3
project.plugin.NodeExecutor.WinRMPython.kinit=kinit
project.plugin.NodeExecutor.WinRMPython.krb5config=/etc/krb5.conf
project.plugin.NodeExecutor.WinRMPython.krbdelegation=true
project.plugin.NodeExecutor.WinRMPython.nossl=false
project.plugin.NodeExecutor.WinRMPython.retryconnection=1
project.plugin.NodeExecutor.WinRMPython.retryconnectiondelay=10
project.plugin.NodeExecutor.WinRMPython.shell=powershell
project.plugin.NodeExecutor.WinRMPython.winrmport=5985
project.plugin.NodeExecutor.WinRMPython.winrmtransport=http
project.retry-counter=3
project.ssh-authentication=privateKey
project.use-sftp=true
resources.source.1.config.file=/var/lib/rundeck/projects/P_EDITION/resources.xml
resources.source.1.config.format=resourcexml
resources.source.1.config.generateFileAutomatically=true
resources.source.1.config.writeable=true
resources.source.1.type=file
service.FileCopier.default.provider=WinRMcpPython
service.NodeExecutor.default.provider=WinRMPython
The parameters on the project Rundeck v4.7
project.plugin.FileCopier.WinRMcpPython.authtype=ntlm
project.plugin.FileCopier.WinRMcpPython.interpreter=python3
project.plugin.FileCopier.WinRMcpPython.kinit=kinit
project.plugin.FileCopier.WinRMcpPython.krb5config=/etc/krb5.conf
project.plugin.FileCopier.WinRMcpPython.nossl=false
project.plugin.FileCopier.WinRMcpPython.winrmport=5985
project.plugin.FileCopier.WinRMcpPython.winrmtransport=http
project.plugin.NodeExecutor.WinRMPython.authtype=credssp
project.plugin.NodeExecutor.WinRMPython.exitbehaviour=console
project.plugin.NodeExecutor.WinRMPython.interpreter=python3
project.plugin.NodeExecutor.WinRMPython.kinit=kinit
project.plugin.NodeExecutor.WinRMPython.krb5config=/etc/krb5.conf
project.plugin.NodeExecutor.WinRMPython.nossl=false
project.plugin.NodeExecutor.WinRMPython.shell=powershell
project.plugin.NodeExecutor.WinRMPython.winrmport=5985
project.plugin.NodeExecutor.WinRMPython.winrmtransport=http
project.ssh-authentication=privateKey
project.winrm-auth-type=basic
project.winrm-cmd=CMD
project.winrm-connection-timeout=28800000
project.winrm-protocol=http
project.winrm-spn-use-http=true
project.winrm-timeout=PT28800.000S
project.winrm-user-option=rundeck
resources.source.1.config.file=/var/lib/rundeck/projects/PROD_INFRA_WINDOWS/etc/resources.xml
resources.source.1.config.generateFileAutomatically=true
resources.source.1.config.writeable=true
resources.source.1.type=file
resources.source.2.config.count=1
resources.source.2.config.delay=0
resources.source.2.config.prefix=node
resources.source.2.config.suffix=test
resources.source.2.config.tags=stub
resources.source.2.type=stub
service.FileCopier.default.provider=WinRMcpPython
service.NodeExecutor.default.provider=WinRMPython
Do you want more any informations ?
Thanks in advance for your help