View | Details | Raw Unified | Return to bug 42457
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +6 lines)
Line     Link Here 
0
-- a/ucs-school-4.1r2/ucs-school-netlogon-user-logonscripts/ucs-school-user-logonscript.py
0
++ b/ucs-school-4.1r2/ucs-school-netlogon-user-logonscripts/ucs-school-user-logonscript.py
 Lines 462-468   def gidShares(gid): Link Here 
462
462
463
463
464
def userchange(dn, new, old):
464
def userchange(dn, new, old):
465
	univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'ucsschool-user-logonscripts: sync by user')
465
	univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'ucsschool-user-logonscripts: sync by user (dn=%r, new=%r)' % (dn, new))
466
466
467
	global scriptpath
467
	global scriptpath
468
468
 Lines 486-493   def userchange(dn, new, old): Link Here 
486
						new = res[0][1]
486
						new = res[0][1]
487
						# get groups we are member of:
487
						# get groups we are member of:
488
						membershipIDs.add(new['gidNumber'][0])
488
						membershipIDs.add(new['gidNumber'][0])
489
				except ldap.NO_SUCH_OBJECT, ex:
490
					univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'ucsschool-user-logonscripts: userchange(): user %r not found' % (dn,))
491
					return
489
				except:
492
				except:
490
					univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'ucsschool-user-logonscripts: LDAP-search failed for user %s in userchange()' % (dn))
493
					univention.debug.debug(univention.debug.LISTENER, univention.debug.ERROR, 'ucsschool-user-logonscripts: LDAP-search failed for user %s in userchange()' % (dn))
491
					raise
494
					raise
492
			else:
495
			else:
493
				membershipIDs.add(new['gidNumber'][0])
496
				membershipIDs.add(new['gidNumber'][0])

Return to bug 42457