{"action":"created","issue":{"url":"https://api.github.com/repos/WinRb/rubyntlm/issues/16","labels_url":"https://api.github.com/repos/WinRb/rubyntlm/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/WinRb/rubyntlm/issues/16/comments","events_url":"https://api.github.com/repos/WinRb/rubyntlm/issues/16/events","html_url":"https://github.com/WinRb/rubyntlm/pull/16","id":51625997,"number":16,"title":"Initial go at an NTLM Client that will do session signing/sealing","user":{"login":"zenchild","id":89312,"avatar_url":"https://avatars.githubusercontent.com/u/89312?v=3","gravatar_id":"","url":"https://api.github.com/users/zenchild","html_url":"https://github.com/zenchild","followers_url":"https://api.github.com/users/zenchild/followers","following_url":"https://api.github.com/users/zenchild/following{/other_user}","gists_url":"https://api.github.com/users/zenchild/gists{/gist_id}","starred_url":"https://api.github.com/users/zenchild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenchild/subscriptions","organizations_url":"https://api.github.com/users/zenchild/orgs","repos_url":"https://api.github.com/users/zenchild/repos","events_url":"https://api.github.com/users/zenchild/events{/privacy}","received_events_url":"https://api.github.com/users/zenchild/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-12-10T23:30:57Z","updated_at":"2015-01-09T01:27:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/WinRb/rubyntlm/pulls/16","html_url":"https://github.com/WinRb/rubyntlm/pull/16","diff_url":"https://github.com/WinRb/rubyntlm/pull/16.diff","patch_url":"https://github.com/WinRb/rubyntlm/pull/16.patch"},"body":"There is some duplication between `Net::NTLM` and `Net::NTLM::Client::Session` but it was necessary to decouple some of the processing without effecting how `Net::NTLM` is being used for legacy purposes. Maybe we can rectify some of this in a 2.0 release.\r\n\r\nCC: @pmorton This is required in order to get _Negotiate_ session encryption working for **WinRM**."},"comment":{"url":"https://api.github.com/repos/WinRb/rubyntlm/issues/comments/69280428","html_url":"https://github.com/WinRb/rubyntlm/pull/16#issuecomment-69280428","issue_url":"https://api.github.com/repos/WinRb/rubyntlm/issues/16","id":69280428,"user":{"login":"zenchild","id":89312,"avatar_url":"https://avatars.githubusercontent.com/u/89312?v=3","gravatar_id":"","url":"https://api.github.com/users/zenchild","html_url":"https://github.com/zenchild","followers_url":"https://api.github.com/users/zenchild/followers","following_url":"https://api.github.com/users/zenchild/following{/other_user}","gists_url":"https://api.github.com/users/zenchild/gists{/gist_id}","starred_url":"https://api.github.com/users/zenchild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenchild/subscriptions","organizations_url":"https://api.github.com/users/zenchild/orgs","repos_url":"https://api.github.com/users/zenchild/repos","events_url":"https://api.github.com/users/zenchild/events{/privacy}","received_events_url":"https://api.github.com/users/zenchild/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T01:27:06Z","updated_at":"2015-01-09T01:27:06Z","body":"@sneal The easiest way to test the signing+sealing is to use WinRM with it. Check out the \"dan/spnego-encryption\" branch from the WinRM repo. By the way, that branch is never meant to be merged to master as it is, it's only for testing. Once you have the branch checked out make sure and `bundle install` because it needs to pull down the right **rubyntlm** code. After that, this is what I was using for testing communications:\r\n\r\n```ruby\r\nrequire \"bundler/setup\"\r\nrequire \"net/ntlm\"\r\nrequire \"net/ntlm/client\"\r\nrequire \"winrm\"\r\nrequire \"pry\"\r\n\r\nendpoint = 'http://192.168.56.101:5985/wsman'\r\nusername = \"user\"\r\npassword = \"pass\"\r\n\r\nwinrm = WinRM::WinRMWebService.new(endpoint, :negotiate, user: username, pass: password)\r\n\r\nbinding.pry\r\n```\r\nOnce pry opens up I just run WinRM commands like normal. I originally had a wireshark session open so I could watch the net traffic, but you probably don't need to go that far."}}