Bug 43708 - SAML IDP apache configuration sometimes not working
SAML IDP apache configuration sometimes not working
Product: UCS
Classification: Unclassified
Component: SAML
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Florian Best
Erik Damrose
: interim-3
Depends on:
  Show dependency treegraph
Reported: 2017-03-02 18:19 CET by Florian Best
Modified: 2017-04-04 18:29 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
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:


Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2017-03-02 18:19:13 CET
It seems that sometimes the ucs-sso.$domainname hostname returns HTTP 404 errors for all simplesamlphp links.
If I "apt-get install univention-nagios-*" the problem is fixed.

It seems the cgi modules is not being loaded/enabled.

# curl 'https://ucs-sso.ucs42-20.dev/simplesamlphp/saml2/idp/metadata.php'
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL /saml-bin/php-cgi/simplesamlphp/saml2/idp/metadata.php was not found on this server.</p>
<address>Apache/2.4.10 (Debian) Server at ucs-sso.ucs42-20.dev Port 443</address>

==> /var/log/apache2/other_vhosts_access.log <==
ucs-sso.ucs42-20.dev:443 - - [20/Feb/2017:14:07:51 +0100] "GET /simplesamlphp/saml2/idp/metadata.php HTTP/1.1" 404 3852 "-" "curl/7.38.0"
Comment 1 Florian Best univentionstaff 2017-03-02 18:20:16 CET
univention-saml (4.0.6-4):
r77280 | Bug #43708: enable required cgi module in postinst
Comment 2 Florian Best univentionstaff 2017-03-02 18:20:54 CET
@Alex: Can you revert your system, update it and verify the bug if it works for you then?!
Comment 3 Florian Best univentionstaff 2017-03-03 15:04:38 CET
To fix current systems, either update from UCS 4.1 again or execute:
ucr set umc/saml/idp-server="$(ucr get umc/saml/idp-server)"
Comment 4 Erik Damrose univentionstaff 2017-03-20 17:57:47 CET
OK: enable apache2 cgi mod in postinst.
Reopen: Changelog required
Comment 5 Florian Best univentionstaff 2017-03-20 18:19:47 CET
r78010 | Changelog Bug #43708
Comment 6 Erik Damrose univentionstaff 2017-03-20 18:22:14 CET
changelog: A bit generic, but okay
Comment 7 Stefan Gohmann univentionstaff 2017-04-04 18:29:46 CEST
UCS 4.2 has been released:

If this error occurs again, please use "Clone This Bug".