net-ssh-kerberos 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -23,6 +23,11 @@ Add the following lines to the top of your Capfile (the relevant :auth_method is
23
23
  - Supports enterprise-level Kerberos-based security (tested with Centrify DC)
24
24
  - Cross-forest authentication is supported, including mixed environment (tested with Centrify DC in a mixed Windows/Linux environment)
25
25
 
26
+ == Contributors
27
+
28
+ - Joe Khoobyar http://github.com/joekhoobyar
29
+ - Joshua Ballanco http://github.com/jballanc
30
+
26
31
  == Copyright
27
32
 
28
- Copyright (c) 2009 Joe Khoobyar. See LICENSE for details.
33
+ Copyright (c) 2009-2011 Joe Khoobyar. See LICENSE for details.
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
+ require 'yaml'
3
4
 
4
5
  begin
5
6
  require 'jeweler'
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
- ---
2
- :build:
3
- :major: 0
4
- :minor: 2
5
- :patch: 4
1
+ ---
2
+ :major: 0
3
+ :minor: 2
4
+ :build:
5
+ :patch: 5
@@ -46,7 +46,7 @@ module Net; module SSH; module Kerberos;
46
46
  @@available = []
47
47
  def self.available; @@available end
48
48
 
49
- if %w(win dar mingw).any?{|p| RUBY_PLATFORM.include?(p)}; then
49
+ if RUBY_PLATFORM =~ /mingw/ || (RUBY_PLATFORM =~ /win/ && RUBY_PLATFORM !~ /darwin/)
50
50
  begin require 'net/ssh/kerberos/drivers/sspi'; available << 'SSPI'
51
51
  rescue => e
52
52
  raise e unless RuntimeError === e and e.message =~ /^LoadLibrary: ([^\s]+)/
File without changes
@@ -62,7 +62,7 @@ module Net; module SSH; module Kerberos; module Drivers
62
62
  typealias "PCredHandle", "PSecHandle"
63
63
  typealias "PCtxtHandle", "PSecHandle"
64
64
  SecBuffer = struct2 [ "ULONG length", "ULONG type", "PCharBuffer data" ] do
65
- def to_s; data.to_s(length) end
65
+ def to_s; length.zero? ? '' : data.to_s(length) end
66
66
  end
67
67
  typealias "PSecBuffer", "P"
68
68
  SecBufferDesc = struct2 [ "ULONG version", "ULONG count", "PSecBuffer buffers" ] do
@@ -164,7 +164,8 @@ module Net; module SSH; module Kerberos; module Drivers
164
164
  result.failure? and raise GeneralError, "Error initializing security context: #{result}"
165
165
  result = API.completeAuthToken ctx, output if result.incomplete?
166
166
  result.failure? and raise GeneralError, "Error initializing security context: #{result}"
167
- @state = State.new(ctx, result, output.buffers ? output.buffer(0).to_s : nil, ts)
167
+ bdata = output.buffer(0).to_s if output.buffers and output.count > 0 and output.buffer(0)
168
+ @state = State.new(ctx, result, bdata, ts)
168
169
  if result.complete?
169
170
  result = API.queryContextAttributes @state.handle, SECPKG_ATTR_SIZES, @sizes=API::SecPkgSizes.malloc
170
171
  result.failure? and raise GeneralError, "Error initializing security context: #{result}"
@@ -1,71 +1,69 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{net-ssh-kerberos}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joe Khoobyar"]
12
- s.date = %q{2010-05-01}
12
+ s.date = %q{2011-03-17}
13
13
  s.description = %q{Extends Net::SSH by adding Kerberos authentication capability for password-less logins on multiple platforms.
14
14
  }
15
15
  s.email = %q{joe@ankhcraft.com}
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
- "README.rdoc"
18
+ "README.rdoc"
19
19
  ]
20
20
  s.files = [
21
21
  ".document",
22
- ".gitignore",
23
- "LICENSE",
24
- "README.rdoc",
25
- "Rakefile",
26
- "VERSION.yml",
27
- "example/Capfile",
28
- "example/gss.rb",
29
- "example/sspi.rb",
30
- "lib/net/ssh/authentication/methods/gssapi_with_mic.rb",
31
- "lib/net/ssh/kerberos.rb",
32
- "lib/net/ssh/kerberos/constants.rb",
33
- "lib/net/ssh/kerberos/context.rb",
34
- "lib/net/ssh/kerberos/drivers.rb",
35
- "lib/net/ssh/kerberos/drivers/gss.rb",
36
- "lib/net/ssh/kerberos/drivers/sspi.rb",
37
- "lib/net/ssh/kerberos/kex.rb",
38
- "lib/net/ssh/kerberos/kex/krb5_diffie_hellman_group1_sha1.rb",
39
- "lib/net/ssh/kerberos/kex/krb5_diffie_hellman_group_exchange_sha1.rb",
40
- "net-ssh-kerberos.gemspec",
41
- "test/gss_context_test.rb",
42
- "test/gss_test.rb",
43
- "test/net_ssh_kerberos_test.rb",
44
- "test/sspi_context_test.rb",
45
- "test/sspi_test.rb",
46
- "test/test_helper.rb"
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION.yml",
26
+ "example/Capfile",
27
+ "example/gss.rb",
28
+ "example/sspi.rb",
29
+ "lib/net/ssh/authentication/methods/gssapi_with_mic.rb",
30
+ "lib/net/ssh/kerberos.rb",
31
+ "lib/net/ssh/kerberos/constants.rb",
32
+ "lib/net/ssh/kerberos/context.rb",
33
+ "lib/net/ssh/kerberos/drivers.rb",
34
+ "lib/net/ssh/kerberos/drivers/gss.rb",
35
+ "lib/net/ssh/kerberos/drivers/sspi.rb",
36
+ "lib/net/ssh/kerberos/kex.rb",
37
+ "lib/net/ssh/kerberos/kex/krb5_diffie_hellman_group1_sha1.rb",
38
+ "lib/net/ssh/kerberos/kex/krb5_diffie_hellman_group_exchange_sha1.rb",
39
+ "net-ssh-kerberos.gemspec",
40
+ "test/gss_context_test.rb",
41
+ "test/gss_test.rb",
42
+ "test/net_ssh_kerberos_test.rb",
43
+ "test/sspi_context_test.rb",
44
+ "test/sspi_test.rb",
45
+ "test/test_helper.rb"
47
46
  ]
48
47
  s.homepage = %q{http://github.com/joekhoobyar/net-ssh-kerberos}
49
- s.rdoc_options = ["--charset=UTF-8"]
50
48
  s.require_paths = ["lib"]
51
49
  s.required_ruby_version = Gem::Requirement.new("< 1.9")
52
50
  s.rubyforge_project = %q{net-ssh-krb}
53
- s.rubygems_version = %q{1.3.6}
51
+ s.rubygems_version = %q{1.3.7}
54
52
  s.summary = %q{Add Kerberos support to Net::SSH}
55
53
  s.test_files = [
56
54
  "test/gss_context_test.rb",
57
- "test/gss_test.rb",
58
- "test/net_ssh_kerberos_test.rb",
59
- "test/sspi_context_test.rb",
60
- "test/sspi_test.rb",
61
- "test/test_helper.rb"
55
+ "test/gss_test.rb",
56
+ "test/net_ssh_kerberos_test.rb",
57
+ "test/sspi_context_test.rb",
58
+ "test/sspi_test.rb",
59
+ "test/test_helper.rb"
62
60
  ]
63
61
 
64
62
  if s.respond_to? :specification_version then
65
63
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
66
64
  s.specification_version = 3
67
65
 
68
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
66
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
69
67
  s.add_runtime_dependency(%q<net-ssh>, [">= 2.0"])
70
68
  else
71
69
  s.add_dependency(%q<net-ssh>, [">= 2.0"])
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ssh-kerberos
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 29
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 4
9
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
10
11
  platform: ruby
11
12
  authors:
12
13
  - Joe Khoobyar
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-01 00:00:00 -04:00
18
+ date: 2011-03-17 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: net-ssh
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 2
29
32
  - 0
@@ -43,7 +46,6 @@ extra_rdoc_files:
43
46
  - README.rdoc
44
47
  files:
45
48
  - .document
46
- - .gitignore
47
49
  - LICENSE
48
50
  - README.rdoc
49
51
  - Rakefile
@@ -73,29 +75,33 @@ homepage: http://github.com/joekhoobyar/net-ssh-kerberos
73
75
  licenses: []
74
76
 
75
77
  post_install_message:
76
- rdoc_options:
77
- - --charset=UTF-8
78
+ rdoc_options: []
79
+
78
80
  require_paths:
79
81
  - lib
80
82
  required_ruby_version: !ruby/object:Gem::Requirement
83
+ none: false
81
84
  requirements:
82
85
  - - <
83
86
  - !ruby/object:Gem::Version
87
+ hash: 29
84
88
  segments:
85
89
  - 1
86
90
  - 9
87
91
  version: "1.9"
88
92
  required_rubygems_version: !ruby/object:Gem::Requirement
93
+ none: false
89
94
  requirements:
90
95
  - - ">="
91
96
  - !ruby/object:Gem::Version
97
+ hash: 3
92
98
  segments:
93
99
  - 0
94
100
  version: "0"
95
101
  requirements: []
96
102
 
97
103
  rubyforge_project: net-ssh-krb
98
- rubygems_version: 1.3.6
104
+ rubygems_version: 1.3.7
99
105
  signing_key:
100
106
  specification_version: 3
101
107
  summary: Add Kerberos support to Net::SSH
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- *.sw?
2
- .buildpath
3
- .project
4
- .DS_Store
5
- coverage
6
- doc
7
- rdoc
8
- pkg