winrm-s 0.2.0 → 0.2.2.rc.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/lib/winrm-s/version.rb +1 -1
- data/lib/winrm/http/auth.rb +21 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmY2MzFiOGI2YTllZDAzNjRkNDYwN2ExY2NkMDY5YWMyOTUyNzE1MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yjk2YzY0OWIwOWUxYmNlZDU2NWU1NGFjOTBiZDE4MWY5MTk1OWE2NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDhmYmM3NWQwODZkMGIxMWUzZmM0OTk3YTQ3N2NiNjAwOTBhNGViYmQ1N2Iy
|
10
|
+
N2YzM2FlYzY1NTBjZGQ1YTMyNzVjNGEyZmU2ZmFhYTI4MDlmNjZiNmJjZWUw
|
11
|
+
NmI4YjYyZWViMmEwNmUyMWIzMjg0OGQ2ZTIxOWRkYjlkNGNkMDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWYzNjk4ZGMwMzRmNjk4NDJiOGIyNzFjZmYzMTQxZDg3YWY2ZDYzMzA5OGZl
|
14
|
+
MWE0ZTU5MTI5NjFjNzJkY2JlMzNiYTliNDI0N2I4MDVhZTEyZWU2ZTAwMmE2
|
15
|
+
MjdkM2Q2NjcyMGYxZmQ1NzYzOGRlMDZmNWIyYzI0MjFjNjVlODA=
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
## Unreleased
|
4
4
|
None
|
5
5
|
|
6
|
+
Release: 0.2.2
|
7
|
+
* [Issue #16](https://github.com/opscode/winrm-s/pull/16): [fix for knife-windows issue 124](https://github.com/opscode/knife-windows/issues/124)
|
8
|
+
* [Issue #15](https://github.com/opscode/winrm-s/pull/15): drop Ruby 1.9.2 builds from Travis
|
9
|
+
|
6
10
|
Release: 0.2.0
|
7
11
|
--------------
|
8
12
|
* Fix invalid use of frozen string ENV block is used for user and domain
|
data/lib/winrm-s/version.rb
CHANGED
data/lib/winrm/http/auth.rb
CHANGED
@@ -25,7 +25,7 @@ def validate_patch
|
|
25
25
|
# for encrypt/decrypt as described below.
|
26
26
|
# Add few restriction to make sure the patched methods are still
|
27
27
|
# available, but still give a way to consciously use later versions
|
28
|
-
PatchAssertions.assert_major_version("httpclient", 2.
|
28
|
+
PatchAssertions.assert_major_version("httpclient", 2.5, "USE_HTTPCLIENT_MAJOR")
|
29
29
|
PatchAssertions.assert_arity_of_patched_method(HTTPClient::WWWAuth, "filter_request", 1)
|
30
30
|
PatchAssertions.assert_arity_of_patched_method(HTTPClient::WWWAuth, "filter_response", 2)
|
31
31
|
PatchAssertions.assert_arity_of_patched_method(HTTPClient::SSPINegotiateAuth, "set", -1)
|
@@ -97,6 +97,21 @@ class HTTPClient
|
|
97
97
|
end
|
98
98
|
|
99
99
|
class SSPINegotiateAuth
|
100
|
+
|
101
|
+
begin
|
102
|
+
require 'win32/sspi'
|
103
|
+
SSPIEnabled = true
|
104
|
+
rescue LoadError
|
105
|
+
SSPIEnabled = false
|
106
|
+
end
|
107
|
+
|
108
|
+
begin
|
109
|
+
require 'gssapi'
|
110
|
+
GSSAPIEnabled = true
|
111
|
+
rescue LoadError
|
112
|
+
GSSAPIEnabled = false
|
113
|
+
end
|
114
|
+
|
100
115
|
# Override to remember creds
|
101
116
|
# Set authentication credential.
|
102
117
|
def set(uri, user, passwd)
|
@@ -108,6 +123,10 @@ class HTTPClient
|
|
108
123
|
@passwd = passwd
|
109
124
|
end
|
110
125
|
|
126
|
+
def set?
|
127
|
+
SSPIEnabled || GSSAPIEnabled
|
128
|
+
end
|
129
|
+
|
111
130
|
# Response handler: returns credential.
|
112
131
|
# See win32/sspi for negotiation state transition.
|
113
132
|
def get(req)
|
@@ -118,6 +137,7 @@ class HTTPClient
|
|
118
137
|
}
|
119
138
|
|
120
139
|
return nil unless param
|
140
|
+
|
121
141
|
state = param[:state]
|
122
142
|
authenticator = param[:authenticator]
|
123
143
|
authphrase = param[:authphrase]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: winrm-s
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0
|
4
|
+
version: 0.2.2.rc.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaustubh Deorukhkar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10
|
11
|
+
date: 2014-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: winrm
|
@@ -126,9 +126,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ! '
|
129
|
+
- - ! '>'
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 1.3.1
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
134
|
rubygems_version: 2.1.11
|