ucb_groups 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ucb_groups/ldap_conn.rb +4 -3
- data/lib/ucb_groups/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1bdf549f13edf65d636beb2404cd2a5b6157ddb
|
4
|
+
data.tar.gz: aa0116d5ffea6cdc906625032a27e6159d4b273c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 589a70bcc804a10e3f7c9e8ef2ffd0c233b0155f73f306ef6dcba4cd1af5b4d0d12a64b3a7ddca312d4794e0462902f90101cd2f3cbe063fc0f352f7d672982d
|
7
|
+
data.tar.gz: fc314a5db50aac3ad35b183acc134d7e785eb9d93e9658765175126b27f14a33d9eb427c8286982a7a269daf5e86638b4873dca26e5f9ef0a91e32dab9f10fa8
|
data/lib/ucb_groups/ldap_conn.rb
CHANGED
@@ -8,21 +8,22 @@ module UcbGroups
|
|
8
8
|
raise(LdapBindFailedException)
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.authenticate(username, password)
|
11
|
+
def self.authenticate(username, password, host='nds.berkeley.edu')
|
12
12
|
@username = username
|
13
13
|
@password = password
|
14
|
+
@host = host
|
14
15
|
end
|
15
16
|
|
16
17
|
def self.authenticate_from_config(config_file)
|
17
18
|
conf = YAML.load_file(config_file)
|
18
|
-
|
19
|
+
self.authenticate(conf['username'], conf['password'], conf['host'])
|
19
20
|
end
|
20
21
|
|
21
22
|
private
|
22
23
|
|
23
24
|
def self.auth_info
|
24
25
|
@auth_info ||= {
|
25
|
-
host:
|
26
|
+
host: @host,
|
26
27
|
auth: {
|
27
28
|
method: :simple,
|
28
29
|
username: @username,
|
data/lib/ucb_groups/version.rb
CHANGED