From 5930c6d5fb6effe8ca8e26e206f82b03d7185839 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Thu, 3 Dec 2020 14:22:37 +0100 Subject: [PATCH] remove parenthesis in LDAP Message --- cps/services/simpleldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/services/simpleldap.py b/cps/services/simpleldap.py index d61f3fb6..87a9b469 100644 --- a/cps/services/simpleldap.py +++ b/cps/services/simpleldap.py @@ -117,7 +117,7 @@ def bind_user(username, password): return None, error except LDAPException as ex: if ex.message == 'Invalid credentials': - error = ("LDAP admin login failed") + error = "LDAP admin login failed" return None, error if ex.message == "Can't contact LDAP server": # log.warning('LDAP Server down: %s', ex)