mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-06-19 17:40:22 +02:00
Add example configuration
parent
e64405aebd
commit
f2bd34ad81
22
LDAP.md
22
LDAP.md
@ -1,3 +1,23 @@
|
||||
The images tagged with "-ldap" contain all the necessary dependencies to authenticate against an LDAP or Active Directory server.
|
||||
The default configuration `ldap_config.py` is prepared for use with an Active Directory server.
|
||||
Custom values can be injected using environment variables, similar to the main configuration mechanisms.
|
||||
Custom values can be injected using environment variables, similar to the main configuration mechanisms.
|
||||
|
||||
## Override example
|
||||
|
||||
Among others you can use *docker-compose.override.yml* to inject necessary variables. Example override file for Active Directory:
|
||||
|
||||
```
|
||||
version: '3.4'
|
||||
services:
|
||||
netbox:
|
||||
environment:
|
||||
AUTH_LDAP_SERVER_URI: "ldaps://domain.com"
|
||||
AUTH_LDAP_BIND_DN: "CN=Netbox,OU=EmbeddedDevices,OU=MyCompany,DC=domain,dc=com"
|
||||
AUTH_LDAP_USER_SEARCH_BASEDN: "OU=MyCompany,DC=domain,dc=com"
|
||||
AUTH_LDAP_GROUP_SEARCH_BASEDN: "OU=SubGroups,OU=MyCompany,DC=domain,dc=com"
|
||||
AUTH_LDAP_REQUIRE_GROUP_DN: "CN=Netbox-User,OU=SoftwareGroups,OU=SubGroups,OU=MyCompany,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_BIND_PASSWORD: "TopSecretPassword"
|
||||
LDAP_IGNORE_CERT_ERRORS: "false"
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user