Service principal deletion

This commit is contained in:
Rob Crittenden committed 2008-01-11 11:44:23 -05:00
1 parent 58071a759a
commit 42d5ddc559
7 files changed
+138 -2

No files matched your search

+3
View File
@@ -386,6 +386,9 @@ class IPAClient:
def add_service_principal(self, princ_name):
return self.transport.add_service_principal(princ_name)
def delete_service_principal(self, principal_dn):
return self.transport.delete_service_principal(principal_dn)
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
+12
View File
@@ -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