Bug 43621 - copy_domain_data: uidAlreadyUsed not handled
copy_domain_data: uidAlreadyUsed not handled
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-23 11:17 CET by Florian Best
Modified: 2019-03-20 09:02 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.143
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017022221000698, 2019032021000329
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2017-02-23 11:17:25 CET
Version: 4.1-4 errata404 (Vahr)

Traceback(7777e2f22e37ef35a3d60f3700350c9f):
Die Ausführung des Kommandos 'copy_domain_data' ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/modules/adtakeover/__init__.py", line 60, in _background
    result = func(self, request)
  File "%PY2.7%/univention/management/console/modules/adtakeover/__init__.py", line 107, in copy_domain_data
    takeover.join_to_domain_and_copy_domain_data(ip, username, password, self.progress)
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 290, in join_to_domain_and_copy_domain_data
    takeover.rewrite_sambaSIDs_in_OpenLDAP()
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 1231, in rewrite_sambaSIDs_in_OpenLDAP
    userRenameHandler.rename_ucs_user(ucsldap_object_name, ad_object_name)
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 2231, in rename_ucs_user
    new_userdn = self.udm_rename_ucs_user(userdn, ad_object_name)
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 2209, in udm_rename_ucs_user
    user.modify()
  File "%PY2.7%/univention/admin/handlers/users/user.py", line 1532, in modify
    return super(object, self).modify(*args, **kwargs)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 794, in _modify
    self._ldap_pre_modify()
  File "%PY2.7%/univention/admin/handlers/users/user.py", line 1891, in _ldap_pre_modify
    raise univention.admin.uexceptions.uidAlreadyUsed(': %s' % username)
uidAlreadyUsed: : Gast
Comment 1 Stefan Gohmann univentionstaff 2019-01-03 07:22:53 CET
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
Comment 2 Florian Best univentionstaff 2019-03-20 09:02:01 CET
Version: 4.4-0 errata5 (Blumenthal)

Traceback(55199267c71f6b6a11d8c8ce70cf918e): 
Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/modules/adtakeover/__init__.py", line 61, in _background
    result = func(self, request)
  File "%PY2.7%/univention/management/console/modules/adtakeover/__init__.py", line 110, in copy_domain_data
    takeover.join_to_domain_and_copy_domain_data(ip, username, password, self.progress)
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 308, in join_to_domain_and_copy_domain_data
    takeover.rewrite_sambaSIDs_in_OpenLDAP()
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 1251, in rewrite_sambaSIDs_in_OpenLDAP
    userRenameHandler.rename_ucs_user(ucsldap_object_name, ad_object_name)
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 2271, in rename_ucs_user
    new_userdn = self.udm_rename_ucs_user(userdn, ad_object_name)
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 2249, in udm_rename_ucs_user
    user.modify()
  File "%PY2.7%/univention/admin/handlers/users/user.py", line 1674, in modify
    return super(object, self).modify(*args, **kwargs)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 632, in modify
    self._ldap_pre_ready()
  File "%PY2.7%/univention/admin/handlers/users/user.py", line 1892, in _ldap_pre_ready
    raise univention.admin.uexceptions.uidAlreadyUsed(self['username'])
uidAlreadyUsed: ***