Skip to content

Commit

Permalink
Giving Hash, it is used as encryption options.
Browse files Browse the repository at this point in the history
  • Loading branch information
satoryu committed Nov 25, 2015
1 parent 11ad905 commit 1a1f700
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/net/ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ def authenticate(username, password)
# }
def encryption(args)
return if args.nil?
@encryption = args if args.is_a? Hash

case method = args.to_sym
when :simple_tls, :start_tls
Expand Down

0 comments on commit 1a1f700

Please sign in to comment.