| 1 |
GNU Mailman |
| 2 |
=========== |
| 3 |
|
| 4 |
.. image:: /applications/mailman.jpg |
| 5 |
:class: align-center |
| 6 |
|
| 7 |
|
| 8 |
Presentation |
| 9 |
------------ |
| 10 |
|
| 11 |
`Mailman <http://www.list.org/>`__ is free software for managing electronic mail discussion and e-newsletter lists. Mailman is integrated with the web, making it easy for users to manage their accounts and for list owners to administer their lists. Mailman supports built-in archiving, automatic bounce processing, content filtering, digest delivery, spam filters, and more. |
| 12 |
|
| 13 |
Mailman uses `django-allauth <https://www.intenct.nl/projects/django-allauth/>`__ for external authentication. And as of version 0.49, *django-allauth* is `compatible with LemonLDAP::NG <https://django-allauth.readthedocs.io/en/latest/providers.html#lemonldap-ng>`__ |
| 14 |
|
| 15 |
First, make sure you have set up LemonLDAP::NG 's |
| 16 |
:doc:`OpenID Connect service<..//openidconnectservice>` and added |
| 17 |
:doc:`a Relying Party for your Mailman instance<..//idpopenidconnect>` |
| 18 |
|
| 19 |
Mailman can use the following OpenID Connect attributes to fill the |
| 20 |
user's profile: |
| 21 |
|
| 22 |
* ``name`` |
| 23 |
* ``email`` |
| 24 |
* ``preferred_username`` |
| 25 |
|
| 26 |
Make sure you create a Client ID and a Client Secret for the Relying Party, and |
| 27 |
that the mailman callback URL is allowed : ``https://mailman.example.com/accounts/lemonldap/login/callback/`` |
| 28 |
|
| 29 |
Mailman configuration |
| 30 |
--------------------- |
| 31 |
|
| 32 |
.. note:: |
| 33 |
|
| 34 |
Make sure you are using at least version 0.49 of *django-allauth* |
| 35 |
|
| 36 |
|
| 37 |
Provider activation |
| 38 |
~~~~~~~~~~~~~~~~~~~ |
| 39 |
|
| 40 |
In the Mailman config (`settings.py`), enable the LemonLDAP::NG provider:: |
| 41 |
|
| 42 |
INSTALLED_APPS = [ |
| 43 |
'allauth', |
| 44 |
'allauth.account', |
| 45 |
'allauth.socialaccount', |
| 46 |
'allauth.socialaccount.providers.lemonldap', |
| 47 |
] |
| 48 |
|
| 49 |
SOCIALACCOUNT_PROVIDERS = { |
| 50 |
'lemonldap': { |
| 51 |
'LEMONLDAP_URL': 'https://auth.example.com', |
| 52 |
}, |
| 53 |
} |
| 54 |
|
| 55 |
|
| 56 |
Provider configuration |
| 57 |
~~~~~~~~~~~~~~~~~~~~~~ |
| 58 |
|
| 59 |
Browse to Mailman django administration, then add a new *Social application* |
| 60 |
|
| 61 |
* Provider: *LemonLDAP::NG* |
| 62 |
* Name: pick one |
| 63 |
* Client id: must match the Client ID set in LemonLDAP::NG |
| 64 |
* Secret key: must match the Client Secret set in LemonLDAP::NG |
| 65 |
* Sites: choose which Mailman site can use LemonLDAP::NG |
| 66 |
|
| 67 |
You should then be able to login on your Mailman site using LemonLDAP::NG |