Require SSL for the XML-RPC interface

This commit is contained in:
Rob Crittenden
2007-10-19 10:14:30 -04:00
parent 086193af0a
commit ba0adcffb1
4 changed files with 53 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ import xmlrpclib
import kerberos
from kerberos import GSSError
class KerbTransport(xmlrpclib.Transport):
class KerbTransport(xmlrpclib.SafeTransport):
"""Handles Kerberos Negotiation authentication to an XML-RPC server."""
def get_host_info(self, host):

View File

@@ -40,7 +40,7 @@ class RPCClient:
def server_url(self):
"""Build the XML-RPC server URL from our configuration"""
return "http://" + config.config.get_server() + "/ipa"
return "https://" + config.config.get_server() + "/ipa"
def setup_server(self):
"""Create our XML-RPC server connection using kerberos