Add django_ldap_auth
In the ldap.Dockerfile the django_ldap_auth module is installed to enable authentication againt LDAP servers.
This commit is contained in:
parent
3af803f481
commit
6a01a3379d
7 changed files with 108 additions and 1 deletions
10
docker/ldap_config.docker.py
Normal file
10
docker/ldap_config.docker.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
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('')
|
Loading…
Add table
Add a link
Reference in a new issue