VOMSService
VOMSService class encapsulates connection to the VOMS service for a given VO
- class DIRAC.Core.Security.VOMSService.VOMSService(vo=None, compareWithIAM=False, useIAM=False)
Bases:
object
- __init__(vo=None, compareWithIAM=False, useIAM=False)
c’tor
- Parameters:
vo (str) – name of the virtual organization (community)
compareWithIAM – if true, also dump the list of users from IAM and compare
useIAM – if True, use Iam instead of VOMS
- attGetUserNickname(dn, _ca=None)
Get user nickname for a given DN if any
- param str dn:
user DN
- param str _ca:
CA, kept for backward compatibility
- return:
S_OK with Value: nickname
Deprecated: Not used, it will be removed
- getUsers()
Get all the users of the VOMS VO with their detailed information
- Returns:
dictionary of: “Users”: user dictionary keyed by the user DN, “Errors”: empty list