puavo_authentication 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/puavo/authentication.rb +1 -0
- metadata +4 -4
data/lib/puavo/authentication.rb
CHANGED
@@ -15,6 +15,7 @@ module Puavo
|
|
15
15
|
if user.bind(password)
|
16
16
|
host = LdapBase.configuration[:host]
|
17
17
|
base = LdapBase.base.to_s
|
18
|
+
user.remove_connection
|
18
19
|
LdapBase.ldap_setup_connection(host, base, user.dn, password)
|
19
20
|
|
20
21
|
# Allow authetication only if user is School Admin in the some School or organisation owner.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puavo_authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jouni Korhonen
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-27 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|