CERNLDAPSyncPlugin

class DIRAC.ConfigurationSystem.Client.SyncPlugins.CERNLDAPSyncPlugin.CERNLDAPSyncPlugin

Bases: object

Synchronization plugin for mapping new users to CERN accounts.

This plugin results in new users having two additional fields in the CS, CERNAccountType and PrimaryCERNAccount. If the new nickname does not have a corresponding CERN account it will be rejected.

__init__()

Initialise the plugin and underlying LDAP connection.

verifyAndUpdateUserInfo(username, userDict)

Add the “CERNAccountType” and “PrimaryCERNAccount” values to the CS attributes.

Parameters:
  • username – DIRAC name of the user to be added

  • userDict – user information collected by the VOMS2CSAgent

Returns:

None

Raises:

ValueError – if no corresponding CERN account is found.