summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-12-11 10:30:43 -0500
committerRob Crittenden <rcritten@redhat.com>2008-12-11 10:30:43 -0500
commitcfdd272166a2689b2f50e5df65e1304a2040633d (patch)
treeacbec16ba6b556ef8638e5bedda1afa5189f712d
parent46bd3974af5ce312cb1dd3ca12e6184d78dc470e (diff)
downloadfreeipa-cfdd272166a2689b2f50e5df65e1304a2040633d.tar.gz
freeipa-cfdd272166a2689b2f50e5df65e1304a2040633d.tar.xz
freeipa-cfdd272166a2689b2f50e5df65e1304a2040633d.zip
Actually replace trailing ) characters with ''
-rw-r--r--ipa_server/ipaldap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa_server/ipaldap.py b/ipa_server/ipaldap.py
index e7c56e5d6..f520475e5 100644
--- a/ipa_server/ipaldap.py
+++ b/ipa_server/ipaldap.py
@@ -538,7 +538,7 @@ def notfound(args):
# 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(")","")
+ target = target.replace(")","")
except:
target = searchfilter
return "%s not found" % str(target)