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