[GH-ISSUE #3909] import_from_ldap_directory does not work #1931

Open
opened 2026-02-27 11:19:57 +03:00 by kerem · 1 comment
Owner

Originally created by @DeanHawking on GitHub (Feb 8, 2026).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3909

Impacted versions 2.7.0

  • OS Type: Debian/Ubuntu
  • OS Version: Debian 13
  • Database Type: PostgreSQL
  • Database version: 17
  • Modoboa: 2.7.0
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Current behavior

Expected behavior

Video/Screenshot link (optional)

Originally created by @DeanHawking on GitHub (Feb 8, 2026). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3909 # Impacted versions 2.7.0 * OS Type: Debian/Ubuntu * OS Version: Debian 13 * Database Type: PostgreSQL * Database version: 17 * Modoboa: 2.7.0 * installer used: Yes * Webserver: Nginx # Steps to reproduce # Current behavior <!-- It seems that import_from_ldap_directory does not work. I followed the instructions at https://modoboa.readthedocs.io/en/latest/configuration#ldap_auth But users only appear in the Web UI after logging in. Although I use a third-party IMAP application, I hardly ever use the Modoboa Web UI. I started using Modoboa with version 2.6, and this problem is also present there. (env) modoboa@mail:~/instance$ pip list | grep ldap django-auth-ldap 5.3.0 python-ldap 3.4.5 (env) modoboa@mail:~/instance$ grep -C3 LDAPBackend instance/settings.py ) AUTHENTICATION_BACKENDS = ( 'modoboa.lib.authbackends.LDAPBackend', #'modoboa.lib.authbackends.SMTPBackend', 'django.contrib.auth.backends.ModelBackend', 'modoboa.imap_migration.auth_backends.IMAPBackend', (env) modoboa@mail:~/instance$ grep ldapsync instance/settings.py 'modoboa.ldapsync', (env) modoboa@mail:~/instance$ python manage.py import_from_ldap_directory -v 3 (env) modoboa@mail:~/instance$ --> # Expected behavior # Video/Screenshot link (optional)
Author
Owner

@DeanHawking commented on GitHub (Feb 8, 2026):

It seems that import_from_ldap_directory does not work. I followed the instructions at https://modoboa.readthedocs.io/en/latest/configuration#ldap_auth

But users only appear in the Web UI after logging in. Although I use a third-party IMAP application, I hardly ever use the Modoboa Web UI.

I started using Modoboa with version 2.6, and this problem is also present there.

(env) modoboa@mail:~/instance$ pip list | grep ldap
django-auth-ldap                5.3.0
python-ldap                     3.4.5
(env) modoboa@mail:~/instance$ grep -C3 LDAPBackend instance/settings.py 
)

AUTHENTICATION_BACKENDS = (
    'modoboa.lib.authbackends.LDAPBackend',
    #'modoboa.lib.authbackends.SMTPBackend',
    'django.contrib.auth.backends.ModelBackend',
    'modoboa.imap_migration.auth_backends.IMAPBackend',
(env) modoboa@mail:~/instance$ grep ldapsync instance/settings.py 
    'modoboa.ldapsync',
(env) modoboa@mail:~/instance$ python manage.py import_from_ldap_directory -v 3
(env) modoboa@mail:~/instance$ 
<!-- gh-comment-id:3868192781 --> @DeanHawking commented on GitHub (Feb 8, 2026): It seems that import_from_ldap_directory does not work. I followed the instructions at https://modoboa.readthedocs.io/en/latest/configuration#ldap_auth But users only appear in the Web UI after logging in. Although I use a third-party IMAP application, I hardly ever use the Modoboa Web UI. I started using Modoboa with version 2.6, and this problem is also present there. ```bash (env) modoboa@mail:~/instance$ pip list | grep ldap django-auth-ldap 5.3.0 python-ldap 3.4.5 (env) modoboa@mail:~/instance$ grep -C3 LDAPBackend instance/settings.py ) AUTHENTICATION_BACKENDS = ( 'modoboa.lib.authbackends.LDAPBackend', #'modoboa.lib.authbackends.SMTPBackend', 'django.contrib.auth.backends.ModelBackend', 'modoboa.imap_migration.auth_backends.IMAPBackend', (env) modoboa@mail:~/instance$ grep ldapsync instance/settings.py 'modoboa.ldapsync', (env) modoboa@mail:~/instance$ python manage.py import_from_ldap_directory -v 3 (env) modoboa@mail:~/instance$ ```
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#1931
No description provided.