Keystone auth needs a way to propogate some error message based on some kind of configuration

Bug #1365458 reported by Mahesh Sawaiker
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
django-openstack-auth
Confirmed
Wishlist
Unassigned

Bug Description

We are using a password policy in ldap that locks accounts if they try authenticating with a wrong password more than certain number of times.

When an account is locked, the Horizon UI shows Invalid username/password.

Following is the change i made to get what I wanted, but we need something more generic and configurable (example easily allow user to know his password has expired, based on the response coming from the keystone client)

vim "/usr/lib/python2.6/site-packages/openstack_auth/backend.py" - changes on line 98 and 99

 94 except (keystone_exceptions.Unauthorized,
 95 keystone_exceptions.Forbidden,
 96 keystone_exceptions.NotFound) as exc:
 97 msg = _('Invalid user name or password.')
 98 if exc.message == "Error, Account is locked":
 99 msg = "Error, Account is locked contact the administrator"

Dolph Mathews (dolph)
affects: keystone → horizon
tags: added: error-reporting keystone
affects: horizon → django-openstack-auth
Revision history for this message
David Lyle (david-lyle) wrote :

The difficulty is that propagated messages are usually not localized.

Changed in django-openstack-auth:
importance: Undecided → Wishlist
David Lyle (david-lyle)
Changed in django-openstack-auth:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.