Bug 32339 - Incomplete / corrupted user netlogon scripts
Summary: Incomplete / corrupted user netlogon scripts
Status: CLOSED FIXED
Alias: None
Product: UCS@school
Classification: Unclassified
Component: Import scripts
Version: UCS@school 3.1 R2
Hardware: Other Linux
: P1 normal
Target Milestone: UCS@school 3.1 R2 Errata
Assignee: Felix Botner
QA Contact: Sönke Schwardt-Krummrich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-26 10:37 CEST by Sönke Schwardt-Krummrich
Modified: 2013-10-07 20:17 CEST (History)
1 user (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):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2013-08-26 10:37:03 CEST
Module: ucs-school-webproxy
Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/ucs-school-user-logonscript.py", line 484, in handler
    userchange(dn, new, old)
  File "/usr/lib/univention-directory-listener/system/ucs-school-user-logonscript.py", line 424, in userchange
    membershipIDs.update(userGids(dn))
  File "/usr/lib/univention-directory-listener/system/ucs-school-user-logonscript.py", line 373, in userGids
    univention.debug.debug(univention.debug.LISTENER, univention.debug.ERROR, 'ucsschool-user-logonscripts: LDAP-search failed memberships of %s' % (dn))
UnboundLocalError: local variable 'dn' referenced before assignment
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2013-08-26 11:22:13 CEST
The term "(dn)" should be replaced by "(userdn)" to fix the traceback.
Despite that, the generic "except" should be replaced by a more specific one to distinguish between "object not found" and real ldap errors.
Comment 2 Felix Botner univentionstaff 2013-09-27 14:57:01 CEST
ucs-school-netlogon-user-logonscripts
ucsschool-3.1-R2 (3.1): 9.0.2-1.39.201309271243
ucs-school-3.2 (3.2): 10.0.0-1.40.201309271301

changelog
changelog-ucsschool-3.1R2-2.tex
changelog-ucsschool-3.2.xml (converted tex file to xml)
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2013-10-02 16:09:01 CEST
Traceback could not be reproduced.

OK: 3.1 code diff
OK: 3.1 changelog
OK: 3.1 package version
OK: 3.1 test
OK: 3.1 package in repo

OK: 3.2 code diff
OK: 3.2 changelog
OK: 3.2 package version
OK: 3.2 test

→ VERIFIED
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2013-10-07 20:17:59 CEST
UCS@school 3.1 R2-2 has been released:
http://download.univention.de/doc/release-notes-ucsschool-3.1-rev2-2.pdf

If this error occurs again, please use "Clone This Bug".