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

(-)univention-samba4/samba4-idmap.py (-1 / +5 lines)
 Lines 47-52    Link Here 
47
description='Update local IDmap entries'
47
description='Update local IDmap entries'
48
filter='(&(|(objectClass=sambaSamAccount)(objectClass=sambaGroupMapping))(sambaSID=*))'
48
filter='(&(|(objectClass=sambaSamAccount)(objectClass=sambaGroupMapping))(sambaSID=*))'
49
attributes=['sambaSID', 'univentionSamba4SID', 'uidNumber', 'gidNumber']
49
attributes=['sambaSID', 'univentionSamba4SID', 'uidNumber', 'gidNumber']
50
modrdn='1'
50
51
51
### Globals
52
### Globals
52
lp = LoadParm()
53
lp = LoadParm()
 Lines 190-196    Link Here 
190
		univention.debug.debug(univention.debug.LISTENER, univention.debug.ERROR, estr)
191
		univention.debug.debug(univention.debug.LISTENER, univention.debug.ERROR, estr)
191
192
192
193
193
def handler(dn, new, old):
194
def handler(dn, new, old, operation):
194
195
195
	if new:
196
	if new:
196
		try:
197
		try:
 Lines 217-222    Link Here 
217
			univention.debug.debug(univention.debug.LISTENER, univention.debug.ERROR,
218
			univention.debug.debug(univention.debug.LISTENER, univention.debug.ERROR,
218
				"%s: entry for %s could not be updated" % (name, new['sambaSID'][0]) )
219
				"%s: entry for %s could not be updated" % (name, new['sambaSID'][0]) )
219
	elif old:
220
	elif old:
221
		if operation == 'r':	## modrdn
222
			return
223
220
		try:
224
		try:
221
			if 'sambaSamAccount' in old['objectClass']:
225
			if 'sambaSamAccount' in old['objectClass']:
222
				xid_attr = 'uidNumber'
226
				xid_attr = 'uidNumber'

Return to bug 28643