Skip to content
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

Implement DistinguishedName comparison with text #93

Open
adiroiban opened this issue Jan 15, 2018 · 0 comments
Open

Implement DistinguishedName comparison with text #93

adiroiban opened this issue Jan 15, 2018 · 0 comments

Comments

@adiroiban
Copy link
Member

16.0.1 used to allow comparing a DistinguishedName with a text... but the implementation was broken as it relies on simple string comparison... and had no test coverage

The 16.0.1 implementation converting the DistinguishedName to a text and then compare it, instead of converting the text to a DistinguishedName and then do the comparison.

See the end of https://www.ldap.com/ldap-dns-and-rdns

Two DistinguishedName can still be compared. This is only about things like

dn.DistinguishedName('dc=example,dc=com') > 'dc = example, dc = dc`
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

No branches or pull requests

1 participant