summaryrefslogtreecommitdiffstats
path: root/ipa-python/rpcclient.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-01-11 11:44:23 -0500
committerRob Crittenden <rcritten@redhat.com>2008-01-11 11:44:23 -0500
commit42d5ddc559bf22792b170bdacaf19996350783e1 (patch)
tree3f220cc4609cf394c4de994b92fc1ec318c6d758 /ipa-python/rpcclient.py
parent58071a759a22f5029916c170bff33f345a41e5ce (diff)
downloadfreeipa-42d5ddc559bf22792b170bdacaf19996350783e1.tar.gz
freeipa-42d5ddc559bf22792b170bdacaf19996350783e1.tar.xz
freeipa-42d5ddc559bf22792b170bdacaf19996350783e1.zip
Service principal deletion
Diffstat (limited to 'ipa-python/rpcclient.py')
-rw-r--r--ipa-python/rpcclient.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/ipa-python/rpcclient.py b/ipa-python/rpcclient.py
index 32249fd3c..4d6b3a701 100644
--- a/ipa-python/rpcclient.py
+++ b/ipa-python/rpcclient.py
@@ -699,6 +699,18 @@ class RPCClient:
return ipautil.unwrap_binary_data(result)
+ def delete_service_principal(self, principal_dn):
+ server = self.setup_server()
+
+ try:
+ result = server.delete_service_principal(principal_dn)
+ except xmlrpclib.Fault, fault:
+ raise ipaerror.gen_exception(fault.faultCode, fault.faultString)
+ except socket.error, (value, msg):
+ raise xmlrpclib.Fault(value, msg)
+
+ return ipautil.unwrap_binary_data(result)
+
def find_service_principal (self, criteria, sattrs=None, searchlimit=0, timelimit=-1):
"""Return a list: counter followed by a Entity object for each host that
matches the criteria. If the results are truncated, counter will