Skip to content

Commit 490b155

Browse files
d-w-moorealanking
authored andcommitted
[#350] password input to AUTH_RESPONSE_AN should be string
The default password argument value for _login_native( ) is None, which (for the password-less anonymous login case) caused problems in the string formatting for the AuthResponsemessage to the server. An empty string turns out to be more appropriate.
1 parent 7f00778 commit 490b155

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

irods/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def _login_native(self, password=None):
493493

494494
# Default case, PAM login will send a new password
495495
if password is None:
496-
password = self.account.password
496+
password = self.account.password or ''
497497

498498
# authenticate
499499
auth_req = iRODSMessage(msg_type='RODS_API_REQ', int_info=703)

0 commit comments

Comments
 (0)