Adapt role to changes in postorius-ldap-membership-management

Closes https://git.cccv.de/infra/documentation/-/issues/157
This commit is contained in:
Julian Rother 2022-04-08 02:51:55 +02:00
parent 18fe38fde4
commit 1a3a1de274
No known key found for this signature in database
GPG key ID: 2F811E2338EE029B
2 changed files with 3 additions and 7 deletions

View file

@ -40,7 +40,7 @@ MIDDLEWARE = (
{% if mailman.web.remote_user %}
'django.contrib.auth.middleware.PersistentRemoteUserMiddleware',
{% endif %}
'django_auth_ldap_remoteuser.middleware.SessionTimeoutMiddleware',
'postorius_ldap_membership_management.middleware.SessionTimeoutMiddleware',
)
# Application definition
@ -66,9 +66,6 @@ INSTALLED_APPS = (
'allauth',
'allauth.account',
'allauth.socialaccount',
{% if mailman.web.remote_user and mailman.web.ldap %}
'django_auth_ldap_remoteuser',
{% endif %}
{% if mailman.web.ldap %}
'postorius_ldap_membership_management',
{% endif %}
@ -76,7 +73,7 @@ INSTALLED_APPS = (
AUTHENTICATION_BACKENDS = (
{% if mailman.web.remote_user and mailman.web.ldap %}
'django_auth_ldap_remoteuser.backends.LdapRemoteUserBackend',
'postorius_ldap_membership_management.backends.LdapRemoteUserBackend',
{% else %}
{% if mailman.web.remote_user %}
'django.contrib.auth.backends.RemoteUserBackend',