def getResourceAgents(session)
  resource_agent_list = {}
  stdout, stderr, retval = run_cmd(session, PCS, "resource", "list", "--nodesc")
  if retval != 0
    $logger.error("Error running 'pcs resource list --nodesc")
    $logger.error(stdout + stderr)
    return {}
  end

  agents = stdout
  agents.each { |a|
    ra = ResourceAgent.new
    ra.name = a.chomp
    resource_agent_list[ra.name] = ra
  }
  return resource_agent_list
end
Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.