diff --git a/apps/settings/models.py b/apps/settings/models.py index 9d395656c..0a986efcb 100644 --- a/apps/settings/models.py +++ b/apps/settings/models.py @@ -90,7 +90,7 @@ class Setting(models.Model): setting = cls.objects.filter(name='AUTH_LDAP').first() if not setting: return - ldap_backend = settings.AUTH_BACKEND_LABEL_MAPPING['ldap'] + ldap_backend = settings.AUTH_BACKEND_LDAP backends = settings.AUTHENTICATION_BACKENDS has = ldap_backend in backends if setting.cleaned_value and not has: