Skip to content
Discussion options

You must be logged in to vote

Found the issue for our edge case. We have Admin usernames that contain a comma "," in the CN field. The ldap filter needs to be escaped properly for it to be accepted as valid.

# examples
CN=Smith (ADM), Bill,OU=Admin,OU=Managed,DC=example,DC=com
CN=Birch (ADM), Jim,OU=Admin,OU=Managed,DC=example,DC=com
--- /usr/lib/python3.9/site-packages/rfl/authentication/ldap.py.bak     2025-11-09 18:01:22.645713323 -0600
+++ /usr/lib/python3.9/site-packages/rfl/authentication/ldap.py 2025-11-09 17:59:59.074502274 -0600
@@ -9,6 +9,7 @@
 import logging

 import ldap
+import ldap.filter

 from .user import AuthenticatedUser
 from .errors import LDAPAuthenticationError
@@ -196,7 +197,7 @@
         sear…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rezib
Comment options

@titleistfour
Comment options

Answer selected by titleistfour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants