Skip to content
Snippets Groups Projects
Commit 83d9dc85 authored by Julian Rother's avatar Julian Rother
Browse files

Fix FilterExtensibleMatch string encoding

parent 48d92133
No related branches found
No related tags found
No related merge requests found
Pipeline #8364 passed
......@@ -287,14 +287,14 @@ class FilterExtensibleMatch(asn1.Sequence, Filter):
dnAttributes: bool
def __str__(self):
parts = []
key = ''
if self.type is not None:
parts.append(self.type)
key += self.type
if self.dnAttributes:
parts.append('dn')
key += ':dn'
if self.matchingRule is not None:
parts.append(self.matchingRule)
return '(%s:=%s)'%(':'.join(parts), escape_filter_assertionvalue(self.matchValue))
key += ':' + self.matchingRule
return '(%s:=%s)'%(key, escape_filter_assertionvalue(self.matchValue))
class SearchScope(enum.Enum):
''':any:`enum.Enum` of `scope` values in SEARCH operations'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment