summaryrefslogtreecommitdiffstats
path: root/ipa-admintools
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2007-12-07 16:08:12 -0500
committerRob Crittenden <rcritten@redhat.com>2007-12-07 16:08:12 -0500
commit5e4a1629545a981c1183ec9d904f7072f6583284 (patch)
treed6de08eec6a7c811520542e53e3afaf6e50c6544 /ipa-admintools
parent0c0cc370cf43df640c22a26d31cd2df2404184b4 (diff)
downloadfreeipa-5e4a1629545a981c1183ec9d904f7072f6583284.tar.gz
freeipa-5e4a1629545a981c1183ec9d904f7072f6583284.tar.xz
freeipa-5e4a1629545a981c1183ec9d904f7072f6583284.zip
Fix delegation in the UI and add a missing aci that allows writes.
Make ipa-deldelegation more user-friendly.
Diffstat (limited to 'ipa-admintools')
-rw-r--r--ipa-admintools/ipa-deldelegation4
1 files changed, 3 insertions, 1 deletions
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."