Skip to content

Commit b8b9042

Browse files
committedMay 15, 2020
Ability to add socket_class while instantiating net_ldap connection
1 parent e25b881 commit b8b9042

File tree

1 file changed

+2
-0
lines changed

1 file 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

0 commit comments

Comments
 (0)