blueauth 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blueauth.rb +2 -2
- data/lib/blueauth/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: c01bbebd11eecd763d3f342295ab3acf83c22f81
|
4
|
+
data.tar.gz: dc8d3aa3004de6e0b53d42b66797acd5caf60171
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3f23282aab6d3e5e104153104034082084dd52ba6447f31f07b6578408eca2597f0015c75451ee9c6697730959bc31ec9894891290439d8810038767572ffba
|
7
|
+
data.tar.gz: 576cb4eef2e719583be6ad1591cde2f9684d51f3abbe431c90a5db6dfd5db78e6dd42658f2834274a837028bcbddc4cda3feb323a368d884becd3875d7f0613f
|
data/lib/blueauth.rb
CHANGED
@@ -81,13 +81,13 @@ module Blueauth
|
|
81
81
|
|
82
82
|
def self.bluegroups dn
|
83
83
|
result = []
|
84
|
-
bg = Net::LDAP.new host:
|
84
|
+
bg = Net::LDAP.new host: BPHOST, port: 636, base: BGBASE, :encryption => :simple_tls
|
85
85
|
bgf = Net::LDAP::Filter.eq('uniquemember', dn)
|
86
86
|
begin
|
87
87
|
bgres = bg.search(base: BGBASE, filter: bgf, attributes: ['cn'])
|
88
88
|
bgres.each {|g| result << g.cn.first}
|
89
89
|
rescue => e
|
90
|
-
|
90
|
+
raise Blueauth::BlueError, "BlueGroup Search issue -> #{e.message}"
|
91
91
|
end
|
92
92
|
|
93
93
|
return result
|
data/lib/blueauth/version.rb
CHANGED