Skip to content

Commit d560a32

Browse files
authored
Merge pull request rapid7#19751 from zeroSteiner/fix/issue/19744
Fix missing attributes on LDAP SSL sockets
2 parents 2632da7 + c810037 commit d560a32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/rex/proto/ldap.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require 'forwardable'
12
require 'net/ldap'
23
require 'rex/socket'
34

@@ -205,6 +206,8 @@ def initialize(server)
205206

206207
if server[:encryption]
207208
setup_encryption server[:encryption]
209+
@conn.extend Forwardable
210+
@conn.def_delegators :@io, :localinfo, :peerinfo
208211
end
209212

210213
yield self if block_given?

0 commit comments

Comments
 (0)