LDAP configuration is done by django ldap module
Take a note that changing configuration/ldap_config.py
is strongly discouraged. NetBox container reports barely any python errors.
See also Custom CA on how to configure LDAPS with a custom CA.
Override example
Among others you can use docker-compose.override.yml to inject necessary variables.
NOTE: Images with tag -ldap
are not maintained anymore (They were used for versions < 2.0).
Don't forget that the netbox-worker
and netbox-housekeeping
services should use the same image. See this issue.
Example override file for Active Directory
Example override file for OpenLDAP
Remember to change AUTH_LDAP_GROUP_TYPE
to proper value.