mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 18:54:29 +01:00
switch to explicit bytearray for checking missing params
This commit is contained in:
parent
d25ceef2d3
commit
12c511b537
@ -144,10 +144,10 @@ class Backend(ldapcherry.backend.backendLdap.Backend):
|
|||||||
for a in attrslist:
|
for a in attrslist:
|
||||||
self.attrlist.append(self._str(a))
|
self.attrlist.append(self._str(a))
|
||||||
|
|
||||||
if 'cn' not in self.attrlist:
|
if b'cn' not in self.attrlist:
|
||||||
raise MissingAttr()
|
raise MissingAttr()
|
||||||
|
|
||||||
if 'unicodePwd' not in self.attrlist:
|
if b'unicodePwd' not in self.attrlist:
|
||||||
raise MissingAttr()
|
raise MissingAttr()
|
||||||
|
|
||||||
def _search_group(self, searchfilter, groupdn):
|
def _search_group(self, searchfilter, groupdn):
|
||||||
|
Loading…
Reference in New Issue
Block a user