From afe6c84f859cc9155309c00bf9de0857a251e1f8 Mon Sep 17 00:00:00 2001
From: Dhivya Dandapani
Date: Wed, 13 May 2020 19:20:15 +0530
Subject: [PATCH] Ability to pass verbose flag while initiating net-ldap
(cherry picked from commit b54d7b1d798eab84e368193186e68e08498edb36)
---
lib/net/ldap.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb
index 9c13a97d..edb5d078 100644
--- a/lib/net/ldap.rb
+++ b/lib/net/ldap.rb
@@ -547,7 +547,7 @@ def initialize(args = {})
@host = args[:host] || DefaultHost
@port = args[:port] || DefaultPort
@hosts = args[:hosts]
- @verbose = false # Make this configurable with a switch on the class.
+ @verbose = args[:verbose] || false # Make this configurable with a switch on the class.
@auth = args[:auth] || DefaultAuth
@base = args[:base] || DefaultTreebase
@force_no_page = args[:force_no_page] || DefaultForceNoPage