Commit 1746ed9a by Czémán Arnold

dashboard: Make switchable the optional ldap imports

parent 5ac2d65c
Pipeline #442 passed with stage
in 0 seconds
...@@ -18,9 +18,10 @@ import logging ...@@ -18,9 +18,10 @@ import logging
from django.conf import settings from django.conf import settings
from django.contrib.auth.models import Group from django.contrib.auth.models import Group
from .models import GroupProfile, FutureMember, Profile from .models import GroupProfile, FutureMember, Profile
import ldap if getattr(settings, 'LDAP_ORG_ID_ATTRIBUTE', False):
from django_auth_ldap.backend import LDAPSettings import ldap
from django_auth_ldap.config import LDAPSearch from django_auth_ldap.backend import LDAPSettings
from django_auth_ldap.config import LDAPSearch
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment