From e9bf695641f4c07fadacf12599ae406c5ecd3ca6 Mon Sep 17 00:00:00 2001 From: Rodrigo Barbieri Date: Thu, 14 Mar 2024 15:22:14 -0300 Subject: [PATCH] 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 (cherry picked from commit da8e959298575127434e6e15aae5d1f0638a6e22) --- openstack_dashboard/api/keystone.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openstack_dashboard/api/keystone.py b/openstack_dashboard/api/keystone.py index 976b61ce40..1e83e7944a 100644 --- a/openstack_dashboard/api/keystone.py +++ b/openstack_dashboard/api/keystone.py @@ -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 )