|
Lines 264-270
def new_or_reactivate_user(ol, dn, new, old):
Link Here
|
| 264 |
'userPrincipalName': new_user['userPrincipalName'], |
264 |
'userPrincipalName': new_user['userPrincipalName'], |
| 265 |
} |
265 |
} |
| 266 |
} |
266 |
} |
| 267 |
old_azure_data_encoded = old.get('univentionOffice365Data', [''])[0] |
267 |
old_azure_data_encoded = udm_user["UniventionOffice365Data"] |
| 268 |
if old_azure_data_encoded: |
268 |
if old_azure_data_encoded: |
| 269 |
# The account already has an Azure AD connection |
269 |
# The account already has an Azure AD connection |
| 270 |
old_azure_data = Office365Listener.decode_o365data(old_azure_data_encoded) |
270 |
old_azure_data = Office365Listener.decode_o365data(old_azure_data_encoded) |
|
Lines 294-300
def delete_user(ol, dn, new, old):
Link Here
|
| 294 |
udm_user["UniventionOffice365Data"] = Office365Listener.encode_o365data(None) |
294 |
udm_user["UniventionOffice365Data"] = Office365Listener.encode_o365data(None) |
| 295 |
udm_user.modify() |
295 |
udm_user.modify() |
| 296 |
else: |
296 |
else: |
| 297 |
old_azure_data_encoded = old.get('univentionOffice365Data', [''])[0] |
297 |
old_azure_data_encoded = udm_user["UniventionOffice365Data"] |
| 298 |
if old_azure_data_encoded: |
298 |
if old_azure_data_encoded: |
| 299 |
old_azure_data = Office365Listener.decode_o365data(old_azure_data_encoded) |
299 |
old_azure_data = Office365Listener.decode_o365data(old_azure_data_encoded) |
| 300 |
try: |
300 |
try: |
|
Lines 317-323
def deactivate_user(ol, dn, new, old):
Link Here
|
| 317 |
udm_user["UniventionOffice365Data"] = Office365Listener.encode_o365data(None) |
317 |
udm_user["UniventionOffice365Data"] = Office365Listener.encode_o365data(None) |
| 318 |
udm_user.modify() |
318 |
udm_user.modify() |
| 319 |
else: |
319 |
else: |
| 320 |
old_azure_data_encoded = old.get('univentionOffice365Data', [''])[0] |
320 |
old_azure_data_encoded = udm_user["UniventionOffice365Data"] |
| 321 |
if old_azure_data_encoded: |
321 |
if old_azure_data_encoded: |
| 322 |
# The account already has an Azure AD connection |
322 |
# The account already has an Azure AD connection |
| 323 |
old_azure_data = Office365Listener.decode_o365data(old_azure_data_encoded) |
323 |
old_azure_data = Office365Listener.decode_o365data(old_azure_data_encoded) |
|
Lines 344-350
def modify_user(ol, dn, new, old):
Link Here
|
| 344 |
'userPrincipalName': azure_user['userPrincipalName'], |
344 |
'userPrincipalName': azure_user['userPrincipalName'], |
| 345 |
} |
345 |
} |
| 346 |
} |
346 |
} |
| 347 |
old_azure_data_encoded = old.get('univentionOffice365Data', [''])[0] |
347 |
old_azure_data_encoded = udm_user["UniventionOffice365Data"] |
| 348 |
if old_azure_data_encoded: |
348 |
if old_azure_data_encoded: |
| 349 |
# The account already has an Azure AD connection |
349 |
# The account already has an Azure AD connection |
| 350 |
old_azure_data = Office365Listener.decode_o365data(old_azure_data_encoded) |
350 |
old_azure_data = Office365Listener.decode_o365data(old_azure_data_encoded) |