summaryrefslogtreecommitdiffstats
path: root/idp/extra/modules/store.py
diff options
context:
space:
mode:
Diffstat (limited to 'idp/extra/modules/store.py')
-rw-r--r--idp/extra/modules/store.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/idp/extra/modules/store.py b/idp/extra/modules/store.py
index c0d271b..2b007b7 100644
--- a/idp/extra/modules/store.py
+++ b/idp/extra/modules/store.py
@@ -46,7 +46,7 @@ class IdentitiesStorePratic:
def get_identity_for_account(self, username, password, collectivity):
store = directory.get_store()
ldap_conn = ldap.initialize(store.pratic_ldap_url)
- uid = 'uid=%s,%s' % (username, collectivity)
+ uid = 'uid=%s,%s' % (ldap.dn.escape_dn_chars(username)), collectivity)
try:
ldap_conn.simple_bind_s(uid, password)
except ldap.INVALID_DN_SYNTAX: