Skip to content

Commit

Permalink
Allowing '\' with the escape sequence character in the Distinguished …
Browse files Browse the repository at this point in the history
…Name (DN) field.
  • Loading branch information
cs-sameer-pathan committed Mar 31, 2023
1 parent db6aad1 commit 5875df9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions activedirectory/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion activedirectory/release_notes.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 5875df9

Please sign in to comment.