Univention Bugzilla – Bug 37154
The string length of Windows and CSV import are not compatible.
Last modified: 2015-02-27 15:19:43 CET
Fix this for UCS@school 4.0 too. +++ This bug was initially created as a clone of Bug #36450 +++ The string length of Windows (max. 20) and CSV import (unlimited) are not compatible. The user name is not truncated after 20 characters . A suggestion would be that a warning message is displayed with the following content. 'The user name contains more than 20 characters.'
The CSV import module and the users wizard now check the length of usernames. The username may not be longer than (20 - len(ucr get ucsschool/ldap/default/userprefix/exam)) characters. Otherwise the CSV import module marks the cell in red. The users wizard shows an exclamation mark and a corresponding tooltip message. The error messages also mention the maximum allowed username length, that is calculated depending on the UCR variable ucsschool/ldap/default/userprefix/exam. By default, the UCR variable is empty and the prefix "exam-" is used. ucs-school-umc-wizards (5.0.1-1) unstable; urgency=low r58006 | Bug #37154: limit length of usernames to prevent windows logon errors Changelog entry has been made in changelog-ucsschool-4.0v2.xml Package has been rebuilt: ucs-school-umc-wizards_5.0.1-1.121.201502121638_all.deb
As discussed with Stefan, the "error" message (red) should be rather a "warning" (yellow).
r58324 | Bug #37154: fixed js code r58323 | Bug #37154: fixed translation r58322 | Bug #37154: fixed js code; fixed translation r58316 | Bug #37154: added UCR variable to disable length limit of usernames r58315 | Bug #37154: show warning if max length of usernames is exceeded to prevent problems with windows logons r58020 | Bug #37154: updated changelog entry r58018 | Bug #37154: added changelog entry r58006 | Bug #37154: limit length of usernames to prevent windows logon errors r57988 | Bug #37154: limit length of usernames to prevent problems with windows logins The username length is now enforced within the "Students (Schools)" wizards. By setting ucsschool/ldap/check/username/lengthlimit=false the limitation can be disabled. ucs-school-umc-wizards (5.0.1-4) unstable; urgency=low ucs-school-umc-csv-import (2.0.6-2) unstable; urgency=low
Please test both modules. And also the 3 states of the new UCR variable (undefined, true, false).
OK
UCS@school 4.0 v2 has been released: http://docs.univention.de/release-notes-ucsschool-4.0v2-de.html If this error occurs again, please use "Clone This Bug".