Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #20 from cherweg/master

Add the encryption to LDAP config
  • Loading branch information...
commit 740298e258103cd4cacbfdd18ba815b27c4bc619 2 parents 07b87d1 + b01256e
@mkristian authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/adapters/ldap_adapter.rb
View
6 lib/adapters/ldap_adapter.rb
@@ -44,6 +44,12 @@ def initialize(options)
})
end
+ if not options[:encryption].nil? then
+ @config.update(
+ :encryption => {:method=>options[:encryption][:method], :tls_options=>options[:encryption][:tls_options]}
+ )
+ end
+
if not options[:adapter_options].nil? then
options[:adapter_options].each do |k,v|
@config[k.to_sym] = v
Please sign in to comment.
Something went wrong with that request. Please try again.