From 5875df93333598d52c3aed43ffdbe91374cb2cb2 Mon Sep 17 00:00:00 2001 From: spathan Date: Fri, 31 Mar 2023 11:04:56 +0530 Subject: [PATCH] Allowing '\' with the escape sequence character in the Distinguished Name (DN) field. --- activedirectory/operations.py | 3 --- activedirectory/release_notes.md | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/activedirectory/operations.py b/activedirectory/operations.py index 478447b..0f6f9cf 100644 --- a/activedirectory/operations.py +++ b/activedirectory/operations.py @@ -257,7 +257,6 @@ def formatting_data(json_data): for each_dict in entries: attributes = each_dict['attributes'] - each_dict['dn'] = (each_dict['dn']).replace('\\', '') for key, val in attributes.items(): if key == 'userAccountControl': attributes[key] = get_user_account_control_detail(val) @@ -268,8 +267,6 @@ def formatting_data(json_data): attributes[key] = convert_ad_timestamp(val) if key in ip_details: attributes[key] = str(decimal_to_ip_address(int(val))) - if key in 'distinguishedName': - attributes[key] = val.replace('\\', '') if key == 'groupType': try: attributes[key] = list(GROUP_TYPE.keys())[list(GROUP_TYPE.values()).index(val)] diff --git a/activedirectory/release_notes.md b/activedirectory/release_notes.md index 0c43439..1e1b6af 100644 --- a/activedirectory/release_notes.md +++ b/activedirectory/release_notes.md @@ -1,3 +1,3 @@ #### What's Improved - Added new Action and playbook "Force Password Reset on Next Login" - +- Allowing '\\' with the escape sequence character in the Distinguished Name (DN) field. \ No newline at end of file