|
Lines 2086-2092
Link Here
|
| 2086 |
else: |
2086 |
else: |
| 2087 |
modlist.append((ldap.MOD_DELETE, attr, None)) |
2087 |
modlist.append((ldap.MOD_DELETE, attr, None)) |
| 2088 |
|
2088 |
|
| 2089 |
self.lo_ad.lo.add_s(compatible_modstring(object['dn']), compatible_addlist(addlist)) #FIXME encoding |
2089 |
try: |
|
|
2090 |
self.lo_ad.lo.add_s(compatible_modstring(object['dn']), compatible_addlist(addlist)) #FIXME encoding |
| 2091 |
except: |
| 2092 |
ud.debug(ud.LDAP, ud.ERROR, "sync_from_ucs: traceback during add object: %s"%object['dn']) |
| 2093 |
ud.debug(ud.LDAP, ud.ERROR, "sync_from_ucs: traceback due to addlist: %s"%addlist) |
| 2094 |
raise |
| 2090 |
|
2095 |
|
| 2091 |
if property_type == 'group': |
2096 |
if property_type == 'group': |
| 2092 |
self.group_members_cache_con[object['dn'].lower()] = [] |
2097 |
self.group_members_cache_con[object['dn'].lower()] = [] |
|
Lines 2176-2182
Link Here
|
| 2176 |
modlist.append((ldap.MOD_DELETE, yank_empty_attr, None)) |
2181 |
modlist.append((ldap.MOD_DELETE, yank_empty_attr, None)) |
| 2177 |
|
2182 |
|
| 2178 |
if modlist: |
2183 |
if modlist: |
| 2179 |
self.lo_ad.lo.modify_s(compatible_modstring(object['dn']), compatible_modlist(modlist)) |
2184 |
try: |
|
|
2185 |
self.lo_ad.lo.modify_s(compatible_modstring(object['dn']), compatible_modlist(modlist)) |
| 2186 |
except: |
| 2187 |
ud.debug(ud.LDAP, ud.ERROR, "sync_from_ucs: traceback during modify object: %s"%object['dn']) |
| 2188 |
ud.debug(ud.LDAP, ud.ERROR, "sync_from_ucs: traceback due to modlist: %s"%modlist) |
| 2189 |
raise |
| 2180 |
|
2190 |
|
| 2181 |
|
2191 |
|
| 2182 |
if hasattr(self.property[property_type],"post_con_modify_functions"): |
2192 |
if hasattr(self.property[property_type],"post_con_modify_functions"): |