Bug 55489 - own certificates are overwritten in radius join script
own certificates are overwritten in radius join script
Status: NEEDMOREINFO
Product: UCS
Classification: Unclassified
Component: Radius
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-12-12 13:47 CET by Christina Scheinig
Modified: 2023-06-08 13:53 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.114
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022120221000134
Bug group (optional): Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2022-12-12 13:47:58 CET
A customer claimed that his own certificates are overwritten during join, or the reexecution of 80univention-radius.inst
After that a radius login was no longer possible


mkdir -p /etc/freeradius/ssl
chmod 2755 /etc/freeradius/ssl
cp "/etc/univention/ssl/$(hostname)/private.key" /etc/freeradius/ssl/private.key
cp "/etc/univention/ssl/$(hostname)/cert.pem" /etc/freeradius/ssl/cert.pem
openssl dhparam -out /etc/freeradius/ssl/dh 1024
chgrp freerad /etc/freeradius/ssl/private.key
chgrp freerad /etc/freeradius/ssl/cert.pem
chmod 440 /etc/freeradius/ssl/private.key
chmod 444 /etc/freeradius/ssl/cert.pem /etc/freeradius/ssl/dh

We should make this either configurable via ucr or check the existing certificates.
Comment 1 Erik Damrose univentionstaff 2022-12-12 16:52:12 CET
Which certificates in which file should be made configurable?

There is already the possibility to modify 
/etc/freeradius/3.0/mods-available/eap
with UCR:
freeradius/conf/private/key/secret/file
freeradius/conf/private/key/file
freeradius/conf/certificate/file
freeradius/conf/ca/file
Comment 4 Erik Damrose univentionstaff 2023-02-22 15:15:50 CET
(In reply to Mirac Erdemiroglu from comment #3)
> to make our RADIUS run correctly, we bought a certificate and configured it
> in the file /etc/freeradius/3.0/mods-enabled/eap.
> 
> 
> After automatic updates of the system the file seems to be overwritten, is
> there a way to persistently store the settings?

Lets not debug this at this bug. To me it sounds like the customer changed something in the mentioned file, and a ucr commit put the file back to its 'normal' template state.

Above, I already mentioned UCR variables to configure a certificate for freeradius