From 46ccec4ca4349f036ead4b33b532700462b0a3f2 Mon Sep 17 00:00:00 2001 From: Harrison-S1 <54186142+Harrison-S1@users.noreply.github.com> Date: Thu, 12 Nov 2020 16:22:07 +0000 Subject: [PATCH] Update 6-ldap.md When going through the set up I kept getting the error (from logging) "Authentication failed for USERNAME: failed to map the username to DN" I could login with the service account 'netbox' I created to bind. I changed to password of the user to match the service account and it went straight through. Looks like the bind password was being used to login and not the users password. Checked the doc on django https://django-auth-ldap.readthedocs.io/en/latest/reference.html and they have single quotes. --- docs/installation/6-ldap.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation/6-ldap.md b/docs/installation/6-ldap.md index b7d525413..b8c897673 100644 --- a/docs/installation/6-ldap.md +++ b/docs/installation/6-ldap.md @@ -61,8 +61,8 @@ AUTH_LDAP_CONNECTION_OPTIONS = { } # Set the DN and password for the NetBox service account. -AUTH_LDAP_BIND_DN = "CN=NETBOXSA, OU=Service Accounts,DC=example,DC=com" -AUTH_LDAP_BIND_PASSWORD = "demo" +AUTH_LDAP_BIND_DN = 'CN=NETBOXSA, OU=Service Accounts,DC=example,DC=com' +AUTH_LDAP_BIND_PASSWORD = 'demo' # Include this setting if you want to ignore certificate errors. This might be needed to accept a self-signed cert. # Note that this is a NetBox-specific setting which sets: