Skip to content

Commit

Permalink
Use Net::LDAP#encryption properly
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKniephoff committed Jan 26, 2016
1 parent e124f2c commit e431826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omniauth-ldap/adaptor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def initialize(configuration={})
config = {
:host => @host,
:port => @port,
:encryption => method,
:base => @base
}
@bind_method = @try_sasl ? :sasl : (@allow_anonymous||!@bind_dn||!@password ? :anonymous : :simple)
Expand All @@ -62,6 +61,7 @@ def initialize(configuration={})
}
config[:auth] = @auth
@connection = Net::LDAP.new(config)
@connection.encryption(method)
end

#:base => "dc=yourcompany, dc=com",
Expand Down

0 comments on commit e431826

Please sign in to comment.