password prompts should check for empty string
Bug #1391116 reported by
rajiv
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
Undecided
|
Unassigned | ||
python-keystoneclient |
Invalid
|
Medium
|
Unassigned | ||
python-openstackclient |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
If we enter blank password for a user than it accepts it and then user can not log in using either older password or blank password. I reproduce it following way.
1) I entered "keystone user-password-
2) I tried to log in using blank password, i was not able to log in.
3) I tried with older password also, it did not work either.
Changed in python-keystoneclient: | |
assignee: | nobody → rajiv (rajiv-kumar) |
Changed in python-keystoneclient: | |
status: | New → Confirmed |
Changed in keystone: | |
assignee: | nobody → Samuel de Medeiros Queiroz (samuel-z) |
Changed in python-keystoneclient: | |
assignee: | rajiv (rajiv-kumar) → tcs_openstack_group (tcs-openstack-group) |
assignee: | tcs_openstack_group (tcs-openstack-group) → Abhishek Talwar (abhishek-talwar) |
Changed in python-keystoneclient: | |
assignee: | Abhishek Talwar (abhishek-talwar) → Morgan Fainberg (mdrnstm) |
Changed in python-keystoneclient: | |
assignee: | Abhishek Talwar (abhishek-talwar) → Lin Hua Cheng (lin-hua-cheng) |
Changed in python-keystoneclient: | |
assignee: | Lin Hua Cheng (lin-hua-cheng) → Abhishek Talwar (abhishek-talwar) |
Changed in python-openstackclient: | |
assignee: | nobody → Tang Chen (tangchen) |
To post a comment you must log in.
It looks like for V2.0, it checks to see if the password is None:
https:/ /github. com/openstack/ python- keystoneclient/ blob/7780758f11 30f3195ac4145eb c2aea792e55b7d6 /keystoneclient /v2_0/shell. py#L143- L144
If is isn't it moves forward with updating. Doesn't look like it checks if it the password is an empty string. Here is the logic for the V3 client versions;
https:/ /github. com/openstack/ python- openstackclient /blob/c55fdb6f6 d1fc356ee03cf21 fdf3d5b99418c92 1/openstackclie nt/common/ utils.py# L253