mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-08-10 16:38:00 +02:00
From version 2.0 no extra image is needed.
13
LDAP.md
13
LDAP.md
@ -11,7 +11,8 @@ Take a note that changing `configuration/ldap_config.py` is strongly discouraged
|
|||||||
|
|
||||||
Among others you can use *docker-compose.override.yml* to inject necessary variables.
|
Among others you can use *docker-compose.override.yml* to inject necessary variables.
|
||||||
|
|
||||||
Don't forget that the `netbox-worker` and `netbox-housekeeping` services should use the same image. See [this issue](https://github.com/netbox-community/netbox-docker/issues/360).
|
> NOTE: Prior to version 2.0 the images with tag `-ldap` have to be used.
|
||||||
|
> Don't forget that the `netbox-worker` and `netbox-housekeeping` services should use the same image. See [this issue](https://github.com/netbox-community/netbox-docker/issues/360).
|
||||||
|
|
||||||
### Example override file for Active Directory
|
### Example override file for Active Directory
|
||||||
|
|
||||||
@ -19,7 +20,6 @@ Don't forget that the `netbox-worker` and `netbox-housekeeping` services should
|
|||||||
version: "3.4"
|
version: "3.4"
|
||||||
services:
|
services:
|
||||||
netbox:
|
netbox:
|
||||||
image: &NetboxImage netboxcommunity/netbox:${VERSION-latest-ldap}
|
|
||||||
environment:
|
environment:
|
||||||
REMOTE_AUTH_ENABLED: "True"
|
REMOTE_AUTH_ENABLED: "True"
|
||||||
REMOTE_AUTH_BACKEND: "netbox.authentication.LDAPBackend"
|
REMOTE_AUTH_BACKEND: "netbox.authentication.LDAPBackend"
|
||||||
@ -32,10 +32,6 @@ services:
|
|||||||
AUTH_LDAP_IS_ADMIN_DN: "CN=Network Configuration Operators,CN=Builtin,DC=domain,dc=com"
|
AUTH_LDAP_IS_ADMIN_DN: "CN=Network Configuration Operators,CN=Builtin,DC=domain,dc=com"
|
||||||
AUTH_LDAP_IS_SUPERUSER_DN: "CN=Domain Admins,CN=Users,DC=domain,dc=com"
|
AUTH_LDAP_IS_SUPERUSER_DN: "CN=Domain Admins,CN=Users,DC=domain,dc=com"
|
||||||
LDAP_IGNORE_CERT_ERRORS: "false"
|
LDAP_IGNORE_CERT_ERRORS: "false"
|
||||||
netbox-worker:
|
|
||||||
image: *NetboxImage
|
|
||||||
netbox-housekeeping:
|
|
||||||
image: *NetboxImage
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Example override file for OpenLDAP
|
### Example override file for OpenLDAP
|
||||||
@ -46,7 +42,6 @@ Remember to change `AUTH_LDAP_GROUP_TYPE` to proper value.
|
|||||||
version: "3.4"
|
version: "3.4"
|
||||||
services:
|
services:
|
||||||
netbox:
|
netbox:
|
||||||
image: &NetboxImage netboxcommunity/netbox:${VERSION-latest-ldap}
|
|
||||||
environment:
|
environment:
|
||||||
REMOTE_AUTH_ENABLED: "True"
|
REMOTE_AUTH_ENABLED: "True"
|
||||||
REMOTE_AUTH_BACKEND: "netbox.authentication.LDAPBackend"
|
REMOTE_AUTH_BACKEND: "netbox.authentication.LDAPBackend"
|
||||||
@ -64,8 +59,4 @@ services:
|
|||||||
AUTH_LDAP_ATTR_LASTNAME: "sn"
|
AUTH_LDAP_ATTR_LASTNAME: "sn"
|
||||||
AUTH_LDAP_ATTR_FIRSTNAME: "givenName"
|
AUTH_LDAP_ATTR_FIRSTNAME: "givenName"
|
||||||
LDAP_IGNORE_CERT_ERRORS: "false"
|
LDAP_IGNORE_CERT_ERRORS: "false"
|
||||||
netbox-worker:
|
|
||||||
image: *NetboxImage
|
|
||||||
netbox-housekeeping:
|
|
||||||
image: *NetboxImage
|
|
||||||
```
|
```
|
Reference in New Issue
Block a user