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

Fix FilterExtensibleMatch string encoding

parent 48d92133
Branches
Tags v0.0.1.dev5
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.
Please register or to comment