Added support for LDAP authentication with different DN by setting the dedicated user for the LDAP connection. Fixes #5484

This commit is contained in:
Khushboo Vashi
2020-07-06 19:35:55 +05:30
committed by Akshay Joshi
parent a6ce78a8c0
commit 58b4c45d0c
5 changed files with 79 additions and 12 deletions
+10
View File
@@ -527,6 +527,16 @@ LDAP_BASE_DN = '<Base-DN>'
# whilst in AD, 'sAMAccountName' might be appropriate. (REQUIRED)
LDAP_USERNAME_ATTRIBUTE = '<User-id>'
# LDAP Bind User DN Example: cn=username,dc=example,dc=com (OPTIONAL)
# Set this parameter to allow the connection to bind using a dedicated user.
# After the connection is made, the pgadmin login user will be further
# authenticated by the username and password provided
# at the login screen. (OPTIONAL)
LDAP_BIND_USER = None
# LDAP Bind User Password (OPTIONAL)
LDAP_BIND_PASSWORD = None
# Search ldap for further authentication
LDAP_SEARCH_BASE_DN = '<Search-Base-DN>'