root@ucs01:~# univention-app info UCS: 4.2-3 errata284 App Center compatibility: 4 Installed: ucsschool=4.2 v7 When running ... > /usr/share/ucs-school-import/scripts/ucs-school-user-import --dry-run [...] ... the dry-run will not detect or warn about duplicates of usernames. Scenario: There's a user Mary Somerville with the username "m.somerville" that was created by any other method than "ucs-school-user-import" (e.g. via UMC/UDM or older import tools). Now I want to import a bunch of users via "ucs-school-user-import" and one of those users is Michael Somerville. My import schema config will use "m.somerville" as username. The dry-run will NOT warn me that "m.somerville" already exists nor will it append the counter. A real import without --dry-run will then fail to create "m.somerville", because a user with this username already exists.
(In reply to Michael Grandjean from comment #0) > root@ucs01:~# univention-app info > UCS: 4.2-3 errata284 > App Center compatibility: 4 > Installed: ucsschool=4.2 v7 > > When running ... > > > /usr/share/ucs-school-import/scripts/ucs-school-user-import --dry-run [...] > > ... the dry-run will not detect or warn about duplicates of usernames. > > Scenario: > > There's a user Mary Somerville with the username "m.somerville" that was > created by any other method than "ucs-school-user-import" (e.g. via UMC/UDM > or older import tools). From the point of view of the import (concept), that is the same as a user imported with sourceUID="". > Now I want to import a bunch of users via "ucs-school-user-import" and one > of those users is Michael Somerville. My import schema config will use > "m.somerville" as username. The dry-run will NOT warn me that "m.somerville" > already exists nor will it append the counter. > A real import without --dry-run will then fail to create "m.somerville", > because a user with this username already exists. This is one of the cases, where the validity test is left up to UDM - and thus does not happen in the dry-run. This test can easily be done without UDM though, adding it to the list of Bug #45715. *** This bug has been marked as a duplicate of bug 45715 ***