mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-27 10:24:13 +01:00
6a01a3379d
In the ldap.Dockerfile the django_ldap_auth module is installed to enable authentication againt LDAP servers.
11 lines
292 B
Python
11 lines
292 B
Python
import importlib.util
|
|
import sys
|
|
|
|
try:
|
|
spec = importlib.util.spec_from_file_location('ldap_config', '/etc/netbox/ldap_config.py')
|
|
module = importlib.util.module_from_spec(spec)
|
|
spec.loader.exec_module(module)
|
|
sys.modules['netbox.ldap_config'] = module
|
|
except:
|
|
raise ImportError('')
|