From version 2.0 no extra image is needed.

Tobias Genannt
2022-07-19 09:57:01 +02:00
parent 95192fe6e1
commit 3e8056e4ac

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
``` ```