Branch: refs/heads/2.1.0
Home:
https://github.com/tribe29/checkmk
Commit: 3351e4c1601a1dc7f70ae1bd8f2d93d407c1cc90
https://github.com/tribe29/checkmk/commit/3351e4c1601a1dc7f70ae1bd8f2d93d40…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-09-28 (Wed, 28 Sep 2022)
Changed paths:
A .werks/14806
M cmk/gui/plugins/openapi/endpoints/user_config.py
M tests/unit/cmk/gui/plugins/openapi/test_openapi_user.py
Log Message:
-----------
14806 FIX Users created with the REST API can be edited
Previously if a user was created via the REST-API it could not be edited in the GUI. This
has been fixed now.
Change-Id: I4b95fdb0c8f280e08fabcb19f657d2a3aec6188c
JIRA-Ref: FEED-7346-api-user-not-editable-2.1
--- Code explanation ---
The decision if a user is editable in the gui is based on the presence
of the "connector" key in the UserSpec, see
`cmk/gui/wato/pages/users.py:362`.
With this change the connector is always set to htpasswd if
authentication for a user is set. If the password is removed the
connector is removed as well.
The choice of htpassword was used, as this is the default observed in a
"heute" site.
Change-Id: I1ea29755d7ec315db170d0ea3808d1b20f6800e0
JIRA-Ref: FEED-7346