casino_core-authenticator-ldap 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/.rvmrc +48 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +64 -0
- data/LICENSE.txt +20 -0
- data/README.md +19 -0
- data/Rakefile +44 -0
- data/VERSION +1 -0
- data/lib/casino_core-authenticator-ldap.rb +1 -0
- data/lib/casino_core/authenticator/ldap.rb +80 -0
- data/spec/casino_core/authenticator/ldap_spec.rb +121 -0
- data/spec/spec_helper.rb +22 -0
- metadata +191 -0
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color --format documentation
|
data/.rvmrc
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
+
# development environment upon cd'ing into the directory
|
5
|
+
|
6
|
+
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
|
7
|
+
# Only full ruby name is supported here, for short names use:
|
8
|
+
# echo "rvm use 1.9.3" > .rvmrc
|
9
|
+
environment_id="ruby-1.9.3-p194@casino_core-authenticator-ldap"
|
10
|
+
|
11
|
+
# Uncomment the following lines if you want to verify rvm version per project
|
12
|
+
# rvmrc_rvm_version="1.15.8 (stable)" # 1.10.1 seams as a safe start
|
13
|
+
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
|
14
|
+
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
|
15
|
+
# return 1
|
16
|
+
# }
|
17
|
+
|
18
|
+
# First we attempt to load the desired environment directly from the environment
|
19
|
+
# file. This is very fast and efficient compared to running through the entire
|
20
|
+
# CLI and selector. If you want feedback on which environment was used then
|
21
|
+
# insert the word 'use' after --create as this triggers verbose mode.
|
22
|
+
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
|
23
|
+
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
|
24
|
+
then
|
25
|
+
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
26
|
+
[[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
|
27
|
+
\. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
|
28
|
+
else
|
29
|
+
# If the environment file has not yet been created, use the RVM CLI to select.
|
30
|
+
rvm --create "$environment_id" || {
|
31
|
+
echo "Failed to create RVM environment '${environment_id}'."
|
32
|
+
return 1
|
33
|
+
}
|
34
|
+
fi
|
35
|
+
|
36
|
+
# If you use bundler, this might be useful to you:
|
37
|
+
# if [[ -s Gemfile ]] && {
|
38
|
+
# ! builtin command -v bundle >/dev/null ||
|
39
|
+
# builtin command -v bundle | GREP_OPTIONS= \grep $rvm_path/bin/bundle >/dev/null
|
40
|
+
# }
|
41
|
+
# then
|
42
|
+
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
|
43
|
+
# gem install bundler
|
44
|
+
# fi
|
45
|
+
# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
|
46
|
+
# then
|
47
|
+
# bundle install | GREP_OPTIONS= \grep -vE '^Using|Your bundle is complete'
|
48
|
+
# fi
|
data/Gemfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
source :rubygems
|
2
|
+
|
3
|
+
# Add dependencies to develop your gem here.
|
4
|
+
# Include everything needed to run rake, tests, features, etc.
|
5
|
+
group :development do
|
6
|
+
gem 'bundler', '~> 1.2.0'
|
7
|
+
gem 'jeweler', '~> 1.8.4'
|
8
|
+
gem 'redcarpet'
|
9
|
+
gem 'yard', '~> 0.8.3', require: 'redcarpet'
|
10
|
+
end
|
11
|
+
|
12
|
+
group :development, :test do
|
13
|
+
gem 'rspec', '~> 2.12.0'
|
14
|
+
gem 'simplecov', '~> 0.7.1'
|
15
|
+
end
|
16
|
+
|
17
|
+
gem 'net-ldap', '~> 0.3.1'
|
18
|
+
gem 'casino_core'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (3.2.9)
|
5
|
+
activesupport (= 3.2.9)
|
6
|
+
builder (~> 3.0.0)
|
7
|
+
activerecord (3.2.9)
|
8
|
+
activemodel (= 3.2.9)
|
9
|
+
activesupport (= 3.2.9)
|
10
|
+
arel (~> 3.0.2)
|
11
|
+
tzinfo (~> 0.3.29)
|
12
|
+
activesupport (3.2.9)
|
13
|
+
i18n (~> 0.6)
|
14
|
+
multi_json (~> 1.0)
|
15
|
+
addressable (2.3.2)
|
16
|
+
arel (3.0.2)
|
17
|
+
builder (3.0.4)
|
18
|
+
casino_core (1.0.7)
|
19
|
+
activerecord (~> 3.2.9)
|
20
|
+
addressable (~> 2.3.2)
|
21
|
+
useragent (~> 0.4.13)
|
22
|
+
diff-lcs (1.1.3)
|
23
|
+
git (1.2.5)
|
24
|
+
i18n (0.6.1)
|
25
|
+
jeweler (1.8.4)
|
26
|
+
bundler (~> 1.0)
|
27
|
+
git (>= 1.2.5)
|
28
|
+
rake
|
29
|
+
rdoc
|
30
|
+
json (1.7.6)
|
31
|
+
multi_json (1.5.0)
|
32
|
+
net-ldap (0.3.1)
|
33
|
+
rake (10.0.3)
|
34
|
+
rdoc (3.12)
|
35
|
+
json (~> 1.4)
|
36
|
+
redcarpet (2.2.2)
|
37
|
+
rspec (2.12.0)
|
38
|
+
rspec-core (~> 2.12.0)
|
39
|
+
rspec-expectations (~> 2.12.0)
|
40
|
+
rspec-mocks (~> 2.12.0)
|
41
|
+
rspec-core (2.12.2)
|
42
|
+
rspec-expectations (2.12.1)
|
43
|
+
diff-lcs (~> 1.1.3)
|
44
|
+
rspec-mocks (2.12.1)
|
45
|
+
simplecov (0.7.1)
|
46
|
+
multi_json (~> 1.0)
|
47
|
+
simplecov-html (~> 0.7.1)
|
48
|
+
simplecov-html (0.7.1)
|
49
|
+
tzinfo (0.3.35)
|
50
|
+
useragent (0.4.15)
|
51
|
+
yard (0.8.3)
|
52
|
+
|
53
|
+
PLATFORMS
|
54
|
+
ruby
|
55
|
+
|
56
|
+
DEPENDENCIES
|
57
|
+
bundler (~> 1.2.0)
|
58
|
+
casino_core
|
59
|
+
jeweler (~> 1.8.4)
|
60
|
+
net-ldap (~> 0.3.1)
|
61
|
+
redcarpet
|
62
|
+
rspec (~> 2.12.0)
|
63
|
+
simplecov (~> 0.7.1)
|
64
|
+
yard (~> 0.8.3)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 Nils Caspar
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# casino_core-authenticator-ldap [![Build Status](https://travis-ci.org/rbCAS/casino_core-authenticator-ldap.png?branch=master)](https://travis-ci.org/rbCAS/casino_core-authenticator-ldap)
|
2
|
+
|
3
|
+
Provides mechanism to use LDAP as an authenticator for [CASinoCore](https://github.com/rbCAS/CASinoCore).
|
4
|
+
|
5
|
+
## Contributing to casino_core-authenticator-ldap
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
## Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2013 Nils Caspar. See LICENSE.txt
|
18
|
+
for further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "casino_core-authenticator-ldap"
|
18
|
+
gem.homepage = "http://rbcas.org/"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Provides mechanism to use LDAP as an authenticator for CASinoCore.}
|
21
|
+
gem.description = gem.summary
|
22
|
+
gem.email = "ncaspar@me.com"
|
23
|
+
gem.authors = ["Nils Caspar"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'yard'
|
29
|
+
YARD::Rake::YardocTask.new do |t|
|
30
|
+
t.files = FileList['lib/**/*.rb']
|
31
|
+
end
|
32
|
+
|
33
|
+
require 'rspec/core'
|
34
|
+
require 'rspec/core/rake_task'
|
35
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
36
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
37
|
+
end
|
38
|
+
|
39
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
40
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
41
|
+
spec.rcov = true
|
42
|
+
end
|
43
|
+
|
44
|
+
task :default => :spec
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'casino_core/authenticator/ldap'
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'net/ldap'
|
2
|
+
require 'casino_core/authenticator'
|
3
|
+
|
4
|
+
class CASinoCore::Authenticator::LDAP
|
5
|
+
DEFAULT_USERNAME_ATTRIBUTE = 'uid'
|
6
|
+
|
7
|
+
# @param [Hash] options
|
8
|
+
def initialize(options)
|
9
|
+
@options = options
|
10
|
+
end
|
11
|
+
|
12
|
+
def validate(username, password)
|
13
|
+
@username = username
|
14
|
+
@password = password
|
15
|
+
begin
|
16
|
+
connect
|
17
|
+
authenticate
|
18
|
+
if !@user_plain
|
19
|
+
false
|
20
|
+
else
|
21
|
+
generate_user
|
22
|
+
@user
|
23
|
+
end
|
24
|
+
rescue Net::LDAP::LdapError => e
|
25
|
+
raise CASinoCore::Authenticator::AuthenticatorError,
|
26
|
+
"LDAP authentication failed with '#{e}'. Check your authenticator configuration."
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
def connect
|
32
|
+
@ldap = Net::LDAP.new
|
33
|
+
@ldap.host = @options[:host]
|
34
|
+
@ldap.port = @options[:port]
|
35
|
+
if @options[:encryption]
|
36
|
+
@ldap.encryption(@options[:encryption].to_sym)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def authenticate
|
41
|
+
unless @options[:admin_user].nil?
|
42
|
+
@ldap.auth(@options[:admin_user], @options[:admin_password])
|
43
|
+
end
|
44
|
+
@user_plain = @ldap.bind_as(:base => @options[:base], :size => 1, :password => @password, :filter => user_filter)
|
45
|
+
end
|
46
|
+
|
47
|
+
def username_attribute
|
48
|
+
@options[:username_attribute] || DEFAULT_USERNAME_ATTRIBUTE
|
49
|
+
end
|
50
|
+
|
51
|
+
def user_filter
|
52
|
+
filter = Net::LDAP::Filter.eq(username_attribute, @username)
|
53
|
+
unless @options[:filter].nil?
|
54
|
+
filter &= Net::LDAP::Filter.construct(@options[:filter])
|
55
|
+
end
|
56
|
+
filter
|
57
|
+
end
|
58
|
+
|
59
|
+
def generate_user
|
60
|
+
@user = {
|
61
|
+
username: @user_plain[username_attribute][0],
|
62
|
+
extra_attributes: extra_attributes
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
def extra_attributes
|
67
|
+
if @options[:extra_attributes]
|
68
|
+
result = {}
|
69
|
+
@options[:extra_attributes].each do |index_result, index_ldap|
|
70
|
+
value = @user_plain[index_ldap]
|
71
|
+
if value
|
72
|
+
result[index_result] = value[0]
|
73
|
+
end
|
74
|
+
end
|
75
|
+
result
|
76
|
+
else
|
77
|
+
nil
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,121 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'casino_core/authenticator/ldap'
|
3
|
+
|
4
|
+
describe CASinoCore::Authenticator::LDAP do
|
5
|
+
let(:options) { {
|
6
|
+
:host => 'localhost',
|
7
|
+
:port => 12445,
|
8
|
+
:base => 'dc=users,dc=example.com',
|
9
|
+
:encryption => 'simple_tls',
|
10
|
+
:username_attribute => 'uid',
|
11
|
+
:extra_attributes => { :email => :mail, :fullname => :displayname }
|
12
|
+
} }
|
13
|
+
let(:subject) { described_class.new(options) }
|
14
|
+
let(:connection) { Object.new }
|
15
|
+
|
16
|
+
before(:each) do
|
17
|
+
Net::LDAP.stub(:new).and_return(connection)
|
18
|
+
[:host=, :port=, :encryption].each do |setting|
|
19
|
+
connection.stub(setting)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe '#validate' do
|
24
|
+
let(:username) { 'test' }
|
25
|
+
let(:password) { 'foo' }
|
26
|
+
let(:user_filter) { Net::LDAP::Filter.eq(options[:username_attribute], username) }
|
27
|
+
|
28
|
+
before(:each) do
|
29
|
+
connection.stub(:bind_as)
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'does the connection setup' do
|
33
|
+
connection.should_receive(:host=).with(options[:host])
|
34
|
+
connection.should_receive(:port=).with(options[:port])
|
35
|
+
connection.should_receive(:encryption).with(:"#{options[:encryption]}")
|
36
|
+
subject.validate(username, password)
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'calls the #bind_as method on the LDAP connection' do
|
40
|
+
connection.should_receive(:bind_as).with(:base => options[:base], :size => 1, :password => password, :filter => user_filter)
|
41
|
+
subject.validate(username, password)
|
42
|
+
end
|
43
|
+
|
44
|
+
context 'when validation succeeds' do
|
45
|
+
let(:fullname) { 'Example User' }
|
46
|
+
let(:email) { "#{username}@example.org" }
|
47
|
+
let(:ldap_entry) {
|
48
|
+
entry = Net::LDAP::Entry.new
|
49
|
+
{:uid => username, :displayname => fullname, :mail => email}.each do |key, value|
|
50
|
+
entry[key] = [value]
|
51
|
+
end
|
52
|
+
entry
|
53
|
+
}
|
54
|
+
before(:each) do
|
55
|
+
connection.stub(:bind_as) do
|
56
|
+
ldap_entry
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
it 'returns the user data' do
|
61
|
+
subject.validate(username, password).should == {
|
62
|
+
username: username,
|
63
|
+
extra_attributes: {
|
64
|
+
:email => email,
|
65
|
+
:fullname => fullname
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
context 'when validation fails' do
|
72
|
+
before(:each) do
|
73
|
+
connection.stub(:bind_as) do
|
74
|
+
false
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
it 'returns false' do
|
79
|
+
subject.validate(username, password).should == false
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
context 'when communication error occurs' do
|
84
|
+
before(:each) do
|
85
|
+
connection.stub(:bind_as) do
|
86
|
+
raise Net::LDAP::LdapError, 'foo'
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
it 'raises an AuthenticatorError' do
|
91
|
+
lambda {
|
92
|
+
subject.validate(username, password)
|
93
|
+
}.should raise_error(CASinoCore::Authenticator::AuthenticatorError)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
context 'with an admin user' do
|
98
|
+
before(:each) do
|
99
|
+
options.merge! :admin_user => 'admin', :admin_password => 'password'
|
100
|
+
end
|
101
|
+
|
102
|
+
it 'authenticates the admin user' do
|
103
|
+
connection.should_receive(:auth).with(options[:admin_user], options[:admin_password])
|
104
|
+
subject.validate(username, password)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
context 'with a filter' do
|
109
|
+
let(:filter_expression) { '(!(attribute=abc))' }
|
110
|
+
let(:filter) { user_filter & Net::LDAP::Filter.construct(filter_expression) }
|
111
|
+
before(:each) do
|
112
|
+
options.merge! :filter => filter_expression
|
113
|
+
end
|
114
|
+
|
115
|
+
it 'calls the #bind_as method on the LDAP connection' do
|
116
|
+
connection.should_receive(:bind_as).with(:base => options[:base], :size => 1, :password => password, :filter => filter)
|
117
|
+
subject.validate(username, password)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
|
4
|
+
require 'simplecov'
|
5
|
+
SimpleCov.start do
|
6
|
+
add_filter '/spec'
|
7
|
+
end
|
8
|
+
|
9
|
+
require 'rspec'
|
10
|
+
require 'casino_core-authenticator-ldap'
|
11
|
+
|
12
|
+
# Requires supporting files with custom matchers and macros, etc,
|
13
|
+
# in ./support/ and its subdirectories.
|
14
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
15
|
+
|
16
|
+
RSpec.configure do |config|
|
17
|
+
# Run specs in random order to surface order dependencies. If you find an
|
18
|
+
# order dependency and want to debug it, you can fix the order by providing
|
19
|
+
# the seed, which is printed after each run.
|
20
|
+
# --seed 1234
|
21
|
+
config.order = 'random'
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,191 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: casino_core-authenticator-ldap
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Nils Caspar
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-01-01 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: net-ldap
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.3.1
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.3.1
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: casino_core
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: bundler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.2.0
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.2.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: jeweler
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.8.4
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.8.4
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: redcarpet
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: yard
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.8.3
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.8.3
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rspec
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.12.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 2.12.0
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: simplecov
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 0.7.1
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 0.7.1
|
142
|
+
description: Provides mechanism to use LDAP as an authenticator for CASinoCore.
|
143
|
+
email: ncaspar@me.com
|
144
|
+
executables: []
|
145
|
+
extensions: []
|
146
|
+
extra_rdoc_files:
|
147
|
+
- LICENSE.txt
|
148
|
+
- README.md
|
149
|
+
files:
|
150
|
+
- .document
|
151
|
+
- .rspec
|
152
|
+
- .rvmrc
|
153
|
+
- Gemfile
|
154
|
+
- Gemfile.lock
|
155
|
+
- LICENSE.txt
|
156
|
+
- README.md
|
157
|
+
- Rakefile
|
158
|
+
- VERSION
|
159
|
+
- lib/casino_core-authenticator-ldap.rb
|
160
|
+
- lib/casino_core/authenticator/ldap.rb
|
161
|
+
- spec/casino_core/authenticator/ldap_spec.rb
|
162
|
+
- spec/spec_helper.rb
|
163
|
+
homepage: http://rbcas.org/
|
164
|
+
licenses:
|
165
|
+
- MIT
|
166
|
+
post_install_message:
|
167
|
+
rdoc_options: []
|
168
|
+
require_paths:
|
169
|
+
- lib
|
170
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ! '>='
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
176
|
+
segments:
|
177
|
+
- 0
|
178
|
+
hash: -333943744723326150
|
179
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
+
none: false
|
181
|
+
requirements:
|
182
|
+
- - ! '>='
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '0'
|
185
|
+
requirements: []
|
186
|
+
rubyforge_project:
|
187
|
+
rubygems_version: 1.8.24
|
188
|
+
signing_key:
|
189
|
+
specification_version: 3
|
190
|
+
summary: Provides mechanism to use LDAP as an authenticator for CASinoCore.
|
191
|
+
test_files: []
|