Bug 31026 - Cleanup univention-server
Cleanup univention-server
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 5.0
All Linux
: P5 enhancement (vote)
: UCS 5.0
Assigned To: Philipp Hahn
Arvid Requate
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-11 12:18 CEST by Philipp Hahn
Modified: 2021-05-25 16:02 CEST (History)
2 users (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): Cleanup
Max CVSS v3 score:
hahn: Patch_Available+


Attachments
Cleanup (23.11 KB, patch)
2013-04-11 12:18 CEST, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2013-04-11 12:18:41 CEST
Created attachment 5165 [details]
Cleanup

Quoting
Duplicated code
Hard-coded LDAP port
Wrap long lines
Fix $LOG>>
Simplify shell constructs

 check_connection                 |   42 +++--------
 managed-client                   |  101 +++++++++++++---------------
 mobile-client                    |   99 +++++++++++++---------------
 server_password_change           |  137
++++++++++++++++++---------------------
 univention-ldap-server-available |   27 ++-----
 5 files changed, 180 insertions(+), 226 deletions(-)

UNTESTED
Comment 1 Stefan Gohmann univentionstaff 2016-10-11 08:04:01 CEST
This issue has been filed against UCS 3.1.

UCS 3.1 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please reopen.
Comment 2 Philipp Hahn univentionstaff 2016-10-12 09:35:00 CEST
The same broken code is still in UCS-4.2, except that
- mobile- and managed-client are no longer present
- server_password_change uses create_machine_password instead of mkpasswd
Comment 3 Ingo Steuwer univentionstaff 2020-07-03 20:54:24 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Comment 4 Philipp Hahn univentionstaff 2020-07-05 07:10:22 CEST
The package still contains substandard code after 7 years...

check_connection is unused - it was for mobile/managed clients only
univention-ldap-server-available needs work.
server_password_change even more:
- passes the password around on command line for everyone to see (Security)

PS: /etc/machine.secret.SAVE is updated by univention-join, which uses "cat" to append the previous password, which does not end on a new-line.

[feature/ucs5] f9a2ae1184 Bug #31026 server: Cleanup scripts
 base/univention-server/check_connection            |  99 ---------
 base/univention-server/debian/changelog            |   6 +
 base/univention-server/server_password_change      | 230 +++++++++++----------
 .../univention-ldap-server-available               |  30 +--
 .../server_password_change.d/README.API            |   7 +-
 doc/changelog/changelog-5.0-0.xml                  |   2 +-
 6 files changed, 141 insertions(+), 233 deletions(-)


QA:
 ucr set server/password/interval=0
 SPCDEBUG=1 bash ./server_password_change
Comment 6 Arvid Requate univentionstaff 2021-03-16 17:18:14 CET
Verified:
* Code review
* Functional test

a1d8090d78 | Fix changelog typo
Comment 7 Florian Best univentionstaff 2021-05-25 16:02:13 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

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