NetDocuments-Archive / rd-winrm-plugin

Allows rundeck to execute commands with powershell
Apache License 2.0
31 stars 19 forks source link

Unauthorized Access Exception with UNC paths #41

Closed FireHelmet closed 7 years ago

FireHelmet commented 7 years ago

Hello,

I'm using Rundeck 2.7.3 with your plugin in version 1.5.1, some commands works well but I'm facing an error when I use an UNC path in PowerShell command like a simple Get-ChildItem -Path \MyRemoteServer\c$ this error is:

gci : Access is denied

But when I execute this same command on same host with same credential but directly on the server (with powershell window) the command works well...

I think the WinRM impersonate the credential... In addition the command works also good when you try to use Get-ChildItem -Path \MyServer\c$ (No remote server but local server from Rundeck).

Tested on Win 2008 R2 SP1

Do you have encountered this problem ? Do you have a solution ?

Thank you for your support

vvchik commented 7 years ago

It is limitation by design of how WinRM works, and shouldn't work with Rundeck located on Linux computers, but you probably can configure it for windows. check this or this to start research.

FireHelmet commented 7 years ago

Hello vvchick,

Thank for your answer, I have tested Rundeck on Windows with your plugin, but I have some problem with ruby and your plugin.

About your two links, I already configured my Windows servers like described but without success when I launch my command trough Rundeck

Do you know if it's possible to run your plugin on Windows Rundeck ?

Thank you for your support