Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions users_ldap_mail/models/users_ldap_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ class CompanyLDAP(models.Model):
_inherit = 'res.company.ldap'

name_attribute = fields.Char(
'Name Attribute', _defaults='cn',
'Name Attribute',
default='cn',
help="By default 'cn' is used. "
"For ActiveDirectory you might use 'displayName' instead.")
"For ActiveDirectory you might use 'displayName' instead.",
)
mail_attribute = fields.Char(
'E-mail attribute', _defaults='mail',
help="LDAP attribute to use to retrieve em-mail address.")
'E-mail attribute',
default='mail',
help="LDAP attribute to use to retrieve em-mail address.",
)

def get_ldap_dicts(self):
"""
Expand Down