From 5e4a1629545a981c1183ec9d904f7072f6583284 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 7 Dec 2007 16:08:12 -0500 Subject: Fix delegation in the UI and add a missing aci that allows writes. Make ipa-deldelegation more user-friendly. --- ipa-admintools/ipa-deldelegation | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipa-admintools') diff --git a/ipa-admintools/ipa-deldelegation b/ipa-admintools/ipa-deldelegation index 7ad17c38b..030d462ff 100644 --- a/ipa-admintools/ipa-deldelegation +++ b/ipa-admintools/ipa-deldelegation @@ -65,6 +65,7 @@ def main(): if not(isinstance(aci_str_list,list) or isinstance(aci_str_list,tuple)): aci_str_list = [aci_str_list] + acistr = None for aci_str in aci_str_list: try: aci = ipa.aci.ACI(aci_str) @@ -76,7 +77,7 @@ def main(): pass if acistr is None: - print "No delegation %s found." % args[1] + print "No delegation '%s' found." % args[1] return 2 old_aci_index = aci_str_list.index(acistr) @@ -86,6 +87,7 @@ def main(): aci_entry.setValue('aci', new_aci_str_list) client.update_entry(aci_entry) + print "Delegation removed." except xmlrpclib.Fault, fault: if fault.faultCode == errno.ECONNREFUSED: print "The IPA XML-RPC service is not responding." -- cgit