Skip to content

Commit 6a2f702

Browse files
committed
Giving Hash, it is used as encryption options.
1 parent 11ad905 commit 6a2f702

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/net/ldap.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ def authenticate(username, password)
590590
# }
591591
def encryption(args)
592592
return if args.nil?
593+
return @encryption = args if args.is_a? Hash
593594

594595
case method = args.to_sym
595596
when :simple_tls, :start_tls

0 commit comments

Comments
 (0)