-
Notifications
You must be signed in to change notification settings - Fork 74
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
Escape PAM special characters properly #656
Conversation
It looks like these changes address our issue #650 . |
Very good - thank you @llp-rug. |
Also please eyeball Codacy |
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.
Good. I think that this may be ready for squashing soon...
Please rebase and squash and we'll have another look. That should take care of the commit you attempted to revert as it will not need to replay those changes on top of the work done in #663. |
irods/test/scripts/test005_test_special_characters_in_passwords.bats
Outdated
Show resolved
Hide resolved
irods/test/scripts/test005_test_special_characters_in_passwords.bats
Outdated
Show resolved
Hide resolved
irods/test/scripts/test005_test_special_characters_in_passwords.bats
Outdated
Show resolved
Hide resolved
41548dd
to
911106f
Compare
I think that covers all the review comments. I think we're ready for another squash. |
Yes, almost ... but due to restoration of my lost work from yesterday, perhaps we want to take another look. See: c5bf14e |
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.
New changes look alright to me. Let's wait for one more set of eyeballs before we begin the squashing
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.
Looks good.
Squash to taste if the tests are passing.
Tests pass.... squashing. |
agreed on all counts. |
Ok, those issue numbers are replaced with new ones. |
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.
Excellent. # it.
This fixes the approach to escaping characters from the set: [@&;=] that iRODS historically has had problems accommodating in PAM passwords in the past. Presently, for iRODS 4.2 and 4.3 we only need to consider ";" and "=" as problematic characters, due to the conflict with the use of those characters in the KVP-formatted context parameter when the AUTH_PLUG_REQ_AN api is used.
That is, test the case of overwrite = False for the free function: irods.client_init.write_native_credentials_to_secrets_file
That is, test the case of overwrite = False for the free function: irods.client_init.write_pam_credentials_to_secrets_file
Fix character escaping.
For servers in the 4.2 and 4.3 series,
@
and&
no longer need escaping. We shall still escape=
and;
due to their use as part of kvp (key-value pair) strings in the iRODS protocol.