Skip to content

Commit 5f05047

Browse files
author
Juan Puerto
committed
fix: syntax fix
1 parent 2d43e8a commit 5f05047

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/user_workspaces_server/controllers/userauthenticationmethods/psc_api_user_authentication.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,15 +408,15 @@ def get_external_user_ldap(self, external_user):
408408
try:
409409
conn = ldap.initialize(self.ldap_uri)
410410
conn.simple_bind_s(self.ldap_user_dn, self.ldap_password)
411-
411+
412412
search_filter = f"(uidNumber={external_user.external_user_details.get('uid')})"
413413
results = conn.search_s(self.ldap_base, ldap.SCOPE_SUBTREE, search_filter)
414414
user = results[0][1]
415415
conn.unbind_s()
416-
416+
417417
except ldap.LDAPError as e:
418418
logger.error(f"LDAP error: {repr(e)}")
419419
except Exception as e:
420420
logger.error(f"General error: {repr(e)}")
421-
421+
422422
return external_user if user else user

0 commit comments

Comments
 (0)