puavo_authentication 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/puavo/connection.rb +6 -0
- metadata +4 -4
data/lib/puavo/connection.rb
CHANGED
@@ -5,11 +5,17 @@ module Puavo
|
|
5
5
|
end
|
6
6
|
|
7
7
|
module ClassMethods
|
8
|
+
# Set base (organsiation) and bind by logged in user to ldap server.
|
8
9
|
def ldap_setup_connection(host, base, dn, password)
|
9
10
|
setup_connection( ensure_configuration.merge( { "host" => host,
|
10
11
|
"base" => base,
|
11
12
|
"bind_dn" => dn,
|
12
13
|
"password" => password } ) )
|
14
|
+
|
15
|
+
# Updated subclasses base value.
|
16
|
+
LdapBase.subclasses.each do |_subclass|
|
17
|
+
Class.class_eval(_subclass).base = base
|
18
|
+
end
|
13
19
|
end
|
14
20
|
end
|
15
21
|
end
|
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: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
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-09-
|
18
|
+
date: 2010-09-21 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|