mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-21 06:18:45 +02:00
LDAP synchronization process (#1732)
* Initial commit for LDAP sync process. * Fixed unit tests. * Added doc and run ldapsync tests on travis. * Removed server address. * Force bytes when calling ldap methods. * Fixed tests compat with python2. * Do not force bytes here. * Force bytes. * Force bytes for attribute names too. * Disable bytes mode in PY2. * Handle account removals. * Fixed unit tests. * Limit sync to simple users. * Fixed unit test. * Fixed unit test.
This commit is contained in:
+54
-2
@@ -14,7 +14,7 @@ are two available levels:
|
||||
|
||||
* User level: per user customization. Available at *User > Settings >
|
||||
Preferences*
|
||||
|
||||
|
||||
Regardless level, parameters are displayed using tabs, each tab
|
||||
corresponding to one application.
|
||||
|
||||
@@ -405,7 +405,7 @@ group. In this case, the username is not necessarily an email address.
|
||||
Users will also be able to update their LDAP password directly from
|
||||
Modoboa.
|
||||
|
||||
.. note::
|
||||
.. note::
|
||||
|
||||
Modoboa doesn't provide any synchronization mechanism once a user
|
||||
is registered into the database. Any modification done from the
|
||||
@@ -438,6 +438,58 @@ SMTP server location can be customized using the following settings:
|
||||
AUTH_SMTP_SERVER_PORT = 25
|
||||
AUTH_SMTP_SECURED_MODE = None # 'ssl' or 'starttls' are accepted
|
||||
|
||||
********************
|
||||
LDAP synchronization
|
||||
********************
|
||||
|
||||
Modoboa can synchronize accounts with an LDAP directory (tested with
|
||||
OpenLDAP) but this feature is not enabled by default. To activate it,
|
||||
add ``modoboa.ldapsync`` to ``MODOBOA_APPS`` in the
|
||||
:file:`settings.py` file::
|
||||
|
||||
MODOBOA_APPS = (
|
||||
'modoboa',
|
||||
'modoboa.core',
|
||||
'modoboa.lib',
|
||||
'modoboa.admin',
|
||||
'modoboa.transport',
|
||||
'modoboa.relaydomains',
|
||||
'modoboa.limits',
|
||||
'modoboa.parameters',
|
||||
'modoboa.dnstools',
|
||||
'modoboa.ldapsync',
|
||||
)
|
||||
|
||||
and enable it from the admin panel.
|
||||
|
||||
.. warning::
|
||||
|
||||
Make sure to install additional :ref:`requirements <ldap_auth>`
|
||||
otherwise it won't work.
|
||||
|
||||
The following parameters are available and must be filled::
|
||||
|
||||
+--------------------+---------------------------------+--------------------+
|
||||
|Name |Description |Default value |
|
||||
+====================+=================================+====================+
|
||||
|Enable LDAP |Control LDAP synchronization |no |
|
||||
|synchronization |state | |
|
||||
| | | |
|
||||
+--------------------+---------------------------------+--------------------+
|
||||
|Bind DN |The DN of a user with write | |
|
||||
| |permission to create/update | |
|
||||
| |accounts | |
|
||||
+--------------------+---------------------------------+--------------------+
|
||||
|Bind password |The associated password | |
|
||||
| | | |
|
||||
| | | |
|
||||
+--------------------+---------------------------------+--------------------+
|
||||
|Account DN template |The template used to build | |
|
||||
| |account DNs (must contain a | |
|
||||
| |%(user)s placeholder | |
|
||||
+--------------------+---------------------------------+--------------------+
|
||||
|
||||
|
||||
********************
|
||||
Database maintenance
|
||||
********************
|
||||
|
||||
Reference in New Issue
Block a user