{"action":"opened","issue":{"url":"https://api.github.com/repos/chef/winrm-s/issues/28","labels_url":"https://api.github.com/repos/chef/winrm-s/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/chef/winrm-s/issues/28/comments","events_url":"https://api.github.com/repos/chef/winrm-s/issues/28/events","html_url":"https://github.com/chef/winrm-s/issues/28","id":111355818,"number":28,"title":"SEC_E_NO_CREDENTIALS","user":{"login":"ifunky","id":3929124,"avatar_url":"https://avatars.githubusercontent.com/u/3929124?v=3","gravatar_id":"","url":"https://api.github.com/users/ifunky","html_url":"https://github.com/ifunky","followers_url":"https://api.github.com/users/ifunky/followers","following_url":"https://api.github.com/users/ifunky/following{/other_user}","gists_url":"https://api.github.com/users/ifunky/gists{/gist_id}","starred_url":"https://api.github.com/users/ifunky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifunky/subscriptions","organizations_url":"https://api.github.com/users/ifunky/orgs","repos_url":"https://api.github.com/users/ifunky/repos","events_url":"https://api.github.com/users/ifunky/events{/privacy}","received_events_url":"https://api.github.com/users/ifunky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-14T09:12:25Z","updated_at":"2015-10-14T09:12:25Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to use negotiate with winrm as described in the readme on Windows 2012R2 but I always get the following error:\r\n\r\nC:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/winrm-s-0.3.1/lib/winrm/win32/sspi.rb:252:in `get_credentials': Error acquire cr\r\nedentials: SEC_E_NO_CREDENTIALS (RuntimeError)\r\n        from C:/Ruby200-x64/lib/ruby/2.0.0/win32/sspi.rb:250:in `get_initial_token'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/winrm-s-0.3.1/lib/winrm/http/auth.rb:156:in `get'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/winrm-s-0.3.1/lib/winrm/http/auth.rb:56:in `block in filter_request\r\n'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/winrm-s-0.3.1/lib/winrm/http/auth.rb:54:in `each'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/winrm-s-0.3.1/lib/winrm/http/auth.rb:54:in `filter_request'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httpclient-2.6.0.1/lib/httpclient.rb:1180:in `block in do_get_block\r\n'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httpclient-2.6.0.1/lib/httpclient.rb:1179:in `each'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httpclient-2.6.0.1/lib/httpclient.rb:1179:in `do_get_block'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in `block in do_request'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in `protect_keep_alive_di\r\nsconnected'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in `do_request'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in `request'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in `post'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/winrm-1.3.4/lib/winrm/http/transport.rb:47:in `send_request'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/winrm-1.3.4/lib/winrm/winrm_service.rb:430:in `send_message'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/winrm-1.3.4/lib/winrm/winrm_service.rb:126:in `open_shell'\r\n        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/winrm-1.3.4/lib/winrm/winrm_service.rb:299:in `run_cmd'\r\n        from winrm.rb:7:in `<main>'\r\n`\r\nHere's the test file I'm running:\r\n\r\n`\r\nrequire 'winrm-s' # only works on Windows, otherwise use require 'winrm'\r\n\r\nendpoint = \"http://localhost:5985/wsman\"\r\nwinrm = WinRM::WinRMWebService.new(endpoint, :sspinegotiate, :user => \"domain\\user\", :pass => \"a_password\")\r\nwinrm.cmd('ipconfig /all') do |stdout, stderr|\r\n    STDOUT.print stdout\r\n    STDERR.print stderr\r\n  end\r\n`\r\n\r\nWinrm is configured for all authentication types, trustedhosts = *.\r\n\r\nAny ideas how I can get this working?\r\n\r\nThanks\r\n\r\nDan\r\n"}}