Fix remove role assignment adds role using LDAP assignment
When using the LDAP assignment backend, attempting to remove a
role assignment when the role hadn't been used before would
actually add the role assignment and would not return a
404 Not Found like the SQL backend.
This change makes it so that when attempt to remove a role that
wasn't assigned then 404 Not Found is returned.
Closes-Bug: #1242855
Change-Id: I28ccd26cc4bb1a241d0363d0ab52d2c11410e8b3
(cherry picked from commit c6800ca1ac984c879e75826df6694d6199444ea0)
(cherry picked from commit b17e7bec768bd53d3977352486378698a3db3cfa)
Reviewed: https:/ /review. openstack. org/53146 github. com/openstack/ keystone/ commit/ 4221b6020e6b0b4 2325d8904d7b8a2 2577a6acc0
Committed: http://
Submitter: Jenkins
Branch: stable/havana
commit 4221b6020e6b0b4 2325d8904d7b8a2 2577a6acc0
Author: Brant Knudson <email address hidden>
Date: Mon Oct 21 15:21:12 2013 -0500
Fix remove role assignment adds role using LDAP assignment
When using the LDAP assignment backend, attempting to remove a
role assignment when the role hadn't been used before would
actually add the role assignment and would not return a
404 Not Found like the SQL backend.
This change makes it so that when attempt to remove a role that
wasn't assigned then 404 Not Found is returned.
Closes-Bug: #1242855 241d0363d0ab52d 2c11410e8b3 79e75826df6694d 6199444ea0) d39773524863786 98a3db3cfa)
Change-Id: I28ccd26cc4bb1a
(cherry picked from commit c6800ca1ac984c8
(cherry picked from commit b17e7bec768bd53