From: Yaron Yogev Date: Tue, 8 Aug 2017 12:47:12 +0000 (+0300) Subject: fix syntax error X-Git-Tag: opnfv-5.1.RC1~102^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=ec3ce513b0f22c9cfd4261886640a7104560ad0a;p=calipso.git fix syntax error Change-Id: I99c463efc2dc9cceb9c97508f792e26ff98fc4f7 Signed-off-by: Yaron Yogev --- 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