Fix error on changing user password by admin

Previous change I8438bedaf7cead452fc499e484d23690b48894d9
attempted to address bug LP#1728031 by improving upon
patch https://review.opendev.org/854005 but missed the
line that allows the keystone client to properly
authenticate a cloud admin user that IS NOT in the
default domain.

Without this 1-line fix, a cloud admin that is not
in the default domain will face an "incorrect admin
password" error in the UI (despite the admin password
being correct) and an authentication error in the logs,
regardless of the endpoint type used (adminURL,
internalURL or publicURL).

Closes-bug: #1728031
Change-Id: I018e7d9cb84fd6ce8635c9054e15052ded7e9368
This commit is contained in:
Rodrigo Barbieri 2024-03-14 15:22:14 -03:00
parent 3d9855eebb
commit da8e959298
1 changed files with 1 additions and 0 deletions

View File

@ -476,6 +476,7 @@ def user_verify_admin_password(request, admin_password):
username=request.user.username,
password=admin_password,
insecure=insecure,
user_domain_name=request.user.user_domain_name,
cacert=cacert,
auth_url=endpoint
)