socialcast_ldap_integration 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -80,8 +80,9 @@ module Socialcast
80
80
  host = connection_options['host']
81
81
  port = connection_options['port']
82
82
  ssl = connection_options['ssl']
83
-
84
- ldap = Net::LDAP.new :host => host, :port => port, :base => base
83
+ options = {:host => host, :port => port, :base => base}
84
+ options[:encryption] = :simple_tls if ssl
85
+ ldap = Net::LDAP.new options
85
86
  ldap.auth searcher_username, searcher_password
86
87
 
87
88
  return ldap
@@ -1,5 +1,5 @@
1
1
  module Socialcast
2
2
  module LdapIntegration
3
- VERSION = "1.1.7"
3
+ VERSION = "1.1.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socialcast_ldap_integration
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 7
10
- version: 1.1.7
9
+ - 8
10
+ version: 1.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mitch Williams
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-07-05 00:00:00 -07:00
20
+ date: 2011-12-08 00:00:00 -08:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements: []
81
81
 
82
82
  rubyforge_project: socialcast_ldap_integration
83
- rubygems_version: 1.6.2
83
+ rubygems_version: 1.5.3
84
84
  signing_key:
85
85
  specification_version: 3
86
86
  summary: Provides support for connecting to and traversing LDAP trees.