Browse Source

Change name_attribute defaults to 'cn'

pull/2/head
Daniel Reis 11 years ago
parent
commit
2bd413abca
  1. 1
      users_ldap_mail/users_ldap_model.py
  2. 2
      users_ldap_mail/users_ldap_view.xml

1
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',
}

2
users_ldap_mail/users_ldap_view.xml

@ -8,7 +8,7 @@
<field name="arch" type="xml">
<field name="ldap_filter" position="after">
<field name="name_attribute" placeholder="e.g. displayName"/>
<field name="name_attribute"/>
<field name="mail_attribute"/>
</field>

Loading…
Cancel
Save