# File lib/net/ldap.rb, line 711 def bind(auth = @auth) if @open_connection @result = @open_connection.bind(auth) else begin conn = Connection.new(:host => @host, :port => @port, :encryption => @encryption) @result = conn.bind(auth) ensure conn.close if conn end end @result == 0 end