# File lib/net/ldap.rb, line 728
  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.success?
  end