auth.ldap Extension

class auth_ldap_extension.NHClinicalLDAPExtension(pool, cr)[source]
map_ldap_attributes(*args, **kwargs)[source]

Compose values for a new resource of model res_users, based upon the retrieved ldap entry and the LDAP settings.

Parameters:
  • conf (dict) – LDAP configuration
  • login – the new user’s login
  • ldap_entry (tuple) – single LDAP result (dn, attrs)
Returns:

parameters for a new resource of model res_users

Return type:

dict