summaryrefslogtreecommitdiffstats
path: root/ipa-server/xmlrpc-server
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2007-12-21 12:31:31 -0500
committerSimo Sorce <ssorce@redhat.com>2007-12-21 12:31:31 -0500
commita9e4e5a1e2da6725521878428452c86b7140e815 (patch)
tree09e7c4fc7a8a1a1ecf9b5fb14929163289434683 /ipa-server/xmlrpc-server
parent84c758153f888faaf6652a35ab7edcc22cce860a (diff)
downloadfreeipa-a9e4e5a1e2da6725521878428452c86b7140e815.tar.gz
freeipa-a9e4e5a1e2da6725521878428452c86b7140e815.tar.xz
freeipa-a9e4e5a1e2da6725521878428452c86b7140e815.zip
Finishe removing previous code to fetch keytabs
Diffstat (limited to 'ipa-server/xmlrpc-server')
-rw-r--r--ipa-server/xmlrpc-server/funcs.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/ipa-server/xmlrpc-server/funcs.py b/ipa-server/xmlrpc-server/funcs.py
index 2d2bddbb4..2057aa7d0 100644
--- a/ipa-server/xmlrpc-server/funcs.py
+++ b/ipa-server/xmlrpc-server/funcs.py
@@ -1785,39 +1785,6 @@ class IPAServer:
return entries
- def get_keytab(self, name, opts=None):
- """Return a keytab for an existing service principal. Note that
- this increments the secret thus invalidating any older keys."""
- if not name:
- raise ipaerror.gen_exception(ipaerror.INPUT_INVALID_PARAMETER)
-
- princ_name = name + "@" + self.realm
-
- conn = self.getConnection(opts)
-
- if conn.principal != "admin@" + self.realm:
- raise ipaerror.gen_exception(ipaerror.CONNECTION_GSSAPI_CREDENTIALS)
-
- try:
- try:
- princs = conn.getList(self.basedn, self.scope, "krbprincipalname=" + princ_name, None)
- except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND):
- return None
- finally:
- self.releaseConnection(conn)
-
-
- # This is ugly - call out to a C wrapper around kadmin.local
- p = subprocess.Popen(["/usr/sbin/ipa-keytab-util", princ_name, self.realm],
- stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- stdout,stderr = p.communicate()
-
- if p.returncode != 0:
- return None
-
- return stdout
-
-
# Configuration support
def get_ipa_config(self, opts=None):