We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8293d1 commit fff8d09Copy full SHA for fff8d09
nxc/parsers/ldap_results.py
@@ -18,6 +18,9 @@ def parse_result_attributes(ldap_response):
18
# If we can't decode the value, we'll just return the bytes
19
val_decoded = val.__bytes__()
20
val_list.append(val_decoded)
21
- attribute_map[str(attribute["type"])] = val_list if len(val_list) > 1 else val_list[0]
+ if len(val_list) == 1:
22
+ attribute_map[str(attribute["type"])] = val_list[0]
23
+ else:
24
+ attribute_map[str(attribute["type"])] = val_list
25
parsed_response.append(attribute_map)
26
return parsed_response
0 commit comments