Skip to content

Commit

Permalink
Ability to add socket_class while instantiating net_ldap connection
Browse files Browse the repository at this point in the history
  • Loading branch information
dhivyadandapani authored and zeroSteiner committed Dec 7, 2024
1 parent a562790 commit dfe625e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/net/ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ def initialize(args = {})
@force_no_page = args[:force_no_page] || DefaultForceNoPage
@encryption = normalize_encryption(args[:encryption]) # may be nil
@connect_timeout = args[:connect_timeout]
@socket_class = args[:socket_class]

if pr = @auth[:password] and pr.respond_to?(:call)
@auth[:password] = pr.call
Expand Down Expand Up @@ -1343,6 +1344,7 @@ def new_connection
:hosts => @hosts,
:encryption => @encryption,
:instrumentation_service => @instrumentation_service,
:socket_class => @socket_class,
:connect_timeout => @connect_timeout

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

0 comments on commit dfe625e

Please sign in to comment.