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
from django.conf import settings
from django.contrib.auth.models import Group
from .models import GroupProfile, FutureMember, Profile
import ldap
from django_auth_ldap.backend import LDAPSettings
from django_auth_ldap.config import LDAPSearch
if getattr(settings, 'LDAP_ORG_ID_ATTRIBUTE', False):
import ldap
from django_auth_ldap.backend import LDAPSettings
from django_auth_ldap.config import LDAPSearch
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