'Compose values for a new resource of model res_users,
based upon the retrieved ldap entry and the LDAP settings.
:param dict conf: LDAP configuration
:param login: the new user\'s login
:param tuple ldap_entry: single LDAP result (dn, attrs)
:return: parameters for a new resource of model res_users
:rtype: dict'

def map_ldap_attributes(self, conf, login, ldap_entry):

    return {'name': ldap_entry[1]['cn'][0], 'login': login, 'company_id': conf['company'][0]}
