You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off let me say that this is my first time using Ruby and I am posting this here to help other Ruby newbs who may get this error. I am trying to use RunDeck on Cent OS 7 to manage Windows servers using WinRM. I created a RunDeck plugin to pass commands through to Windows servers using this Ruby WinRM module. However, when passing the password to WinRM like so:
I think I have run into this before. rubyntlm mutates the encoding of the given password. So if you pass it a value from the ENV, then this error gets raised. We probably want to put a dup in rubyntlm to protetc from this.
First off let me say that this is my first time using Ruby and I am posting this here to help other Ruby newbs who may get this error. I am trying to use RunDeck on Cent OS 7 to manage Windows servers using WinRM. I created a RunDeck plugin to pass commands through to Windows servers using this Ruby WinRM module. However, when passing the password to WinRM like so:
I receive the following error:
/usr/local/share/gems/gems/rubyntlm-0.6.0/lib/net/ntlm/encode_util.rb:42:in
force_encoding': can't modify frozen String (RuntimeError)`I had to change the password assignment line to the following to get it to work:
_host_password = ENV['RD_SECUREOPTION_PASSWORD'].dup
Hope this helps a future Ruby newb.
Cheers,
Todd
The text was updated successfully, but these errors were encountered: