Skip to content

Commit 99d93ea

Browse files
committed
feat (LDAP) expose connection socket class
1 parent 3bf849d commit 99d93ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/net/ldap.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ def initialize(args = {})
541541
@force_no_page = args[:force_no_page] || DefaultForceNoPage
542542
@encryption = normalize_encryption(args[:encryption]) # may be nil
543543
@connect_timeout = args[:connect_timeout]
544+
@socket_class = args[:socket_class]
544545

545546
if pr = @auth[:password] and pr.respond_to?(:call)
546547
@auth[:password] = pr.call
@@ -1305,7 +1306,8 @@ def new_connection
13051306
:hosts => @hosts,
13061307
:encryption => @encryption,
13071308
:instrumentation_service => @instrumentation_service,
1308-
:connect_timeout => @connect_timeout
1309+
:connect_timeout => @connect_timeout,
1310+
:socket_class => @socket_class
13091311

13101312
# Force connect to see if there's a connection error
13111313
connection.socket

0 commit comments

Comments
 (0)