Skip to content

Commit 3623733

Browse files
committed
Fix Net::LDAP deprecation warning
> Deprecation warning: please give :encryption option as a Hash to Net::LDAP.new
1 parent 57f0e26 commit 3623733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/omniauth-ldap/adaptor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def initialize(configuration={})
6060
:password => @password
6161
}
6262
config[:auth] = @auth
63+
config[:encryption] = method
6364
@connection = Net::LDAP.new(config)
64-
@connection.encryption(method)
6565
end
6666

6767
#:base => "dc=yourcompany, dc=com",

0 commit comments

Comments
 (0)