mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where if LDAP_SEARCH_BASE_DN is not set then, the value for LDAP_BASE_DN will be considered. Fixes #5487
This commit is contained in:
committed by
Akshay Joshi
parent
9f445dc052
commit
d1bdb178e2
@@ -158,7 +158,8 @@ class LDAPAuthentication(BaseAuthentication):
|
||||
search criteria."""
|
||||
try:
|
||||
search_base_dn = config.LDAP_SEARCH_BASE_DN
|
||||
if search_base_dn is None or search_base_dn == '':
|
||||
if search_base_dn is None or search_base_dn == '' or\
|
||||
search_base_dn == '<Search-Base-DN>':
|
||||
search_base_dn = config.LDAP_BASE_DN
|
||||
self.conn.search(search_base=search_base_dn,
|
||||
search_filter=config.LDAP_SEARCH_FILTER,
|
||||
|
||||
Reference in New Issue
Block a user