mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
LDAP sync: skip when no DN is found.
This commit is contained in:
@@ -193,6 +193,8 @@ def import_accounts_from_ldap(config):
|
||||
)
|
||||
admin_groups = config["ldap_admin_groups"].split(";")
|
||||
for dn, entry in result:
|
||||
if dn is None:
|
||||
continue
|
||||
role = "SimpleUsers"
|
||||
groups = find_user_groups(conn, config, dn, entry)
|
||||
for grp in admin_groups:
|
||||
|
||||
Reference in New Issue
Block a user