Bug 53802 - Remove depreated univention-admin
Remove depreated univention-admin
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM - CLI
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-09-16 16:23 CEST by Philipp Hahn
Modified: 2023-11-25 16:31 CET (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): API change
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2021-09-16 16:23:53 CEST
`univention-admin` was renamed to `univention-directory-manager` 2007 before Bugzilla was used. But we still have several cases, where the old name of the binary is used:

W:0016-2: management/univention-directory-manager-modules/etc/bash_completion.d/univention-directory-manager:54:21: Use of deprecated "univention-admin"
	complete -F _uniudm univention-admin
	                    ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-directory-manager-modules/univention-cli-server:210:19: Use of deprecated "univention-admin"
	                if cmdfile in ('univention-admin', 'univention-directory-manager', 'udm'):
	                                ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-ldap/test/listner-notifier-test:125:2: Use of deprecated "univention-admin"
	        univention-admin "$module" create --set username="$rand1" --set lastname="$rand2" --set password=univention --set unixhome="/home/$rand1" --set primaryGroup="cn=$groups_default_domainusers,cn=groups,$ldap_base" --position="cn=users,$ldap_base"
	        ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-ldap/test/listner-notifier-test:130:2: Use of deprecated "univention-admin"
	        univention-admin "$module" create --set name="$rand1" --position="cn=groups,$ldap_base"
	        ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-ldap/test/listner-notifier-test:135:2: Use of deprecated "univention-admin"
	        univention-admin "$module" create --set name="$rand1" --set unixhome=/dev/null --set primaryGroup="cn=Computers,cn=groups,$ldap_base" --position="cn=computers,$ldap_base"
	        ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-ldap/test/listner-notifier-test:140:2: Use of deprecated "univention-admin"
	        univention-admin "$module" create --set name="$rand1" --set network=192.168.0.0 --set netmask=255.255.255.0 --position="cn=networks,$ldap_base"
	        ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-ldap/test/listner-notifier-test:145:2: Use of deprecated "univention-admin"
	        univention-admin "$module" create --set name="$rand1" --set spoolHost="$cups_server" --set uri="lp0://$rand1/" --set model="$rand2" --position="cn=printers,$ldap_base"
	        ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-ldap/test/listner-notifier-test:150:2: Use of deprecated "univention-admin"
	        univention-admin "$module" create --set name="$rand1" --set host="$hostname.$domainname" --set path="/home/groups/$rand1/" --position="cn=shares,$ldap_base"
	        ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-ldap/test/listner-notifier-test:232:119: Use of deprecated "univention-admin"
	cmd="for module in users/user groups/group computers/ipmanagedclient networks/network shares/printer shares/share; do univention-admin "$module" list >> /tmp/ldap_dump_$rmhost.tmp; done"
	                                                                                                                      ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-ldap/test/listner-notifier-test:237:119: Use of deprecated "univention-admin"
	cmd="for module in users/user groups/group computers/ipmanagedclient networks/network shares/printer shares/share; do univention-admin "$module" list >> /tmp/ldap_dump_$rmhost2.tmp; done"
	                                                                                                                      ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-ldap/test/listner-notifier-test:481:3: Use of deprecated "univention-admin"
	                univention-admin users/user modify --dn "$dn" --set unixhome=/home/groups
	                ^^^^^^^^^^^^^^^^
W:0016-2: management/univention-ldap/test/listner-notifier-test:787:3: Use of deprecated "univention-admin"
	                univention-admin "$module" remove --dn "$dn"
	                ^^^^^^^^^^^^^^^^
Comment 1 Philipp Hahn univentionstaff 2023-11-25 16:31:59 CET
See https://git.knut.univention.de/univention/ucs/-/merge_requests

univention-admin is deprecated since UCS 3.0 and should be removed from UDM.

management/univention-ldap/test/listner-notifier-test is unmaintained, broken, and non-functional test code, which should be removed, too.