VOMS2CSAgent

VOMS2CSAgent performs the following operations:

  • Adds new users for the given VO taking into account the VO VOMS information
  • Updates the data in the CS for existing users including DIRAC group membership
class DIRAC.ConfigurationSystem.Agent.VOMS2CSAgent.VOMS2CSAgent(*args, **kwargs)

Bases: DIRAC.Core.Base.AgentModule.AgentModule

am_Enabled()
am_checkStopAgentFile()
am_createStopAgentFile()
am_disableMonitoring()
am_getBasePath()
am_getControlDirectory()
am_getCyclesDone()
am_getMaxCycles()
am_getModuleParam(optionName)
am_getOption(optionName, defaultValue=None)
am_getPollingTime()
am_getShifterProxyLocation()
am_getStopAgentFile()
am_getWatchdogTime()
am_getWorkDirectory()
am_go()
am_initialize(*initArgs)
am_monitoringEnabled()
am_removeStopAgentFile()
am_secureCall(functor, args=(), name=False)
am_setModuleParam(optionName, value)
am_setOption(optionName, value)
am_stopExecution()
beginExecution()
endExecution()
execute()
finalize()
getVOUserData(vo, refreshFlag=False)

Get a report for users of a given VO

Parameters:vo (str) – VO name
Returns:S_OK/S_ERROR, Value = user description dictionary
getVOUserReport(vo)
Parameters:vo (str) – VO name
Returns:report string
initialize()

Initialize the default parameters

DIRAC.ConfigurationSystem.Agent.VOMS2CSAgent.getUserName(dn, mail, vo)

Utility to construct user name :param str dn: user DN :param str mail: user e-mail address :return str: user name

DIRAC.ConfigurationSystem.Agent.VOMS2CSAgent.getUserNameFromDN(dn, vo)

Utility to construct a reasonable user name from the user DN :param str dn: user DN :return str: user name

DIRAC.ConfigurationSystem.Agent.VOMS2CSAgent.getUserNameFromMail(mail)

Utility to construct a reasonable user name from the user mail address

Parameters:mail (str) – e-mail address
Return str:user name
DIRAC.ConfigurationSystem.Agent.VOMS2CSAgent.getVOMSVOs(voList=None)

Get all VOs that have VOMS correspondence

Returns:dictionary of the VO -> VOMSName correspondence