Skip to content

Commit dfe625e

Browse files
dhivyadandapanizeroSteiner
authored andcommitted
Ability to add socket_class while instantiating net_ldap connection
1 parent a562790 commit dfe625e

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
@@ -556,6 +556,7 @@ def initialize(args = {})
556556
@force_no_page = args[:force_no_page] || DefaultForceNoPage
557557
@encryption = normalize_encryption(args[:encryption]) # may be nil
558558
@connect_timeout = args[:connect_timeout]
559+
@socket_class = args[:socket_class]
559560

560561
if pr = @auth[:password] and pr.respond_to?(:call)
561562
@auth[:password] = pr.call
@@ -1343,6 +1344,7 @@ def new_connection
13431344
:hosts => @hosts,
13441345
:encryption => @encryption,
13451346
:instrumentation_service => @instrumentation_service,
1347+
:socket_class => @socket_class,
13461348
:connect_timeout => @connect_timeout
13471349

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

0 commit comments

Comments
 (0)