diff --git a/users_ldap_mail/users_ldap_model.py b/users_ldap_mail/users_ldap_model.py index a05ac0c50..0bb72a2de 100644 --- a/users_ldap_mail/users_ldap_model.py +++ b/users_ldap_mail/users_ldap_model.py @@ -34,6 +34,7 @@ class CompanyLDAP(orm.Model): help="LDAP attribute to use to retrieve em-mail address."), } _defaults = { + 'name_attribute': 'cn', 'mail_attribute': 'mail', } diff --git a/users_ldap_mail/users_ldap_view.xml b/users_ldap_mail/users_ldap_view.xml index 945a5651e..9395e602f 100644 --- a/users_ldap_mail/users_ldap_view.xml +++ b/users_ldap_mail/users_ldap_view.xml @@ -8,7 +8,7 @@ - +