Skip to content

HOTFIX Move escaping comma to 'def escape_userdn_if_needed' #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

LLluma
Copy link

@LLluma LLluma commented Jun 14, 2018

Fix for bug #79 (Authentication against Active directory stopped working)

@dhirschfeld
Copy link
Collaborator

Hi @LLluma,
Thanks for the PR however I'm not sure that this is the correct fix as you never want to run that regex against a Distinguished Name - a DN is expected to have commas in it so escaping them will break ldap.

This fix just moves the breakage I introduced inside a function, but it's not appropriate there either as the regex was only intended to be applied to the CN attribute where all commas need to be escaped.

I've pushed a fix in #83 which I hope should work for everyone. In the absence of a test suite to catch these things early I resolve to at least fix breakages as quickly as I'm able to!

@dhirschfeld
Copy link
Collaborator

Version 1.2.2 has been published to pypi - please let me know if that fixes the problem for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants