Skip to content

Commit

Permalink
Merge pull request #813 from mprahl/guid-backslash-error
Browse files Browse the repository at this point in the history
Fix searching by objectGUID in hex format
  • Loading branch information
cannatag committed Jun 1, 2020
2 parents 185e161 + 6fc1917 commit 6c342eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ldap3/protocol/formatters/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,7 @@ def validate_uuid_le(input_value):
error = True
elif '\\' in element:
try:
uuid = UUID(bytes_le=ldap_escape_to_bytes(element)).bytes_le
uuid = escape_bytes(uuid)
valid_values.append(uuid) # byte representation, value in little endian
valid_values.append(UUID(bytes_le=ldap_escape_to_bytes(element)).bytes_le) # byte representation, value in little endian
changed = True
except ValueError:
error = True
Expand Down

0 comments on commit 6c342eb

Please sign in to comment.