Bug 31217 - adding user who already exists in a different school moves existing account
adding user who already exists in a different school moves existing account
Status: CLOSED WORKSFORME
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 3.1
Other Linux
: P5 normal (vote)
: UCS@school 3.1 R2
Assigned To: Alexander Kläser
Sönke Schwardt-Krummrich
: interim-2
: 26011 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-26 15:04 CEST by Ingo Steuwer
Modified: 2013-06-07 21:39 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Steuwer univentionstaff 2013-04-26 15:04:03 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.
Comment 1 Stefan Gohmann univentionstaff 2013-04-29 07:21:33 CEST
If it doesn't fit into the release we should fix it as an erratum.
Comment 2 Ingo Steuwer univentionstaff 2013-04-30 16:47:25 CEST
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
Comment 3 Alexander Kläser univentionstaff 2013-05-03 12:06:56 CEST
*** Bug 26011 has been marked as a duplicate of this bug. ***
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2013-05-21 16:55:43 CEST
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
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2013-06-07 21:39:33 CEST
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".