[PR #1876] [MERGED] LDAP Authentication - Webmail / Dovecot #2315

Closed
opened 2026-02-27 12:10:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/modoboa/modoboa/pull/1876
Author: @ClemRiviere
Created: 4/15/2020
Status: Merged
Merged: 5/5/2020
Merged by: @tonioo

Base: masterHead: sync_dovecot_ldap


📝 Commits (6)

  • 6405c69 Adding settings options for dovecot ldap sync
  • dc9cf1b Creating update_dovecot_conf command
  • a65514a Adding async command to update dovecot ldap conf
  • 66625bc Adding unit tests
  • db2daeb Adding port to dovecot generated uris & unit tests
  • 86b0f5d Code improvement & doc update & tests update

📊 Changes

10 files changed (+239 additions, -2 deletions)

View changed files

📝 doc/manual_installation/dovecot.rst (+43 -0)
modoboa/admin/tests/test_need_dovecot_update.py (+84 -0)
📝 modoboa/core/app_settings.py (+22 -1)
modoboa/core/migrations/0021_localconfig_need_dovecot_update.py (+18 -0)
📝 modoboa/core/models.py (+3 -0)
📝 modoboa/core/tests/test_views.py (+2 -1)
📝 modoboa/core/views/admin.py (+1 -0)
📝 modoboa/ldapsync/lib.py (+38 -0)
modoboa/ldapsync/management/commands/update_dovecot_conf.py (+25 -0)
📝 modoboa/parameters/forms.py (+3 -0)

📄 Description

Resolves #1800

Current behavior before PR:
If LDAP authentication is configured, webmail not working : authentication error

The problem is that dovecot uses databases to check authentication. It would be nice if LDAP is configured that the configuration install dovecot-ldap module and generate the configuration file.

I manually update dovecot configuration and everything is working.

Desired behavior after PR is merged:
dovecot LDAP config is synchronized with modoboa LDAP config


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/modoboa/modoboa/pull/1876 **Author:** [@ClemRiviere](https://github.com/ClemRiviere) **Created:** 4/15/2020 **Status:** ✅ Merged **Merged:** 5/5/2020 **Merged by:** [@tonioo](https://github.com/tonioo) **Base:** `master` ← **Head:** `sync_dovecot_ldap` --- ### 📝 Commits (6) - [`6405c69`](https://github.com/modoboa/modoboa/commit/6405c690045c0b83fdc4a9ea75a83bbcb06aab40) Adding settings options for dovecot ldap sync - [`dc9cf1b`](https://github.com/modoboa/modoboa/commit/dc9cf1b9738a17696970a754640b88cd1ef62fd6) Creating update_dovecot_conf command - [`a65514a`](https://github.com/modoboa/modoboa/commit/a65514a6217c63097fd72792f598eca406157a02) Adding async command to update dovecot ldap conf - [`66625bc`](https://github.com/modoboa/modoboa/commit/66625bc8765013a7a2cc4891d9180553a0c4dccb) Adding unit tests - [`db2daeb`](https://github.com/modoboa/modoboa/commit/db2daebfbbb4856af58e89c7024fd9539076b397) Adding port to dovecot generated uris & unit tests - [`86b0f5d`](https://github.com/modoboa/modoboa/commit/86b0f5d9cd5537dfecee40cbd0cbe28f91243d86) Code improvement & doc update & tests update ### 📊 Changes **10 files changed** (+239 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `doc/manual_installation/dovecot.rst` (+43 -0) ➕ `modoboa/admin/tests/test_need_dovecot_update.py` (+84 -0) 📝 `modoboa/core/app_settings.py` (+22 -1) ➕ `modoboa/core/migrations/0021_localconfig_need_dovecot_update.py` (+18 -0) 📝 `modoboa/core/models.py` (+3 -0) 📝 `modoboa/core/tests/test_views.py` (+2 -1) 📝 `modoboa/core/views/admin.py` (+1 -0) 📝 `modoboa/ldapsync/lib.py` (+38 -0) ➕ `modoboa/ldapsync/management/commands/update_dovecot_conf.py` (+25 -0) 📝 `modoboa/parameters/forms.py` (+3 -0) </details> ### 📄 Description Resolves #1800 **Current behavior before PR:** If LDAP authentication is configured, webmail not working : authentication error The problem is that dovecot uses databases to check authentication. It would be nice if LDAP is configured that the configuration install dovecot-ldap module and generate the configuration file. I manually update dovecot configuration and everything is working. **Desired behavior after PR is merged:** dovecot LDAP config is synchronized with modoboa LDAP config --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 12:10:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#2315
No description provided.