-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Current Behavior
We configured LDAP on our Netbox v3.3-2.3.0 by following the following documentation but somehow it does not work:
Expected Behavior
After configuration, should be able to login using LDAP accounts.
Docker Compose Version
docker-compose version 1.25.0, build unknown
Docker Version
Client:
Version: 20.10.5+dfsg1
API version: 1.41
Go version: go1.15.15
Git commit: 55c4c88
Built: Mon May 30 18:34:49 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
The git Revision
The git Status
On branch release
Your branch is up to date with 'origin/release'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: configuration/configuration.py
modified: docker/nginx-unit.json
Startup Command
docker-compose up -d
NetBox Logs
🧬 loaded config '/etc/netbox/config/configuration.py'
🧬 loaded config '/etc/netbox/config/extra.py'
🧬 loaded config '/etc/netbox/config/logging.py'
🧬 loaded config '/etc/netbox/config/plugins.py'
💡 Superuser Username: admin, E-Mail: admin@example.com
⚠️⚠️⚠️ WARNING: The initializers have been moved to a plugin. See release notes.
⚠️⚠️⚠️ Set environment variable 'SKIP_STARTUP_SCRIPTS' to 'true' to remove this warning.
✅ Initialisation is done.
⏳ Waiting for control socket to be created... (1/10)
2023/02/06 10:56:27 [warn] 8#8 Unit is running unprivileged, then it cannot use arbitrary user and group.
2023/02/06 10:56:27 [info] 8#8 unit 1.27.0 started
2023/02/06 10:56:27 [info] 15#15 discovery started
2023/02/06 10:56:27 [notice] 15#15 module: python 3.10.4 "/usr/lib/unit/modules/python3.10.unit.so"
2023/02/06 10:56:27 [info] 8#8 controller started
2023/02/06 10:56:27 [notice] 8#8 process 15 exited with code 0
2023/02/06 10:56:27 [info] 17#17 router started
2023/02/06 10:56:27 [info] 17#17 OpenSSL 3.0.2 15 Mar 2022, 30000020
⚙️ Applying configuration from /etc/unit/nginx-unit.json
2023/02/06 10:56:28 [info] 21#21 "netbox" prototype started
2023/02/06 10:56:28 [info] 22#22 "netbox" application started
✅ Unit configuration loaded successfully
2023/02/06 10:56:30 [notice] 8#8 process 13 exited with code 0
2023/02/06 10:57:25 [info] 25#25 "netbox" application started
2023/02/06 10:57:27 [info] 26#26 "netbox" application started
Content of docker-compose.override.yml
version: '3.4'
services:
netbox:
volumes:
- ./docker/nginx-unit.json:/etc/unit/nginx-unit.json:z,ro
ports:
- 8000:8080
environment:
REMOTE_AUTH_ENABLED: "True"
REMOTE_AUTH_BACKEND: "netbox.authentication.LDAPBackend"
AUTH_LDAP_SERVER_URI: "ldap://***REMOVED***"
AUTH_LDAP_BIND_DN: "***REMOVED***"
AUTH_LDAP_BIND_PASSWORD: "***REMOVED***"
AUTH_LDAP_USER_SEARCH_BASEDN: "***REMOVED***"
AUTH_LDAP_GROUP_SEARCH_BASEDN: "***REMOVED***"
AUTH_LDAP_REQUIRE_GROUP_DN: "***REMOVED***"
AUTH_LDAP_IS_ADMIN_DN: "***REMOVED***"
AUTH_LDAP_IS_SUPERUSER_DN: "***REMOVED***"
AUTH_LDAP_USER_SEARCH_ATTR: "uid"
AUTH_LDAP_GROUP_SEARCH_CLASS: "groupOfNames"
AUTH_LDAP_GROUP_TYPE: "GroupOfNamesType"
AUTH_LDAP_ATTR_LASTNAME: "sn"
AUTH_LDAP_ATTR_FIRSTNAME: "givenName"
LDAP_IGNORE_CERT_ERRORS: "true"
AUTH_LDAP_START_TLS: "true"
restart: always
netbox-housekeeping:
restart: always
netbox-worker:
restart: always
# postgres
postgres:
restart: always
# redis
redis:
restart: always
redis-cache:
restart: alwaysMetadata
Metadata
Assignees
Labels
No labels