Bug 35759

Summary: adding user fails with KeyError 'sambaSID'
Product: UCS@school Reporter: Florian Best <best>
Component: UMC - WizardsAssignee: Bugzilla Mailingliste <bugzilla>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P5 CC: schwardt
Version: UCS@school 3.2 R2   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=34473
https://forge.univention.org/bugzilla/show_bug.cgi?id=25460
https://forge.univention.org/bugzilla/show_bug.cgi?id=20044
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): Error handling, External feedback
Max CVSS v3 score:

Description Florian Best univentionstaff 2014-09-01 10:50:26 CEST
Traceback:
Die Ausführung des Kommandos schoolwizards/users/add ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py",
line 218, in execute
    func( request )
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/schoolldap.py", line 204, in
wrapper_func
    return func( *args, **kwargs )
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolwizards/__init__.py",
line 118, in _decorated
    ret = func(self, request, *a, **kw)
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/schoolwizards/__init__.py",
line 196, in _create_obj
    if obj.create(ldap_user_write, validate=False):
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/base.py", line 365, in create
    success = self.create_without_hooks(lo, validate)
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/base.py", line 393, in
create_without_hooks
    self.do_create(udm_obj, lo)
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/user.py", line 181, in do_create
    success = super(User, self).do_create(udm_obj, lo)
  File "/usr/lib/pymodules/python2.6/ucsschool/lib/models/base.py", line 410, in do_create
    udm_obj.create()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 352, in
create
    return self._create()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 787, in
_create
    self.remove()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 528, in
remove
    return self._remove(remove_childs)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 1000, in
_remove
    self._ldap_pre_remove()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/users/user.py", line 2441,
in _ldap_pre_remove
    self.sid=self.oldattr['sambaSID'][0]
KeyError: 'sambaSID'


Remark:
Auswirkung: der Benutzer wird nicht der Gruppe "mitarbeiter-<ou>" hinzugefügt
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2014-09-05 10:07:55 CEST
The original problem/traceback is hidden due to bug 20044. Without futher information, this bug is not fixable. The traceback shown is no real problem of UCS@school. Something failed during creating the user and then the cleanup within the exception handler raised a new exception.
→ please reopen this bug if further information are available