Univention Bugzilla – Attachment 8024 Details for
Bug 42457
Outdated netlogon scripts due to traceback
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for ucs-school-user-logonscript.py
bug42457.patch (text/plain), 1.29 KB, created by
Sönke Schwardt-Krummrich
on 2016-09-21 10:53:56 CEST
(
hide
)
Description:
Patch for ucs-school-user-logonscript.py
Filename:
MIME Type:
Creator:
Sönke Schwardt-Krummrich
Created:
2016-09-21 10:53:56 CEST
Size:
1.29 KB
patch
obsolete
>--- a/ucs-school-4.1r2/ucs-school-netlogon-user-logonscripts/ucs-school-user-logonscript.py >+++ b/ucs-school-4.1r2/ucs-school-netlogon-user-logonscripts/ucs-school-user-logonscript.py >@@ -462,7 +462,7 @@ def gidShares(gid): > > > def userchange(dn, new, old): >- univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'ucsschool-user-logonscripts: sync by user') >+ univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'ucsschool-user-logonscripts: sync by user (dn=%r, new=%r)' % (dn, new)) > > global scriptpath > >@@ -486,8 +486,11 @@ def userchange(dn, new, old): > new = res[0][1] > # get groups we are member of: > membershipIDs.add(new['gidNumber'][0]) >+ except ldap.NO_SUCH_OBJECT, ex: >+ univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'ucsschool-user-logonscripts: userchange(): user %r not found' % (dn,)) >+ return > except: >- univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'ucsschool-user-logonscripts: LDAP-search failed for user %s in userchange()' % (dn)) >+ univention.debug.debug(univention.debug.LISTENER, univention.debug.ERROR, 'ucsschool-user-logonscripts: LDAP-search failed for user %s in userchange()' % (dn)) > raise > else: > membershipIDs.add(new['gidNumber'][0])
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42457
: 8024