mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-06-20 01:48:45 +02:00
moved the REMOTE_AUTH variables into the docker-compose.override.yml example files, as changes to configuration.py would get lost when pulling
parent
d2caf0e412
commit
c2beefadb4
10
LDAP.md
10
LDAP.md
@ -6,12 +6,6 @@ LDAP configuration is done by [django ldap module](https://django-auth-ldap.read
|
||||
|
||||
Take a note that changing `configuration/ldap_config.py` is strongly discouraged. NetBox container reports barely any python errors.
|
||||
|
||||
### NetBox v2.9 and above
|
||||
Netbox 2.9 changes the behaviour for the remote authentication. For LDAP to work these settings are necessary in the `configuration.py` file:
|
||||
```python
|
||||
REMOTE_AUTH_ENABLED = True
|
||||
REMOTE_AUTH_BACKEND = 'netbox.authentication.LDAPBackend'
|
||||
```
|
||||
|
||||
## Override example
|
||||
|
||||
@ -27,6 +21,8 @@ services:
|
||||
netbox:
|
||||
image: &NetboxImage netboxcommunity/netbox:${VERSION-latest-ldap}
|
||||
environment:
|
||||
REMOTE_AUTH_ENABLED: "True"
|
||||
REMOTE_AUTH_BACKEND: "netbox.authentication.LDAPBackend"
|
||||
AUTH_LDAP_SERVER_URI: "ldaps://domain.com"
|
||||
AUTH_LDAP_BIND_DN: "CN=Netbox,OU=EmbeddedDevices,OU=MyCompany,DC=domain,dc=com"
|
||||
AUTH_LDAP_BIND_PASSWORD: "TopSecretPassword"
|
||||
@ -52,6 +48,8 @@ services:
|
||||
netbox:
|
||||
image: &NetboxImage netboxcommunity/netbox:${VERSION-latest-ldap}
|
||||
environment:
|
||||
REMOTE_AUTH_ENABLED: "True"
|
||||
REMOTE_AUTH_BACKEND: "netbox.authentication.LDAPBackend"
|
||||
AUTH_LDAP_SERVER_URI: "ldaps://domain.com"
|
||||
AUTH_LDAP_BIND_DN: "cn=netbox,ou=services,dc=domain,dc=com"
|
||||
AUTH_LDAP_BIND_PASSWORD: "TopSecretPassword"
|
||||
|
Loading…
x
Reference in New Issue
Block a user