-
Notifications
You must be signed in to change notification settings - Fork 73
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
Possible PAM Authentication failure on iRODS 4.2.11 #649
Comments
@iychoi Should I be reading in this, that |
Because of the line below, iRODS 4.3.0 will not fall into the _login_pam(). For iRODS servers < 4.3, I believe special characters ("@", "=", "&", ";") should not be escaped when using PamAuthRequest. |
For versions of iRODS >= 4.3.0 we should still get into
Will look into that... thanks! |
I didn't know that. Then, I believe special characters should not be escaped with using PamAuthRequest regardless of iRODS server versions. |
I confirm that all of these characters "@=&;" should not be escaped for iRODS < 4.3. I tested with an account that has all these 4 special characters in the password and it worked when they are not escaped. |
I introduced special characters escaping in PAM passwords to go-irodsclient and gocommands after I found the code in python-irodsclient (676b1f8).
PAM authentication worked very well with iRODS >= 4.3, however, it did not work with iRODS 4.2.11.
Especially when there is a special character
@
in PAM password, it failed. It worked when I disabled the escaping.I believe python-irodsclient may have the same issue although I did not test.
The problematic line is at 497 of connection.py.
https://github.com/irods/python-irodsclient/blob/main/irods/connection.py#L497
The
pamPassword
parameter should beself.account.password
to avoid the issue.The text was updated successfully, but these errors were encountered: