Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6da7f5e

Browse files
committedMay 14, 2020
Ability to add socket_class while instantiating net_ldap connection
1 parent e25b881 commit 6da7f5e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎lib/net/ldap.rb

+2
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ def initialize(args = {})
553553
@force_no_page = args[:force_no_page] || DefaultForceNoPage
554554
@encryption = normalize_encryption(args[:encryption]) # may be nil
555555
@connect_timeout = args[:connect_timeout]
556+
@socket_class = args[:socket_class]
556557

557558
if pr = @auth[:password] and pr.respond_to?(:call)
558559
@auth[:password] = pr.call
@@ -1315,6 +1316,7 @@ def new_connection
13151316
:hosts => @hosts,
13161317
:encryption => @encryption,
13171318
:instrumentation_service => @instrumentation_service,
1319+
:socket_class => @socket_class,
13181320
:connect_timeout => @connect_timeout
13191321

13201322
# Force connect to see if there's a connection error

‎net-ldap-0.16.2.gem

92 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.