-
Notifications
You must be signed in to change notification settings - Fork 103
Issue 6199 - wrong search query during certificate based authentication #6205
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
Conversation
|
Fixed the extra space that cause "Validate tests" to fail |
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.
I think it'll be better to wait for CI to be fixed so we can check the PR against tests, but the code looks good to me!
|
I agree about waiting for the CI tests |
6ec2c76 to
4142527
Compare
…tication (#6205) Problems: SubjectDN extracted from the certificate is not escaped when used by certmap.conf Other extracted value are wrongly escaped and quoted when added in filter Solution: Ensure that proper escape function is used in these two cases. Values in filter should not be quoted but * should be escaped. Note: I considered to reuse the ldap_bv2escaped_filter_value function but it needless realloc the returned data so I ended up to rewrite something the escape function (which is quite straightforward anyway). Issue: #6199 Reviewed by: @droideck (cherry picked from commit eedde89)
…tication (#6205) Problems: SubjectDN extracted from the certificate is not escaped when used by certmap.conf Other extracted value are wrongly escaped and quoted when added in filter Solution: Ensure that proper escape function is used in these two cases. Values in filter should not be quoted but * should be escaped. Note: I considered to reuse the ldap_bv2escaped_filter_value function but it needless realloc the returned data so I ended up to rewrite something the escape function (which is quite straightforward anyway). Issue: #6199 Reviewed by: @droideck (cherry picked from commit eedde89)
|
Sorry to come late to this thread. Just a question regarding value2filter_sizes. |
|
According to https://datatracker.ietf.org/doc/html/rfc4515: So the answer is no. FYI: in this code we are escaping filter value (that are already dn string representation (i.e escaped as dn according to RFC4514 ) ) |
Problems:
SubjectDN extracted from the certificate is not escaped when used by certmap.conf
Other extracted value are wrongly escaped and quoted when added in filter
Solution: Ensure that proper escape function is used in these two cases.
Values in filter should not be quoted but * should be escaped.
Note: I considered to reuse the ldap_bv2escaped_filter_value function but it needless realloc the returned data
so I ended up to rewrite something the escape function (which is quite straightforward anyway).
Issue: #6199
Reviewed by: @droideck