RemoteUserBackend for Mailman3?
Dear MM§-users,
is there a good documentation and example how I can learn to enable
django.contrib.auth.backends.RemoteUserBackend
for Mailman3? I've already found a detailed documentation (see [1]), but I do not manage to implement this AuthN mechanism for Mailman3. Can you help me?
Btw. how can I disable and remove the Fedora button from Maliman3's login page?
Best, Markus
[1] <https://docs.djangoproject.com/en/4.1/howto/auth-remote-user/>
-- Markus Ludwig Grandpré Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Abteilung IT-Dienste Forschung und Lehre, Tel: ++49 7531 88 4342
On 3/27/23 06:00, Markus Ludwig Grandpré wrote:
Btw. how can I disable and remove the Fedora button from Maliman3's login page?
remove 'django_mailman3.lib.auth.fedora' from INSTALLED_APPS in your Django settings.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Dear Mr Spiro,
thank you so much for your reply. On my Debian 11 system I don't find 'django_mailman3.lib.auth.fedora' in my Django settings in </usr/lib/python3/dist-packages/django/conf/global_settings.py>:
# List of strings representing installed apps. INSTALLED_APPS = []
But I find:
INSTALLED_APPS = ( ... #'django_mailman3.lib.auth.fedora', ... )
in </etc/mailman3# less mailman-web.py>. After commenting this line out I restarted the mailman3 application by restarting the apache2 web server. Unfortunately, the Fedora button is still visible on login site of mailman3 and a server error occurs when I click the button.
Best regards, Markus
On 27.03.23 19:22, Mark Sapiro wrote:
On 3/27/23 06:00, Markus Ludwig Grandpré wrote:
Btw. how can I disable and remove the Fedora button from Maliman3's login page?
remove 'django_mailman3.lib.auth.fedora' from INSTALLED_APPS in your Django settings.
-- Markus Ludwig Grandpré Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Abteilung IT-Dienste Forschung und Lehre, B803, Tel: ++49 7531 88 4342
2023-04-06 21:39 に Markus Grandpré さんは書きました:
INSTALLED_APPS = ( #'django_mailman3.lib.auth.fedora', in </etc/mailman3# less mailman-web.py>. After commenting this line out I restarted the mailman3 application by restarting the apache2 web server.
You probably need to restart the wsgi server as well.
You probably need to restart the wsgi server as well.
that is done by restarting the apache2 web server and the apache2 module mod_wsgi.
Best, Markus
On 06.04.23 14:48, turnbull wrote:
2023-04-06 21:39 に Markus Grandpré さんは書きました:
INSTALLED_APPS = ( #'django_mailman3.lib.auth.fedora', in </etc/mailman3# less mailman-web.py>. After commenting this line out I restarted the mailman3 application by restarting the apache2 web server.
You probably need to restart the wsgi server as well.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to markus.grandpre@uni-konstanz.de
-- Markus Ludwig Grandpré Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Abteilung IT-Dienste Forschung und Lehre, B803, Tel: ++49 7531 88 4342
On 4/12/23 01:04, Markus Grandpré wrote:
You probably need to restart the wsgi server as well.
that is done by restarting the apache2 web server and the apache2 module mod_wsgi.
If apache mod_wsgi is actually how apache is accessing Django, then restarting apache should be sufficient, and if you have no uncommented 'django_mailman3.lib.auth.fedora' in INSTALLED_APPS, then there should not be a Fedora button on the login page.
Is it possible you were seeing a page cached in your browser?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 3/27/23 06:00, Markus Ludwig Grandpré wrote:
Dear MM§-users,
is there a good documentation and example how I can learn to enable
django.contrib.auth.backends.RemoteUserBackend
for Mailman3? I've already found a detailed documentation (see [1]), but I do not manage to implement this AuthN mechanism for Mailman3. Can you help me?
Have you configured your web server. If using Apache mod_wsgi, see https://modwsgi.readthedocs.io/en/master/user-guides/access-control-mechanis...
If proxying to a wsgi server, e.g. uWSGI or gunicorn, see the respective documentation for passing environment variables.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (4)
-
Mark Sapiro
-
Markus Grandpré
-
Markus Ludwig Grandpré
-
turnbull