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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc0cbdf0ab8dc8ba993663b4796822de667f3eab
4
- data.tar.gz: 78584d1b6afb884c1bea77b001a75a40390e0c89
3
+ metadata.gz: 9ca129d26799f295938146285368b1e7fa5ae6b1
4
+ data.tar.gz: 573f817a1663f6958ef0a0560cb6d6440e62c513
5
5
  SHA512:
6
- metadata.gz: c116be52ba7d7d2295cabd480a4a4a5daebaf381ef5b93fc543e8897cc0a71baa972ed9e80db99cbd26ecf9fa0c80fc2931e713525ff39f551034d43b72c2942
7
- data.tar.gz: 6f57fd6c464ef247db2d153cd167eb0638f651796441abf619969489c4461f44e4c060de97dff5cc8853e4027fdac9757ee9906290c2ad34bc74e3513e825cb4
6
+ metadata.gz: 756b134ae0e5601b7b89a8e8157bfe9440652bb45c7e07eb6eb30387b0780513bce682740938bf8a4c0dedcf6e0137628e252ab5694fecc97a1078d00d2322b5
7
+ data.tar.gz: a9c11445ff322a445beaf4fdbcb93f1cec2bdea0a3686cf05b30ac43ebd7ff1287c2116e4e755889d8b882641a06d4b1754aea96784b76d66b062062d8b9a1e8
@@ -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 }#, :tls_options => { :verify_mode => OpenSSL::SSL::VERIFY_NONE } }
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 }#, :tls_options => { :verify_mode => OpenSSL::SSL::VERIFY_NONE } }
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 }#, :tls_options => { :verify_mode => OpenSSL::SSL::VERIFY_NONE } }
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'])
@@ -1,3 +1,3 @@
1
1
  module Blueauth
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blueauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - zoltan-izso