Univention Bugzilla – Bug 38832
Default user template
Last modified: 2015-08-06 17:55:38 CEST
It should be possible to define a default user template, for example ucr set umc/default/usertemplate="groupware account"
As an alternative the first found template should be used, that would solve my use case.
Created attachment 7003 [details] bug_38832.patch
Patch applied. Now the first template (ABC order) is used. r61861 univention-management-console-module-udm (5.1.25-73)
(In reply to Stefan Gohmann from comment #0) > It should be possible to define a default user template, for example > ucr set umc/default/usertemplate="groupware account" This feature already exists see Bug #13073 I kept the ucr variable ... directory/manager/web/modules/users/user/add/default ... but we added some convenient behavior: - if no variable is set, the first template is used - ... also if the variable does not match with any template id or label - the variable can contain a dn or app name/label (e.g. owncloud), we check both cases - the label is case insensitive - the label which matches with the dn/label is displayed as default - the list entry 'None' will be always displayed at the top of the list - ... for this we made a shallow copy of the templates - ... this will also avoid unwanted changes of the list r61869 univention-management-console-module-udm (5.1.25-74) r61870 - adapted the german translation for None from Kein to Keine (Vorlage) Successful build Package: univention-management-console-module-udm Version: 5.1.25-75.585.201507081305 Branch: ucs_4.0-0 Scope: errata4.0-2 r61874: yaml file
As discussed, I adjusted the YAML file slightly.
r61973 Description of the ucr variable adapted Successful build Package: univention-directory-manager-modules Version: 10.0.31-3.1326.201507091100 Branch: ucs_4.0-0 Scope: errata4.0-2 r61974 yaml file
r61977 Improved template condition Package: univention-management-console-module-udm Version: 5.1.25-76.587.201507091406 Branch: ucs_4.0-0 Scope: errata4.0-2 r61987 yaml file
<http://errata.univention.de/ucs/4.0/235.html>
*** Bug 26424 has been marked as a duplicate of this bug. ***
Changes look good and work as expected. A adjusted the YAML entry a tiny bit. 2015-05-12-univention-management-console-module-udm.yaml: r62497 | Bug #38832: minor YAML entry adjustments → VERIFIED
<http://errata.univention.de/ucs/4.0/265.html>