From 2bd413abca9da7125767af2e3cd56a90f1cefd2d Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Tue, 3 Sep 2013 08:39:30 +0100 Subject: [PATCH] Change name_attribute defaults to 'cn' --- users_ldap_mail/users_ldap_model.py | 1 + users_ldap_mail/users_ldap_view.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 @@ - +