Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
58240fb
Therp's modules to sync OpenERP with LDAP directories
dreispt Jul 23, 2013
a1da23e
FIX version numbers; view type is deprecated
dreispt Jul 24, 2013
e6b2168
Generate .pot files
Mar 14, 2014
9707ce8
move all modules to __unported__ on master branch and set installable…
sbidoul Jul 12, 2014
cdf844e
Move users_ldap_populate out of unported
dreispt Sep 2, 2014
2c18e9c
Port users_ldap_populate to v8
dreispt Sep 2, 2014
2393efe
[FIX] pylint
Dec 3, 2014
07d645a
[FIX] travis
hbrunn Dec 8, 2014
668652b
Add license key in __openerp__.py
yvaucher Feb 6, 2015
abf89ea
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
2c882dd
Add missing default oca icons
yvaucher Aug 18, 2015
8f84f97
[FIX] users_ldap_populate: Protect ldap library import
pedrobaeza Aug 20, 2015
1989166
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
8395597
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
8e4bf03
Port the ldap_populate in V9
flotho Nov 9, 2015
7480dd0
port user_ldap_populate to new API
gurneyalex Nov 26, 2015
4ca699b
Fix 9.0 version number
sbidoul Dec 13, 2015
53ab5fc
Reset version 9.0.1.0.0
sbidoul Dec 14, 2015
d7fd3ef
9.0 users_ldap_populate fix 2 bugs
gurneyalex Jan 20, 2016
06e1448
updated i18n files
gurneyalex Jan 21, 2016
020107b
update french translation
gurneyalex Jan 21, 2016
76ab23d
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
181c24e
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
02e0f51
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
a8ed49e
10.0 migrate users_ldap_populate (#657)
StephanRozendaal Dec 27, 2016
5d2273f
[ADD] users_ldap_populate: migrate functionality added to 6.1 after 7…
hbrunn Jul 31, 2017
8349a51
[MIG] users_ldap_populate port v8 feature
simahawk Aug 10, 2017
2331c7a
users_ldap_populate: try/except on import ldap
alexis-via Oct 2, 2017
c560db6
[FIX] users_ldap_populate. Wrong field name in test.
NL66278 Apr 20, 2018
4ed06b8
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
008467c
[FIX] users_ldap_populate. No unneeded password reset message.
NL66278 Aug 9, 2018
648290f
[FIX] strange behavior of users_ldap_populate
gurneyalex Jan 10, 2019
19fecd9
[FIX] auth_ldap_populate
gurneyalex Feb 20, 2019
f2f7dcb
Translated using Weblate (French)
gurneyalex Mar 1, 2019
b0c86ad
[10.0] [FIX] users_ldap_populate special characters (#1564)
r-hede May 3, 2019
0314b9a
[MIG] users_ldap_populate: Migration to 12.0
Tardo Aug 13, 2019
225505a
[IMP] users_ldap_populate: Cherry-pick from hbrunn
hbrunn Oct 1, 2019
a0b2848
[FIX] users_ldap_populate: use str, not bytes
Apr 27, 2020
f9ef7ea
[FIX] users_ldap_populate: Fix POT + es
pedrobaeza Jun 26, 2020
254343d
[IMP] users_ldap_populate: black, isort, prettier
joao-p-marques Feb 15, 2021
f59392e
[MIG] users_ldap_populate: Migration to 13.0
joao-p-marques Feb 15, 2021
36aa76a
Apply dotfiles
sbidoul Apr 20, 2021
88e02c4
[IMP] users_ldap_populate: black, isort, prettier
CarlosRoca13 Mar 24, 2022
a1692cc
[MIG] users_ldap_populate: Migration to 14.0
CarlosRoca13 Mar 28, 2022
714790e
[MIG] users_ldap_populate: Migration to 16.0
carolinafernandez-tecnativa Sep 27, 2023
17d185e
Translated using Weblate (Italian)
mymage Jan 4, 2024
410c4d0
Translated using Weblate (Portuguese (Brazil))
May 29, 2024
60af6a3
[IMP] users_ldap_populate: pre-commit auto fixes
ryanc-me Jul 30, 2024
dd9d5c1
[MIG] users_ldap_populate: Migrate to 17.0
ryanc-me Jul 30, 2024
e0bb2c4
[UPD] Update users_ldap_populate.pot
Feb 12, 2025
0bf1482
[BOT] post-merge updates
OCA-git-bot Feb 12, 2025
67fa3ec
Update translation files
weblate Feb 12, 2025
6ee01f5
[FIX] users_ldap_populate: Decode login information
pedrobaeza Jul 8, 2025
fca0caf
[BOT] post-merge updates
OCA-git-bot Jul 9, 2025
ce8adf7
[IMP] users_ldap_populate: pre-commit auto fixes
ap-wtioit Sep 23, 2025
bebfed0
[MIG] users_ldap_populate: Migration to 18.0
ap-wtioit Sep 23, 2025
0a13aef
[FIX] users_ldap_mail: remove tools.ustr
ap-wtioit Sep 23, 2025
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
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ lxml
pyjwt
pysaml2
python-jose
python-ldap
6 changes: 1 addition & 5 deletions users_ldap_mail/README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. 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
=====================================
Expand All @@ -17,7 +13,7 @@ LDAP mapping for user name and e-mail
.. |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
.. |badge2| image:: https://img.shields.io/badge/licence-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
Expand Down
2 changes: 1 addition & 1 deletion users_ldap_mail/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "LDAP mapping for user name and e-mail",
"version": "18.0.1.0.0",
"version": "18.0.1.0.1",
"depends": ["auth_ldap"],
"author": "Daniel Reis," "Odoo Community Association (OCA)",
"maintainers": ["joao-p-marques"],
Expand Down
4 changes: 2 additions & 2 deletions users_ldap_mail/models/users_ldap_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import logging

from odoo import fields, models, tools
from odoo import fields, models

_logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -42,7 +42,7 @@ def _map_ldap_attributes(self, conf, login, ldap_entry):
for value_key, conf_name in mapping:
try:
if conf[conf_name]:
values[value_key] = tools.ustr(ldap_entry[1][conf[conf_name]][0])
values[value_key] = ldap_entry[1][conf[conf_name]][0]
except KeyError:
_logger.warning(
f'No LDAP attribute "{conf.get(conf_name)}" found for login '
Expand Down
39 changes: 15 additions & 24 deletions users_ldap_mail/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>README.rst</title>
<title>LDAP mapping for user name and e-mail</title>
<style type="text/css">

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -275,7 +274,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: gray; } /* line numbers */
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -301,7 +300,7 @@
span.pre {
white-space: pre }

span.problematic, pre.problematic {
span.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -360,21 +359,16 @@
</style>
</head>
<body>
<div class="document">
<div class="document" id="ldap-mapping-for-user-name-and-e-mail">
<h1 class="title">LDAP mapping for user name and e-mail</h1>


<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
</a>
<div class="section" id="ldap-mapping-for-user-name-and-e-mail">
<h1>LDAP mapping for user name and e-mail</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:884c0f40475b56edbbe58a469af7199aca71ce970676c1b15cdea31aa7fcb5c2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-auth/tree/18.0/users_ldap_mail"><img alt="OCA/server-auth" src="https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-auth-18-0/server-auth-18-0-users_ldap_mail"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-auth&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-auth/tree/18.0/users_ldap_mail"><img alt="OCA/server-auth" src="https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-auth-18-0/server-auth-18-0-users_ldap_mail"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-auth&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>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.</p>
Expand All @@ -393,7 +387,7 @@ <h1>LDAP mapping for user name and e-mail</h1>
</ul>
</div>
<div class="section" id="usage">
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>Open Odoo in your browser</li>
Expand All @@ -408,30 +402,30 @@ <h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
</ol>
</div>
<div class="section" id="known-issues-roadmap">
<h2><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h2>
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>Add tests (use LDAP Mocking through something like
<a class="reference external" href="https://mockldap.readthedocs.io/en/latest/overview.html">https://mockldap.readthedocs.io/en/latest/overview.html</a>)</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-auth/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20users_ldap_mail%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<div class="section" id="authors">
<h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<ul class="simple">
<li>Daniel Reis</li>
</ul>
</div>
<div class="section" id="contributors">
<h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<ul class="simple">
<li>Daniel Reis (<a class="reference external" href="https://launchpad.com/~dreis-pt">https://launchpad.com/~dreis-pt</a>),</li>
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
Expand All @@ -442,11 +436,9 @@ <h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
</ul>
</div>
<div class="section" id="maintainers">
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
Expand All @@ -457,6 +449,5 @@ <h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
</div>
</div>
</div>
</div>
</body>
</html>
108 changes: 108 additions & 0 deletions users_ldap_populate/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
=============
LDAP Populate
=============

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

.. |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/licence-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/18.0/users_ldap_populate
: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_populate
: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=18.0
:alt: Try me on Runboat

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

This module extends the functionality of auth_ldap by adding
functionality so that users can be populated from a LDAP server.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to 'Settings' -> 'General Settings'
2. In the LDAP category click on or add a LDAP configuration
3. In the pop-up enter all the LDAP settings
4. Click the populate button
5. A new pop-up will notify you of how many users are added

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

- Improve test coverage and port its LDAP Patch method to a module where
they can be imported and reutilized on other tests.

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_populate%0Aversion:%2018.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
-------

* Therp BV

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

- Therp BV <https://therp.nl>
- `Tecnativa <https://www.tecnativa.com>`__:

- Alexandre Díaz
- João Marques
- Carlos Roca
- Carolina Fernandez

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/18.0/users_ldap_populate>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions users_ldap_populate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2012 Therp BV (<http://therp.nl>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/gpl.html).

from . import models
from . import wizards
22 changes: 22 additions & 0 deletions users_ldap_populate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2012-2018 Therp BV <https://therp.nl>.
# Copyright 2021 Tecnativa - João Marques
# Copyright 2023 Tecnativa - Carolina Fernandez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/gpl.html).

{
"name": "LDAP Populate",
"version": "18.0.1.0.1",
"author": "Therp BV, Odoo Community Association (OCA)",
"maintainers": ["joao-p-marques"],
"website": "https://github.com/OCA/server-auth",
"license": "AGPL-3",
"category": "Tools",
"depends": ["auth_ldap"],
"external_dependencies": {"python": ["python-ldap"]},
"data": [
"security/ir.model.access.csv",
"wizards/populate_wizard.xml",
"views/users_ldap.xml",
],
"installable": True,
}
Loading