Bug 56358 - Automatic server password change: Disable it by default
Automatic server password change: Disable it by default
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: Password changes
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.2
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-28 12:10 CEST by Dirk Wiesenthal
Modified: 2023-07-28 13:05 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?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.023
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

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2023-07-28 12:10:43 CEST
The machine password of each UCS system is rotated every 21 days (ucr get server/password/interval)

This causes problems in some cases. We may want to disable it - by default.

Add a new variable, server/password/rotation, and put it to false by default.

Our tests enforce one server password change, so we should be safe to catch problems caused by systems that have it enabled.
Comment 1 Dirk Wiesenthal univentionstaff 2023-07-28 12:16:24 CEST
We would need to document this variable and also state that features like ppolicy should be disabled in this case.
Comment 2 Philipp Hahn univentionstaff 2023-07-28 13:02:40 CEST
(In reply to Dirk Wiesenthal from comment #0)
> This causes problems in some cases. We may want to disable it - by default.

Please be more specific: in *which* cases exactly.

> Add a new variable, server/password/rotation, and put it to false by default.

base/univention-server/server_password_change:124ff
  124 is_ucr_true server/password/change
  125 if [ $? = 1 ]; then
  126 »···echowithtimestamp "Server password change is disabled by the UCR variable server/password/change" >&3
  127 »···exit 0
  128 fi

Disabling rotation by default is a anti-security feature: without a regular password change these /etc/machine.secret becomes an eternal security risk as it will be valid infinitely. We already have that issue with ldap.secret, see Bug #47455