Browse Source

Merge pull request #46 from dreispt/port-users-ldap-mail

Port users ldap mail
pull/69/head
Sandy 10 years ago
parent
commit
a78f69bb28
  1. 2
      users_ldap_mail/__init__.py
  2. 3
      users_ldap_mail/__openerp__.py
  3. 0
      users_ldap_mail/i18n/users_ldap_mail.pot
  4. 4
      users_ldap_mail/users_ldap_model.py
  5. 0
      users_ldap_mail/users_ldap_view.xml

2
__unported__/users_ldap_mail/__init__.py → users_ldap_mail/__init__.py

@ -19,4 +19,4 @@
# #
############################################################################## ##############################################################################
import users_ldap_model
from . import users_ldap_model

3
__unported__/users_ldap_mail/__openerp__.py → users_ldap_mail/__openerp__.py

@ -25,7 +25,8 @@
'depends': ["auth_ldap"], 'depends': ["auth_ldap"],
'author': "Daniel Reis (https://launchpad.com/~dreis-pt)", 'author': "Daniel Reis (https://launchpad.com/~dreis-pt)",
'description': """\ 'description': """\
Allows to define the LDAP attributes to use to retrieve user name and e-mail address.
Allows to define the LDAP attributes to use to retrieve user name and e-mail
address.
The default attribute used for the name is "cn". The default attribute used for the name is "cn".
For Active Directory, you might prefer to use "displayName" instead. For Active Directory, you might prefer to use "displayName" instead.

0
__unported__/users_ldap_mail/i18n/users_ldap_mail.pot → users_ldap_mail/i18n/users_ldap_mail.pot

4
__unported__/users_ldap_mail/users_ldap_model.py → users_ldap_mail/users_ldap_model.py

@ -60,8 +60,8 @@ class CompanyLDAP(orm.Model):
return cr.dictfetchall() return cr.dictfetchall()
def map_ldap_attributes(self, cr, uid, conf, login, ldap_entry): def map_ldap_attributes(self, cr, uid, conf, login, ldap_entry):
values = super(CompanyLDAP, self).map_ldap_attributes(cr, uid, conf,
login, ldap_entry)
values = super(CompanyLDAP, self).map_ldap_attributes(
cr, uid, conf, login, ldap_entry)
mapping = [ mapping = [
('name', 'name_attribute'), ('name', 'name_attribute'),
('email', 'mail_attribute'), ('email', 'mail_attribute'),

0
__unported__/users_ldap_mail/users_ldap_view.xml → users_ldap_mail/users_ldap_view.xml

Loading…
Cancel
Save