Commit 000b3ec
[#290] only anonymous user can log in without password
Logins without a password (ie. when password='', or when the secrets file
".irodsA" is missing from the irods environment) should only be allowed for the
anonymous user.
The need for this fix was discovered when the demonstration script at:
#315 (comment)
ceased to trip the issue at hand (#315) when rebased to follow commit:
91b1ada
( [#290] allow skipping of password file in anonymous user case )
Note that prior to the two #290 related commits (ie. this and the above-
mentioned one), instantiating an iRODSSession object from the user's
client environment without the secrets file present would raise a
FileNotFoundError.
As of this change, attempts by any other user than `anonymous' to log in
without auth credentials will instead raise an Exception of type:
`NonAnonymousLoginWithoutPassword'1 parent a887220 commit 000b3ec
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
116 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
| |||
201 | 209 | | |
202 | 210 | | |
203 | 211 | | |
204 | | - | |
| 212 | + | |
| 213 | + | |
205 | 214 | | |
206 | 215 | | |
207 | 216 | | |
| |||
219 | 228 | | |
220 | 229 | | |
221 | 230 | | |
222 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
223 | 234 | | |
224 | 235 | | |
| 236 | + | |
| 237 | + | |
225 | 238 | | |
226 | 239 | | |
227 | 240 | | |
| |||
0 commit comments