From ac0fb8ea524dcc86f358f405ba233c8dcbef71ed Mon Sep 17 00:00:00 2001 From: Karl MacMillan Date: Thu, 20 Dec 2007 17:05:16 -0500 Subject: Convert replication to use the new cert infrastructure and correctly issue certs from the same authority. Also remove support for read-only replicas since that work will not be finished and tested for 1.0. --- ipa-server/ipaserver/ipaldap.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'ipa-server/ipaserver/ipaldap.py') diff --git a/ipa-server/ipaserver/ipaldap.py b/ipa-server/ipaserver/ipaldap.py index b1a9ea56..7bb9719e 100644 --- a/ipa-server/ipaserver/ipaldap.py +++ b/ipa-server/ipaserver/ipaldap.py @@ -724,9 +724,12 @@ def notfound(args): search returns no results. This just returns whatever is after the equals sign""" - filter = args[2] - try: - target = re.match(r'\(.*=(.*)\)', filter).group(1) - except: - target = filter - return "%s not found" % str(target) + if len(args) > 2: + filter = args[2] + try: + target = re.match(r'\(.*=(.*)\)', filter).group(1) + except: + target = filter + return "%s not found" % str(target) + else: + return args[0] -- cgit