|
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() |
|
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: |
|
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' |