# File lib/net/ldap.rb, line 373
373:     def initialize args = {}
374:       @host = args[:host] || DefaultHost
375:       @port = args[:port] || DefaultPort
376:       @verbose = false # Make this configurable with a switch on the class.
377:       @auth = args[:auth] || DefaultAuth
378:       @base = args[:base] || DefaultTreebase
379:       encryption args[:encryption] # may be nil
380: 
381:       if pr = @auth[:password] and pr.respond_to?(:call)
382:         @auth[:password] = pr.call
383:       end
384: 
385:       # This variable is only set when we are created with LDAP::open.
386:       # All of our internal methods will connect using it, or else
387:       # they will create their own.
388:       @open_connection = nil
389:     end