summaryrefslogtreecommitdiffstats
path: root/ipa-python/ipaclient.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2007-12-05 15:17:11 -0500
committerRob Crittenden <rcritten@redhat.com>2007-12-05 15:17:11 -0500
commit15b7dc6ff9c202dee00f1403139c206b5969c0f3 (patch)
treeedcf5a1f50c8b0508674a1c255285c80e2f495a5 /ipa-python/ipaclient.py
parentc397041bfa66b3d44d65af27eabc289c70423f21 (diff)
downloadfreeipa-15b7dc6ff9c202dee00f1403139c206b5969c0f3.tar.gz
freeipa-15b7dc6ff9c202dee00f1403139c206b5969c0f3.tar.xz
freeipa-15b7dc6ff9c202dee00f1403139c206b5969c0f3.zip
Add UI for service principal creation and keytab retrieval
Diffstat (limited to 'ipa-python/ipaclient.py')
-rw-r--r--ipa-python/ipaclient.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/ipa-python/ipaclient.py b/ipa-python/ipaclient.py
index c551f0435..0a4d64f11 100644
--- a/ipa-python/ipaclient.py
+++ b/ipa-python/ipaclient.py
@@ -385,6 +385,20 @@ class IPAClient:
def add_service_principal(self, princ_name):
return self.transport.add_service_principal(princ_name)
+ 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
+ be set to -1"""
+ result = self.transport.find_service_principal(criteria, sattrs, searchlimit, timelimit)
+ counter = result[0]
+
+ hosts = [counter]
+ for attrs in result[1:]:
+ if attrs is not None:
+ hosts.append(entity.Entity(attrs))
+
+ return hosts
+
def get_keytab(self, princ_name):
return self.transport.get_keytab(princ_name)