diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/api/backends/ldap_access.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/api/backends/ldap_access.py b/app/api/backends/ldap_access.py index a998656..36914ca 100644 --- a/app/api/backends/ldap_access.py +++ b/app/api/backends/ldap_access.py @@ -74,7 +74,7 @@ class LDAPAccess(metaclass=Singleton): if not self.server: self.server = self.connect_ldap_server() - user_dn = self.ldap_params['user_id_attribute'] + "=" + + user_dn = self.ldap_params['user_id_attribute'] + "=" + \ username + "," + self.ldap_params['user_tree_dn'] connection = Connection(self.server, user=user_dn, password=pwd) # validate the user by binding |