diff options
author | Yaron Yogev <yaronyogev@gmail.com> | 2017-08-08 15:47:12 +0300 |
---|---|---|
committer | Yaron Yogev <yaronyogev@gmail.com> | 2017-08-08 15:47:12 +0300 |
commit | ec3ce513b0f22c9cfd4261886640a7104560ad0a (patch) | |
tree | e0824f7ef140c380870c4546fa88e41cc34c73e5 | |
parent | c681fbae72cf832b2fcb4b0d787e3615297b16df (diff) |
fix syntax error
Change-Id: I99c463efc2dc9cceb9c97508f792e26ff98fc4f7
Signed-off-by: Yaron Yogev <yaronyogev@gmail.com>
-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 |