Bug 55203 - simplesamlphp option hostfqdn not configurable, password change on SSO login page not possible
simplesamlphp option hostfqdn not configurable, password change on SSO login ...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: SAML
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-4-errata
Assigned To: Nikola Radovanovic
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-09-13 18:59 CEST by Erik Damrose
Modified: 2023-07-26 14:55 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.229
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022083021000376
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Damrose univentionstaff 2022-09-13 18:59:30 CEST
Our Single Sign On setup with simplesamlphp can be reconfigured, as is for example described here:

https://help.univention.com/t/6681

If the SSO FQDN is changed from the default, one scenario does not work anymore:

Users can set their password on the SSO loginpage, if a password change is required at the next login. The password change request is done from our simplesamlphp theme in PHP. The request is done against the configured `hostfqdn` config option, which is currently hardcoded to UCR $hostname.$domainname.

If the SSO configuration has been changed, the password change will fail, and the syslog will show:

Sep  7 11:19:32 srv31672 simplesamlphp[1351]: 4 [e37b3df9e4] Error: SSL: no alternative certificate subject name matches target host name 'orig-hostname.domainname'
Sep  7 11:19:32 srv31672 simplesamlphp[1351]: 7 [e37b3df9e4] Password changing response: array (

The issue is, that by reconfiguring SSO, only the external apache2 virtualhost is available to access simplesamlphp, and the cert does not match (from the perspective of PHP, which uses the `hostfqdn` option).

Workaround: Copy /etc/apache2/sites-available/univention-saml.conf, edit it manually to provide a simplesamlphp VirtualHost for the UCR $hostname.domainname FQDN, with a matching SSL cert from /etc/univention/ssl/$hostname.$domainname. The apache2 conf has to be enabled and apache2 restarted.
Comment 2 Nikola Radovanovic univentionstaff 2023-07-18 14:13:14 CEST
06296c44e2 | simplesamlphp option hostfqdn not configurable
Comment 3 Nikola Radovanovic univentionstaff 2023-07-18 14:40:39 CEST
06296c44e2 | simplesamlphp option hostfqdn not configurable
Comment 4 Felix Botner univentionstaff 2023-07-25 11:01:59 CEST
OK univention-saml.yaml
Comment 5 Christian Castens univentionstaff 2023-07-26 14:55:45 CEST
<https://errata.software-univention.de/#/?erratum=5.0x753>