Univention Bugzilla – Bug 49823
Copyable user properties
Last modified: 2020-09-30 15:37:45 CEST
UDM supports cloning existing users to create new users. Several properties are marked as copyable, which for a user do not make sense: - firstname - lastname - gecos - displayName - employeeNumber - homePostalAddress - homeTelephoneNumber - birthday - jpegPhoto - userCertificate - certificate* (they are display-only, e.g. editable=False!) - ... They should not be copied by default. UCS technical training 2019-06-27/28 UCS technical training 2019-05-08/09
Created attachment 10289 [details] patch With the attached patch the following properties will not be copied anymore: - firstname - lastname - gecos - displayName - title - initials - employeeNumber - homePostalAddress - mobileTelephoneNumber - pagerTelephoneNumber - birthday - jpegPhoto - userCertificate - certificate*
*** Bug 46199 has been marked as a duplicate of this bug. ***
(In reply to Florian Best from comment #2) > *** Bug 46199 has been marked as a duplicate of this bug. *** When fixing make sure this is fixed as well.
Patch applied and test added in ccastens/49823-copyable-user-properties and ready for QA. TODO merge to 4.4-6.
checked ccastens/49823-copyable-user-properties FAIL - jpegPhoto still copyable (copyable=True) OK - no longer copyable ... ok - firstname ok - lastname ok - gecos ok - displayName ok - passwordexpiry ok - employeeNumber ok - homePostalAddress ok - homeTelephoneNumber ok - birthday ok - userCertificate ok - certificate* ok - title ok - initials ok - mobileTelephoneNumber ok - pagerTelephoneNumber
I also started the test on a "unmodified" UCS 4.4-5, and the test succeeded? So i guess there is some work to do there as well.
Package: univention-directory-manager-modules Version: 14.0.16-2A~4.4.0.202009241414 Branch: ucs_4.4-0 Scope: errata4.4-6 revision after first QA: jpegPhoto property has been removed from being copyable. changed file: management/univention-directory-manager-modules/modules/univention/admin/handlers/users/user.py commits (4.4-6): commit 19879e48b72d5a7dfbf1413a1d7803544e33ee98 (yaml) commit 8d74b65614f93fb70a518ab25173082fcfb73c7e (changelog) commit c52c30c1413f3983f8617da28bbb8be65c08c9e4 (new features)
OK - yaml (i made this change 570ca55b47fb9f6a073c4d2b1323b6b192152f33, hope this is OK) OK - univention-directory-manager-modules.yaml Please create merge request for to 5.0-0.
merge request for 5.0-0 created.
https://git.knut.univention.de/univention/ucs/-/merge_requests/3
OK - merge request
<https://errata.software-univention.de/#/?erratum=4.4x757>