rkerberos 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ = 0.1.2 - 24-Jun-2013
2
+ * Fix kadm5clnt build issue on EL6
3
+ * Remove admin_keytab references for krb5 1.11
4
+ * Add Gemfile
5
+ * Replace deprecated Config with RbConfig (Ruby 2)
6
+
1
7
  = 0.1.1 - 08-May-2013
2
8
  * Add credential cache argument to get_init_creds_keytab
3
9
  * Fixed invalid VALUE declarations affecting non-gcc compilers
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rkerberos (0.1.2)
5
+ rake-compiler
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ dbi-dbrc (1.1.9)
11
+ sys-admin (>= 1.5.2)
12
+ ffi (1.9.0)
13
+ rake (10.1.0)
14
+ rake-compiler (0.8.3)
15
+ rake
16
+ sys-admin (1.6.0)
17
+ ffi (>= 1.1.0)
18
+ test-unit (2.5.5)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ dbi-dbrc (>= 1.1.6)
25
+ rkerberos!
26
+ test-unit (>= 2.1.0)
data/Rakefile CHANGED
@@ -3,7 +3,6 @@ require 'rake/testtask'
3
3
  require 'rake/extensiontask'
4
4
  require 'rake/clean'
5
5
  require 'rbconfig'
6
- include Config
7
6
 
8
7
  Rake::ExtensionTask.new('rkerberos')
9
8
 
@@ -15,7 +14,7 @@ CLEAN.include(
15
14
  '**/Makefile', # C Makefile
16
15
  '**/conftest.dSYM', # OS X build directory
17
16
  '**/tmp', # Temp directory
18
- "**/*.#{CONFIG['DLEXT']}" # C shared object
17
+ "**/*.#{RbConfig::CONFIG['DLEXT']}" # C shared object
19
18
  )
20
19
 
21
20
  desc 'Create a tarball of the source'
@@ -70,11 +70,6 @@ static VALUE rkadm5_config_initialize(VALUE self){
70
70
  else
71
71
  rb_iv_set(self, "@kpasswd_port", Qnil);
72
72
 
73
- if(ptr->config.admin_keytab)
74
- rb_iv_set(self, "@admin_keytab", rb_str_new2(ptr->config.admin_keytab));
75
- else
76
- rb_iv_set(self, "@admin_keytab", Qnil);
77
-
78
73
  if(ptr->config.acl_file)
79
74
  rb_iv_set(self, "@acl_file", rb_str_new2(ptr->config.acl_file));
80
75
  else
@@ -181,10 +176,6 @@ static VALUE rkadm5_config_inspect(VALUE self){
181
176
  rb_str_buf_append(v_str, rb_inspect(rb_iv_get(self, "@acl_file")));
182
177
  rb_str_buf_cat2(v_str, " ");
183
178
 
184
- rb_str_buf_cat2(v_str, "admin_keytab=");
185
- rb_str_buf_append(v_str, rb_inspect(rb_iv_get(self, "@admin_keytab")));
186
- rb_str_buf_cat2(v_str, " ");
187
-
188
179
  rb_str_buf_cat2(v_str, "admin_server=");
189
180
  rb_str_buf_append(v_str, rb_inspect(rb_iv_get(self, "@admin_server")));
190
181
  rb_str_buf_cat2(v_str, " ");
@@ -288,7 +279,6 @@ void Init_config(){
288
279
  // Accessors
289
280
 
290
281
  rb_define_attr(cKadm5Config, "acl_file", 1, 0);
291
- rb_define_attr(cKadm5Config, "admin_keytab", 1, 0);
292
282
  rb_define_attr(cKadm5Config, "admin_server", 1, 0);
293
283
  rb_define_attr(cKadm5Config, "dict_file", 1, 0);
294
284
  rb_define_attr(cKadm5Config, "enctype", 1, 0);
@@ -5,6 +5,10 @@ dir_config('rkerberos', '/usr/local')
5
5
  have_header('krb5.h')
6
6
  have_library('krb5')
7
7
 
8
+ unless pkg_config('com_err')
9
+ puts 'warning: com_err not found, usually a dependency for kadm5clnt'
10
+ end
11
+
8
12
  if have_header('kadm5/admin.h')
9
13
  have_library('kadm5clnt')
10
14
  else
data/rkerberos.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'rkerberos'
5
- spec.version = '0.1.1'
5
+ spec.version = '0.1.2'
6
6
  spec.authors = ['Daniel Berger', 'Dominic Cleal']
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = ['djberg96@gmail.com', 'dcleal@redhat.com']
data/test/test_config.rb CHANGED
@@ -38,11 +38,6 @@ class TC_Kadm5_Config < Test::Unit::TestCase
38
38
  assert_kind_of(String, @config.admin_server)
39
39
  end
40
40
 
41
- test "admin_keytab basic functionality" do
42
- assert_respond_to(@config, :admin_keytab)
43
- assert_kind_of(String, @config.admin_keytab)
44
- end
45
-
46
41
  test "acl_file basic functionality" do
47
42
  assert_respond_to(@config, :acl_file)
48
43
  assert_kind_of(String, @config.acl_file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rkerberos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,14 +10,14 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-08 00:00:00.000000000 Z
13
+ date: 2013-06-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake-compiler
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ! '>='
20
+ - - '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0'
23
23
  type: :runtime
@@ -25,7 +25,7 @@ dependencies:
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
- - - ! '>='
28
+ - - '>='
29
29
  - !ruby/object:Gem::Version
30
30
  version: '0'
31
31
  - !ruby/object:Gem::Dependency
@@ -33,7 +33,7 @@ dependencies:
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  none: false
35
35
  requirements:
36
- - - ! '>='
36
+ - - '>='
37
37
  - !ruby/object:Gem::Version
38
38
  version: 2.1.0
39
39
  type: :development
@@ -41,7 +41,7 @@ dependencies:
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
- - - ! '>='
44
+ - - '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.1.0
47
47
  - !ruby/object:Gem::Dependency
@@ -49,7 +49,7 @@ dependencies:
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.1.6
55
55
  type: :development
@@ -57,11 +57,12 @@ dependencies:
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements:
60
- - - ! '>='
60
+ - - '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: 1.1.6
63
- description: ! " The rkerberos library is an interface for the Kerberos 5 network\n
64
- \ authentication protocol. It wraps the Kerberos C API.\n"
63
+ description: |2
64
+ The rkerberos library is an interface for the Kerberos 5 network
65
+ authentication protocol. It wraps the Kerberos C API.
65
66
  email:
66
67
  - djberg96@gmail.com
67
68
  - dcleal@redhat.com
@@ -93,8 +94,8 @@ files:
93
94
  - test/test_krb5.rb
94
95
  - test/test_kadm5.rb
95
96
  - test/test_policy.rb
97
+ - Gemfile.lock
96
98
  - Rakefile
97
- - lib/rkerberos.so
98
99
  - ext/rkerberos/extconf.rb
99
100
  - ext/rkerberos/rkerberos.h
100
101
  - ext/rkerberos/context.c
@@ -107,6 +108,7 @@ files:
107
108
  - ext/rkerberos/ccache.c
108
109
  - ext/rkerberos/policy.c
109
110
  - rkerberos.gemspec
111
+ - Gemfile
110
112
  - CHANGES
111
113
  homepage: http://github.com/domcleal/rkerberos
112
114
  licenses:
@@ -118,15 +120,21 @@ require_paths:
118
120
  required_ruby_version: !ruby/object:Gem::Requirement
119
121
  none: false
120
122
  requirements:
121
- - - ! '>='
123
+ - - '>='
122
124
  - !ruby/object:Gem::Version
123
125
  version: '0'
126
+ segments:
127
+ - 0
128
+ hash: 775144890459674853
124
129
  required_rubygems_version: !ruby/object:Gem::Requirement
125
130
  none: false
126
131
  requirements:
127
- - - ! '>='
132
+ - - '>='
128
133
  - !ruby/object:Gem::Version
129
134
  version: '0'
135
+ segments:
136
+ - 0
137
+ hash: 775144890459674853
130
138
  requirements: []
131
139
  rubyforge_project:
132
140
  rubygems_version: 1.8.25
data/lib/rkerberos.so DELETED
Binary file