Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
115 changes: 115 additions & 0 deletions users_ldap_mail/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=====================================
LDAP mapping for user name and e-mail
=====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:884c0f40475b56edbbe58a469af7199aca71ce970676c1b15cdea31aa7fcb5c2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github
:target: https://github.com/OCA/server-auth/tree/17.0/users_ldap_mail
:alt: OCA/server-auth
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-auth-18-0/server-auth-18-0-users_ldap_mail
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of the auth_ldap module to support
mail from LDAP and to allow you to get an e-mail address from LDAP
accounts to Odoo users.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Open Odoo in your browser
2. Go to **Settings > General Settings**
3. In the **Integrations** section click on **LDAP Server** under **LDAP
Authentication**. This will allow you to create your LDAP integration
settings.
4. When creating or editing a record, under the **Process Parameter**
section there are two new fields: mail and name, the name of these
items will correspond with a new user that is created, when a user
logs in via LDAP in Odoo.

Known issues / Roadmap
======================

- Add tests (use LDAP Mocking through something like
https://mockldap.readthedocs.io/en/latest/overview.html)

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-auth/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20users_ldap_mail%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Daniel Reis

Contributors
------------

- Daniel Reis (https://launchpad.com/~dreis-pt),
- `Tecnativa <https://www.tecnativa.com>`__:

- Alexandre Díaz
- João Marques

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-joao-p-marques| image:: https://github.com/joao-p-marques.png?size=40px
:target: https://github.com/joao-p-marques
:alt: joao-p-marques

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-joao-p-marques|

This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/17.0/users_ldap_mail>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions users_ldap_mail/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright Daniel Reis (https://launchpad.com/~dreis-pt)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
16 changes: 16 additions & 0 deletions users_ldap_mail/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright Daniel Reis (https://launchpad.com/~dreis-pt)
# Copyright 2021 Tecnativa - João Marques
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "LDAP mapping for user name and e-mail",
"version": "17.0.1.0.0",
"depends": ["auth_ldap"],
"author": "Daniel Reis," "Odoo Community Association (OCA)",
"maintainers": ["joao-p-marques"],
"website": "https://github.com/OCA/server-auth",
"license": "AGPL-3",
"category": "Tools",
"data": ["views/res_company_ldap.xml"],
"installable": True,
}
49 changes: 49 additions & 0 deletions users_ldap_mail/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * users_ldap_mail
#
# Translators:
# Rudolf Schnapka <rs@techno-flex.de>, 2016
msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-04-17 12:15+0000\n"
"PO-Revision-Date: 2016-04-21 09:16+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-server-tools-9-0/"
"language/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__name_attribute
msgid ""
"By default 'cn' is used. For ActiveDirectory you might use 'displayName' "
"instead."
msgstr ""
"'cn' wird per Vorgabe benutzt. Bei ActiveDirectory können Sie stattdessen "
"'displayName' verwenden."

#. module: users_ldap_mail
#: model:ir.model,name:users_ldap_mail.model_res_company_ldap
msgid "Company LDAP configuration"
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "E-mail attribute"
msgstr "Email-Attribut"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "LDAP attribute to use to retrieve e-mail address."
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__name_attribute
msgid "Name Attribute"
msgstr "Namens-Attribut"
52 changes: 52 additions & 0 deletions users_ldap_mail/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * users_ldap_mail
#
# Translators:
# Antonio Trueba, 2016
# Antonio Trueba, 2016
msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-19 14:46+0000\n"
"PO-Revision-Date: 2023-09-02 19:25+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-server-tools-9-0/"
"language/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__name_attribute
msgid ""
"By default 'cn' is used. For ActiveDirectory you might use 'displayName' "
"instead."
msgstr ""
"Por defecto se usa «cn». En Directorio Activo se podría usar «displayName» "
"en su lugar."

#. module: users_ldap_mail
#: model:ir.model,name:users_ldap_mail.model_res_company_ldap
msgid "Company LDAP configuration"
msgstr "Configuración LDAP de la Compañía"

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "E-mail attribute"
msgstr "Atributo e-mail"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "LDAP attribute to use to retrieve e-mail address."
msgstr ""
"Atributo LDAP a utilizar para recuperar la dirección de correo electrónico."

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__name_attribute
msgid "Name Attribute"
msgstr "Atributo Nombre"
46 changes: 46 additions & 0 deletions users_ldap_mail/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * users_ldap_mail
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-19 14:46+0000\n"
"PO-Revision-Date: 2015-12-13 15:21+0000\n"
"Last-Translator: <>\n"
"Language-Team: French (http://www.transifex.com/oca/OCA-server-tools-9-0/"
"language/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__name_attribute
msgid ""
"By default 'cn' is used. For ActiveDirectory you might use 'displayName' "
"instead."
msgstr ""

#. module: users_ldap_mail
#: model:ir.model,name:users_ldap_mail.model_res_company_ldap
msgid "Company LDAP configuration"
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "E-mail attribute"
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "LDAP attribute to use to retrieve e-mail address."
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__name_attribute
msgid "Name Attribute"
msgstr ""
50 changes: 50 additions & 0 deletions users_ldap_mail/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * users_ldap_mail
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Bole <bole@dajmi5.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-10 00:47+0000\n"
"PO-Revision-Date: 2017-05-10 00:47+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__name_attribute
msgid ""
"By default 'cn' is used. For ActiveDirectory you might use 'displayName' "
"instead."
msgstr ""
"Zadano se koristi 'CN'. za ActiveDirectory možete koristiti 'displayName' "
"umjesto zadanog."

#. module: users_ldap_mail
#: model:ir.model,name:users_ldap_mail.model_res_company_ldap
msgid "Company LDAP configuration"
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "E-mail attribute"
msgstr "Atribut e-mail"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "LDAP attribute to use to retrieve e-mail address."
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__name_attribute
msgid "Name Attribute"
msgstr "Atribut naziva"
49 changes: 49 additions & 0 deletions users_ldap_mail/i18n/hr_HR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * users_ldap_mail
#
# Translators:
# Bole <bole@dajmi5.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-09 12:31+0000\n"
"PO-Revision-Date: 2016-05-31 20:13+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>\n"
"Language-Team: Croatian (Croatia) (http://www.transifex.com/oca/OCA-server-"
"tools-9-0/language/hr_HR/)\n"
"Language: hr_HR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__name_attribute
msgid ""
"By default 'cn' is used. For ActiveDirectory you might use 'displayName' "
"instead."
msgstr ""
"Zadano koristi 'cn'. Za ActiveDirectory možete koristiti i 'displayName'."

#. module: users_ldap_mail
#: model:ir.model,name:users_ldap_mail.model_res_company_ldap
msgid "Company LDAP configuration"
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "E-mail attribute"
msgstr "E-mail atribut"

#. module: users_ldap_mail
#: model:ir.model.fields,help:users_ldap_mail.field_res_company_ldap__mail_attribute
msgid "LDAP attribute to use to retrieve e-mail address."
msgstr ""

#. module: users_ldap_mail
#: model:ir.model.fields,field_description:users_ldap_mail.field_res_company_ldap__name_attribute
msgid "Name Attribute"
msgstr "Atribut Naziv"
Loading