From c8100375d9654f606c8e766d1fefcf34c1c63a1e Mon Sep 17 00:00:00 2001 From: Spencer McIntyre Date: Thu, 19 Dec 2024 14:52:08 -0500 Subject: [PATCH] Fix missing attributes on SSL sockets --- lib/rex/proto/ldap.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/rex/proto/ldap.rb b/lib/rex/proto/ldap.rb index a851bac39f19..f285fcf08a49 100644 --- a/lib/rex/proto/ldap.rb +++ b/lib/rex/proto/ldap.rb @@ -1,3 +1,4 @@ +require 'forwardable' require 'net/ldap' require 'rex/socket' @@ -205,6 +206,8 @@ def initialize(server) if server[:encryption] setup_encryption server[:encryption] + @conn.extend Forwardable + @conn.def_delegators :@io, :localinfo, :peerinfo end yield self if block_given?