Bug 56871 - UMC set/password depends on Kerberos, which is not available in openDesk
UMC set/password depends on Kerberos, which is not available in openDesk
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 5.0
All All
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-11-24 13:46 CET by Thomas Kintscher
Modified: 2023-11-24 13:54 CET (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
set_password_without_kerberos.patch (4.37 KB, patch)
2023-11-24 13:47 CET, Thomas Kintscher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kintscher univentionstaff 2023-11-24 13:46:56 CET
The set/password endpoint of the UMC is used e.g. in the portal to allow users to change their own passwords.

This is currently implemented using PAM's `chauthtok` function, which is configured in the appliance to use pam_krb5. This verifies the old password and calls the Samba/Kerberos server. The patched server then calls UDM to execute the actual change.

In the containerized environment (UMS/openDesk) it is not foreseen to deliver a Kerberos server, therefore this password change method does not work.

We have mitigated this for now by patching UMC to
- verify the old password via PAM,
- and perform the password change directly with UDM,
to avoid the Kerberos roundtrip.

In the interest of maintainability, it would be beneficial to have this functionality upstream in the UMC codebase.

In whatever way this is implemented, a(n optional) codepath which does not use Kerberos is necessary.
Comment 1 Thomas Kintscher univentionstaff 2023-11-24 13:47:38 CET
Created attachment 11151 [details]
set_password_without_kerberos.patch

Current workaround in `container-umc`.