Skip to content

Commit c8bd985

Browse files
committed
caches bind result
aligns implementation of open with other methods, so the result becomes accessible via get_operation_result
1 parent 8ba3f95 commit c8bd985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def open
712712
begin
713713
@open_connection = new_connection
714714
payload[:connection] = @open_connection
715-
payload[:bind] = @open_connection.bind(@auth)
715+
payload[:bind] = @result = @open_connection.bind(@auth)
716716
yield self
717717
ensure
718718
@open_connection.close if @open_connection

0 commit comments

Comments
 (0)