-
Notifications
You must be signed in to change notification settings - Fork 774
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
Distinguished names comparator [18789] #3559
Conversation
270c155
to
f341973
Compare
@richiprosima Please test this |
@richiprosima Please test this |
@richiprosima Please test this |
@jparisu Please take a look at the uncrustify issue. Is the Windows failed test related with the PR? Update: documentation CI did not pass due to version conflicts. Rebasing master would solve that |
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
c5fb837
to
00b2761
Compare
It does not seem so
Let's see if it works now |
@richiprosima Please test this |
@richiprosima Please test this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR serves as a nice initial implementation of the RFC 2253 Distinguished names.
The implementation is not complete yet and could be enhanced by using classes instead of direct strings but it really brings more robustness and improves the old way of performing string comparisons within the security accescontrol
. Good job !
Just leaving some suggestions and NITs
Signed-off-by: jparisu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A NIT. Please upload also the fix for the linter
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
04ddb79
to
095566e
Compare
Signed-off-by: jparisu <[email protected]>
@richiprosima Please test this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with Green CI
@richiprosima please test this |
Failed test not related with this PR. mac compilation and tests were checked before in 00b2761. |
Reimplement Distinguished names comparator function
rfc2253_string_compare
.Description
There was an incorrect behavior in the comparison of Distinguished Names in security accesscontrol module.
Main problem is that RFC 2253 was not correctly followed, and some Distinguished Names that should be accepted were not (mainly because disorder of value-types attributes was not contemplated).
This PR have the following features in respective commits:
rfc2253_string_compare
function (c80227739b7842dbc7428da9e73b338881989cb7)Documentation
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist