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