Skip to content

Commit 7b506af

Browse files
author
dhirschf
committed
Fix resolved_username regex
1 parent 672bc5d commit 7b506af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ldapauthenticator/ldapauthenticator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def getConnection(userdn, username, password):
302302
if resolved_username is None:
303303
return None
304304

305-
resolved_username = re.subn(r"[^\\],", r"\,", resolved_username)[0]
305+
resolved_username = re.subn(r"([^\\]),", r"\1\,", resolved_username)[0]
306306

307307
bind_dn_template = self.bind_dn_template
308308
if isinstance(bind_dn_template, str):

0 commit comments

Comments
 (0)