Skip to content

Commit ca5f740

Browse files
committed
Include instrumentation_service with all new Connections
1 parent 6c4ada5 commit ca5f740

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

lib/net/ldap.rb

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,11 @@ def add(args)
845845
else
846846
@result = 0
847847
begin
848-
conn = Connection.new(:host => @host, :port => @port,
849-
:encryption => @encryption)
848+
conn = Connection.new \
849+
:host => @host,
850+
:port => @port,
851+
:encryption => @encryption,
852+
:instrumentation_service => @instrumentation_service
850853
if (@result = conn.bind(args[:auth] || @auth)).result_code == 0
851854
@result = conn.add(args)
852855
end
@@ -943,8 +946,11 @@ def modify(args)
943946
else
944947
@result = 0
945948
begin
946-
conn = Connection.new(:host => @host, :port => @port,
947-
:encryption => @encryption)
949+
conn = Connection.new \
950+
:host => @host,
951+
:port => @port,
952+
:encryption => @encryption,
953+
:instrumentation_service => @instrumentation_service
948954
if (@result = conn.bind(args[:auth] || @auth)).result_code == 0
949955
@result = conn.modify(args)
950956
end
@@ -1015,8 +1021,11 @@ def rename(args)
10151021
else
10161022
@result = 0
10171023
begin
1018-
conn = Connection.new(:host => @host, :port => @port,
1019-
:encryption => @encryption)
1024+
conn = Connection.new \
1025+
:host => @host,
1026+
:port => @port,
1027+
:encryption => @encryption,
1028+
:instrumentation_service => @instrumentation_service
10201029
if (@result = conn.bind(args[:auth] || @auth)).result_code == 0
10211030
@result = conn.rename(args)
10221031
end
@@ -1043,8 +1052,11 @@ def delete(args)
10431052
else
10441053
@result = 0
10451054
begin
1046-
conn = Connection.new(:host => @host, :port => @port,
1047-
:encryption => @encryption)
1055+
conn = Connection.new \
1056+
:host => @host,
1057+
:port => @port,
1058+
:encryption => @encryption,
1059+
:instrumentation_service => @instrumentation_service
10481060
if (@result = conn.bind(args[:auth] || @auth)).result_code == 0
10491061
@result = conn.delete(args)
10501062
end

0 commit comments

Comments
 (0)