|
@ -28,11 +28,12 @@ class CompanyLDAP(orm.Model): |
|
|
_inherit = 'res.company.ldap' |
|
|
_inherit = 'res.company.ldap' |
|
|
_columns = { |
|
|
_columns = { |
|
|
'name_attribute': fields.char('Name Attribute', size=64, |
|
|
'name_attribute': fields.char('Name Attribute', size=64, |
|
|
help="Default in 'cn'. For an AD you could use 'displayName' instead."), |
|
|
|
|
|
|
|
|
help="LDAP attribute for the user's name. Usually 'cn' or 'displayName'"), |
|
|
'mail_attribute': fields.char('E-mail attribute', size=64, |
|
|
'mail_attribute': fields.char('E-mail attribute', size=64, |
|
|
help="Active Directory uses the 'mail' attribute."), |
|
|
|
|
|
|
|
|
help="LDAP attribute to use for e-mail addresses."), |
|
|
} |
|
|
} |
|
|
_defaults = { |
|
|
_defaults = { |
|
|
|
|
|
'name_attribute': 'cn', |
|
|
'mail_attribute': 'mail', |
|
|
'mail_attribute': 'mail', |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|