Mailman 3 Core user assistance
I currently have a docker mailman stack that utilizes Django LDAP backend for authentication. I have my users attributes mapped as you see below in my settings.py file. Whenever a user logs into postorius with their 'uid', mailman-core uses their 'uid' as their email address instead of the 'email' attribute. Is there anyway to change this functionality? I would like my users to be able to login with their enterprise uid but be mapped to their email but I feel like there is a disconnect between Django and MM3 core. Any assistance is much appreciated.
AUTH_LDAP_USER_ATTR_MAP = { "uid" : "userPrincipalName", "first_name": "givenName", "last_name": "sn", "email" : "mail", }
Tony Deshields writes:
I currently have a docker mailman stack that utilizes Django LDAP backend for authentication. I have my users attributes mapped as you see below in my settings.py file. Whenever a user logs into postorius with their 'uid', mailman-core uses their 'uid' as their email address instead of the 'email' attribute.
I don't think Mailman core is doing that, Mailman core just takes the token passed by Postorius verbatim. It's the Django LDAP auth module.
You need to have that module pass the email value as the user identity token to Postorius rather than uid. There may be a way to configure that in settings.py. Check the module docs.
participants (2)
-
Stephen J. Turnbull
-
Tony Deshields