summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipa_server/ipaldap.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipa_server/ipaldap.py b/ipa_server/ipaldap.py
index 215ef683..e7c56e5d 100644
--- a/ipa_server/ipaldap.py
+++ b/ipa_server/ipaldap.py
@@ -535,7 +535,10 @@ def notfound(args):
if len(args) > 2:
searchfilter = args[2]
try:
+ # Python re doesn't do paren counting so the string could
+ # have a trailing paren "foo)"
target = re.match(r'\(.*=(.*)\)', searchfilter).group(1)
+ target.replace(")","")
except:
target = searchfilter
return "%s not found" % str(target)