|
|
@ -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): |
|
|
|
""" |
|
|
|