Skip to content

Commit 6790cea

Browse files
committed
Construct Connection with instrumentation service in search
1 parent c6730f7 commit 6790cea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/net/ldap.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,11 @@ def search(args = {})
652652
}
653653
else
654654
begin
655-
conn = Net::LDAP::Connection.new(:host => @host, :port => @port,
656-
:encryption => @encryption)
655+
conn = Net::LDAP::Connection.new \
656+
:host => @host,
657+
:port => @port,
658+
:encryption => @encryption,
659+
:instrumentation_service => @instrumentation_service
657660
if (@result = conn.bind(args[:auth] || @auth)).result_code == 0
658661
@result = conn.search(args) { |entry|
659662
result_set << entry if result_set

0 commit comments

Comments
 (0)