simple_ldap_authenticator 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simple_ldap_authenticator.rb +3 -1
- metadata +17 -5
@@ -92,7 +92,9 @@ class SimpleLdapAuthenticator
|
|
92
92
|
|
93
93
|
# Check the validity of a login/password combination
|
94
94
|
def valid?(login, password)
|
95
|
-
if
|
95
|
+
if password.to_s == ''
|
96
|
+
false
|
97
|
+
elsif ldap_library == 'net/ldap'
|
96
98
|
connection.authenticate(login_format % login.to_s, password.to_s)
|
97
99
|
begin
|
98
100
|
if connection.bind
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_ldap_authenticator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 21
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Jeremy Evans
|
@@ -9,7 +15,7 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2011-08-03 00:00:00 -07:00
|
13
19
|
default_executable:
|
14
20
|
dependencies: []
|
15
21
|
|
@@ -38,21 +44,27 @@ rdoc_options:
|
|
38
44
|
require_paths:
|
39
45
|
- lib
|
40
46
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
none: false
|
41
48
|
requirements:
|
42
49
|
- - ">="
|
43
50
|
- !ruby/object:Gem::Version
|
51
|
+
hash: 3
|
52
|
+
segments:
|
53
|
+
- 0
|
44
54
|
version: "0"
|
45
|
-
version:
|
46
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
47
57
|
requirements:
|
48
58
|
- - ">="
|
49
59
|
- !ruby/object:Gem::Version
|
60
|
+
hash: 3
|
61
|
+
segments:
|
62
|
+
- 0
|
50
63
|
version: "0"
|
51
|
-
version:
|
52
64
|
requirements: []
|
53
65
|
|
54
66
|
rubyforge_project:
|
55
|
-
rubygems_version: 1.3.
|
67
|
+
rubygems_version: 1.3.7
|
56
68
|
signing_key:
|
57
69
|
specification_version: 3
|
58
70
|
summary: Easy authentication to an LDAP server(s)
|