Skip to content
Snippets Groups Projects
Verified Commit 47318117 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Also move users map to users part of TOML config

parent 62de0203
No related branches found
No related tags found
1 merge request!262Resolve "[LDAP] Allow multiple search bases for users and groups"
...@@ -235,9 +235,9 @@ if _settings.get("ldap.uri", None): ...@@ -235,9 +235,9 @@ if _settings.get("ldap.uri", None):
# Mapping of LDAP attributes to Django model fields # Mapping of LDAP attributes to Django model fields
AUTH_LDAP_USER_ATTR_MAP = { AUTH_LDAP_USER_ATTR_MAP = {
"first_name": _settings.get("ldap.map.first_name", "givenName"), "first_name": _settings.get("ldap.users.map.first_name", "givenName"),
"last_name": _settings.get("ldap.map.last_name", "sn"), "last_name": _settings.get("ldap.users.map.last_name", "sn"),
"email": _settings.get("ldap.map.email", "mail"), "email": _settings.get("ldap.users.map.email", "mail"),
} }
# Discover flags by LDAP groups # Discover flags by LDAP groups
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment