Skip to content

Commit 39fcfe1

Browse files
committed
fix wrong enumerateusers query
1 parent e0667ef commit 39fcfe1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/redturtle/pasldap/resilient.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ def _wrapper(
4747
exact_match = True
4848
kw["id"] = kw["id"].strip("*")
4949

50+
# kwargs={'id': 'xxx', 'login': None, 'exact_match': False, 'sort_by': None, 'max_results': None}
51+
if kw.get("id") and "*" not in kw["id"] and not exact_match:
52+
logger.debug("convert wrong query kw:%s exact_match:%s", kw, exact_match)
53+
exact_match = True
54+
5055
cache_key = None
5156
if login is not None and exact_match:
5257
cache_key = "login:%s" % login

0 commit comments

Comments
 (0)