Univention Bugzilla – Bug 31217
adding user who already exists in a different school moves existing account
Last modified: 2013-06-07 21:39:33 CEST
A customer reported that adding a user (action "A") to school S01 with a uid that is already used in school S02 moves the account to S01. This is the expected behaviour if the user is modified ("M") as the user can move from one school to another.
If it doesn't fit into the release we should fix it as an erratum.
I couldn't reproduce this with UCS@school for 3.1. The behaviour is: 1. import a user with modtype "A" fails (correctly) with the following message: ERROR: Object exists-2 (uidAlreadyUsed) ERROR: there were problems creating this user: uid=max,cn=schueler,cn=users,ou=schule1,dc=ucs,dc=test 2. import a user with modtyp "M" moves the account from one school to an other (correct, too) -> WONTFIX
*** Bug 26011 has been marked as a duplicate of this bug. ***
root@master10:/usr/share/ucs-school-import/scripts# ./import_user test.txt infile is: test.txt Processing line 1: A foobar1 Meyer Anton gsmitte gsmitte-1A foobar1@nstx.local 0 1 0 verify ou for school nr gsmitte do not need to copy dhcp subnet 10.200.18.0/24: cn=10.200.18.0,cn=gsmitte,cn=dhcp,ou=gsmitte,dc=nstx,dc=local (target already exists) do not need to copy dhcp subnet 10.200.18.0/24: cn=10.200.18.0,cn=gsmitte,cn=dhcp,ou=gsmitte,dc=nstx,dc=local (target already exists) creating object uid=foobar1,cn=schueler,cn=users,ou=gsmitte,dc=nstx,dc=local created: uid=foobar1,cn=schueler,cn=users,ou=gsmitte,dc=nstx,dc=local Processing line 2: M foobar2 Schmidt Anton gsmitte gsmitte-1B foobar2@nstx.local 0 1 0 WARNING: user to modify not found, verify ou for school nr gsmitte already done creating object uid=foobar2,cn=schueler,cn=users,ou=gsmitte,dc=nstx,dc=local created: uid=foobar2,cn=schueler,cn=users,ou=gsmitte,dc=nstx,dc=local → OK root@master10:/usr/share/ucs-school-import/scripts# ./import_user test.txt infile is: test.txt Processing line 1: A foobar1 Meyer Anton foo14 foo14-1A foobar1@nstx.local 0 1 0 verify ou for school nr foo14 need to create group cn=Domain Users foo14,cn=groups,ou=foo14,dc=nstx,dc=local creating object cn=Domain Users foo14,cn=groups,ou=foo14,dc=nstx,dc=local need to create group cn=foo14-1A,cn=klassen,cn=schueler,cn=groups,ou=foo14,dc=nstx,dc=local creating object cn=foo14-1A,cn=klassen,cn=schueler,cn=groups,ou=foo14,dc=nstx,dc=local need to create groupshare cn=foo14-1A,cn=klassen,cn=shares,ou=foo14,dc=nstx,dc=local creating object cn=foo14-1A,cn=klassen,cn=shares,ou=foo14,dc=nstx,dc=local ERROR: Object exists-2 (uidAlreadyUsed) ERROR: there were problems creating this user: uid=foobar1,cn=schueler,cn=users,ou=foo14,dc=nstx,dc=local Processing line 2: M foobar2 Schmidt Anton foo14 foo14-1B foobar2@nstx.local 0 1 0 deleted: uid=foobar2,cn=schueler,cn=users,ou=gsmitte,dc=nstx,dc=local WARNING: user to modify not found, verify ou for school nr foo14 already done need to create group cn=foo14-1B,cn=klassen,cn=schueler,cn=groups,ou=foo14,dc=nstx,dc=local creating object cn=foo14-1B,cn=klassen,cn=schueler,cn=groups,ou=foo14,dc=nstx,dc=local need to create groupshare cn=foo14-1B,cn=klassen,cn=shares,ou=foo14,dc=nstx,dc=local creating object cn=foo14-1B,cn=klassen,cn=shares,ou=foo14,dc=nstx,dc=local creating object uid=foobar2,cn=schueler,cn=users,ou=foo14,dc=nstx,dc=local created: uid=foobar2,cn=schueler,cn=users,ou=foo14,dc=nstx,dc=local → OK → VERIFIED
UCS@school 3.1 R2 has been released: http://download.univention.de/doc/release-notes-ucsschool-3.1-rev2.pdf If this error occurs again, please use "Clone This Bug".