Univention Bugzilla – Bug 41172
udm-cli --remove doesn't work with singlevalue attribute name
Last modified: 2016-06-15 16:20:37 CEST
+++ This bug was initially created as a clone of Bug #20899 +++ reported at Ticket#: 2016042821000407 when removing an e-mail address of a user using udm cli, the following error is shown: root@mucs:~$ udm users/user modify --dn="uid=user1,cn=users,dc=univention,dc=local" --remove mailCanonicalInternalPrimaryMailAddress Invalid syntax: Internal primary mail address: Not a valid email address! (No "@"-character to separate local-part and domain-part) -- DN: uid=user1,cn=users,dc=univention,dc=local ARG: None mailPrimaryAddress: user1@univention.local mailAlternativeAddress: user.1@univention.local mailCanonicalInternalAlternativeMailAddress: user.one@univention.local mailCanonicalPublicPrimaryMailAddress: user.one@univention.public mailCanonicalPublicAlternativeMailAddress: user.one@univention.public mailCanonicalInternalPrimaryMailAddress: user.one@univention.local --8<--
Created attachment 7633 [details] make udm cope with wrong command (remove instead of set) Only tested with: udm users/user modify --dn=uid=test5,dc=uni,dc=dtr --remove firstname udm users/user modify --dn=uid=test5,dc=uni,dc=dtr --remove mailPrimaryAddress
happened again at Ticket#2016051921000146
Created attachment 7669 [details] patch
(In reply to Daniel Tröder from comment #1) > Created attachment 7633 [details] > make udm cope with wrong command (remove instead of set) This patch doesn't respect e.g. --remove foo=bar.
The UDM command line tool now supports the use of '--remove' on single value attributes. Code change: r69396 + r69399 Advisory: r69400
*** Bug 28995 has been marked as a duplicate of this bug. ***
*** Bug 7463 has been marked as a duplicate of this bug. ***
REOPEN: svn r69396 was not reverted after applying patch from attachment 7669 [details]
r69396 was reverted in r70077 and package univention-directory-manager-modules was rebuild in scope errata4.1-2 (new version 11.0.3-7.1399.201606101231). Advisory: r70078
The following doesn't work: udm users/user modify --dn ... --remove mailAlternativeAddress
Created attachment 7740 [details] patch
Patch tested and applied in r70162, rebuild and advisory updated (r70163).
OK: YAML OK: --remove singleValue OK: --remove singleValue=foo OK: --remove multiValue OK: --remove multiValue=foo
<http://errata.software-univention.de/ucs/4.1/199.html>