rundeck-plugins / rundeck-winrm-plugin

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

WinRM - Authentication issues #29

Open SkullKiddie opened 9 years ago

SkullKiddie commented 9 years ago

I'm getting the following error when executing with kerberos authentication:

[overthere-winrm:xxxxxxxxxx] failed: WinRM Error: Login failure sending message on http://xxxxxx.xxxxxx.xxxx:5985/wsman error: Cannot locate default realmRequest:
<?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">http://xxxxxx.xxxxxx.xxxx:5985/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:2B719218-6D77-4655-A86F-2D8827C56786</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>
      <rsp:OutputStreams>stdout stderr</rsp:OutputStreams>
    </rsp:Shell>
  </env:Body>
</env:Envelope>

Response:
[EMPTY]

Also, basic authentication gives be no response either (even using winrm, which might be a miss configuration, but I was thinking of using AD login)

I've configured krb5.ini on C:\Windows, but that gave me no effect, it still can't find the default realm. PS executes normally between both server and client (winrm).

Don't know if I missed something.

Thanks in advance

gschueler commented 9 years ago

did you set the JVM properties mentioned here? https://github.com/rundeck-plugins/rundeck-winrm-plugin#configure-kerberos

mayurbavisiya commented 6 years ago

@tevosouza I am able to execute those command in window. How to enable basic auth in linux any idea ?

damienvanrobaeys commented 5 years ago

did you set the JVM properties mentioned here? https://github.com/rundeck-plugins/rundeck-winrm-plugin#configure-kerberos

When it says at the startup, it means for instance in the bat the launchs rundeck ? Do you have a sample? Where should we have to add the line ?

damienvanrobaeys commented 5 years ago

I tried to run a powershell and get the issue below. I have installed server on windows. Do you have an idea ?

[overthere-winrm:MyComp] failed: WinRM Error: Login failure sending message on http://MyComp:5985/wsman error: null (68) Request: <?xml version="1.0" encoding="UTF-8"?>

http://MyComp:5985/wsman http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous 153600 uuid:9C0D830F-5B14-4A60-B793-62F0FAB746F4 PT60.000S http://schemas.xmlsoap.org/ws/2004/09/transfer/Create http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd FALSE 437 stdin stdout stderr Response: [EMPTY]