rundeck-plugins / rundeck-winrm-plugin

Rundeck WinRM Node Executor plugin
Other
56 stars 28 forks source link

WinRM - Cannot locate KDC #55

Open JoeJe1993 opened 6 years ago

JoeJe1993 commented 6 years ago

Scripts are copying over to the target machine perfectly fine as I can see them in the C:\Windows\Temp directory, but they're failing to execute. I'm getting the following error:

image

[overthere-winrm:xxx-xxx-xxx] failed: WinRM Error: Login failure sending message on https://xxx-xxx-xxx:5986/wsman error: Cannot locate KDC Request: <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <env:Header> <a:To xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing">https://xxx-xxx-xxx:5986/wsman</a:To> <a:ReplyTo xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <a:Address mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address> </a:ReplyTo> <w:MaxEnvelopeSize xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" mustUnderstand="true">153600</w:MaxEnvelopeSize> <a:MessageID xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing">uuid:D9F64D95-EAA2-4FF6-8497-E6A67CF6A346</a:MessageID> <w:Locale xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" mustUnderstand="false" xml:lang="en-US"/> <p:DataLocale xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" mustUnderstand="false" xml:lang="en-US"/> <w:OperationTimeout xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">PT60.000S</w:OperationTimeout> <a:Action xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action> <w:ResourceURI xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI> <w:OptionSet xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <w:Option Name="WINRS_NOPROFILE">FALSE</w:Option> <w:Option Name="WINRS_CODEPAGE">437</w:Option> </w:OptionSet> </env:Header> <env:Body> <rsp:Shell xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell"> <rsp:InputStreams>stdin</rsp:InputStreams>

Any help would be greatly appreciated!

wvcardoso commented 6 years ago

I'm the same problem :-(

thomsonac commented 6 years ago

Have you configured /etc/krb5.conf properly as well as added it as a load string for the rundeck service? E.g. -Djava.security.krb5.conf=/etc/krb5.conf

liberodark commented 1 year ago

Hi, @thomsonac

Strangely for me is not find the file but is exist : /etc/rundeck/profile: line 84: -Djava.security.krb5.conf=/etc/krb5.conf: No such file or directory

Best Regards