blueauth 0.0.11 → 0.0.12
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.
- checksums.yaml +4 -4
- data/lib/blueauth.rb +3 -3
- 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: 9ca129d26799f295938146285368b1e7fa5ae6b1
|
|
4
|
+
data.tar.gz: 573f817a1663f6958ef0a0560cb6d6440e62c513
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 756b134ae0e5601b7b89a8e8157bfe9440652bb45c7e07eb6eb30387b0780513bce682740938bf8a4c0dedcf6e0137628e252ab5694fecc97a1078d00d2322b5
|
|
7
|
+
data.tar.gz: a9c11445ff322a445beaf4fdbcb93f1cec2bdea0a3686cf05b30ac43ebd7ff1287c2116e4e755889d8b882641a06d4b1754aea96784b76d66b062062d8b9a1e8
|
data/lib/blueauth.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Blueauth
|
|
|
16
16
|
# using this method a user can be authenticated
|
|
17
17
|
# Intraned ID, password are mandatory
|
|
18
18
|
def self.authenticate(id, password)
|
|
19
|
-
ldap = Net::LDAP.new hosts: BPHOSTS, base: BPBASE, :encryption => { :method => :simple_tls
|
|
19
|
+
ldap = Net::LDAP.new hosts: BPHOSTS, base: BPBASE, :encryption => { :method => :simple_tls, :tls_options => { :verify_mode => OpenSSL::SSL::VERIFY_NONE } }
|
|
20
20
|
user = search id.strip
|
|
21
21
|
unless user.nil?
|
|
22
22
|
ldap.auth user[:dn], password.strip
|
|
@@ -66,7 +66,7 @@ module Blueauth
|
|
|
66
66
|
end
|
|
67
67
|
filter = Net::LDAP::Filter.eq(searchfield, id) & Net::LDAP::Filter.eq('objectclass', "ibmPerson")
|
|
68
68
|
begin
|
|
69
|
-
ldap = Net::LDAP.new hosts: BPHOSTS, base: BPBASE, :encryption => { :method => :simple_tls
|
|
69
|
+
ldap = Net::LDAP.new hosts: BPHOSTS, base: BPBASE, :encryption => { :method => :simple_tls, :tls_options => { :verify_mode => OpenSSL::SSL::VERIFY_NONE } }
|
|
70
70
|
user_array = ldap.search(base: BPBASE, filter: filter, size: 1)
|
|
71
71
|
rescue => e
|
|
72
72
|
raise Blueauth::BlueError, "BluePages Search issue -> #{e.message}"
|
|
@@ -83,7 +83,7 @@ module Blueauth
|
|
|
83
83
|
|
|
84
84
|
def self.bluegroups(dn)
|
|
85
85
|
result = []
|
|
86
|
-
bg = Net::LDAP.new hosts: BPHOSTS, base: BGBASE, :encryption => { :method => :simple_tls
|
|
86
|
+
bg = Net::LDAP.new hosts: BPHOSTS, base: BGBASE, :encryption => { :method => :simple_tls, :tls_options => { :verify_mode => OpenSSL::SSL::VERIFY_NONE } }
|
|
87
87
|
bgf = Net::LDAP::Filter.eq('uniquemember', dn)
|
|
88
88
|
begin
|
|
89
89
|
bgres = bg.search(base: BGBASE, filter: bgf, attributes: ['cn'])
|
data/lib/blueauth/version.rb
CHANGED