summaryrefslogtreecommitdiffstats
path: root/ipa-python
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2007-10-19 10:14:30 -0400
committerRob Crittenden <rcritten@redhat.com>2007-10-19 10:14:30 -0400
commitba0adcffb1a12b1aedc982c801268f5d9556c835 (patch)
tree39483d503eab5d3d43affcba206db84e3d1b1f06 /ipa-python
parent086193af0a375908b619116ca80de6dc4410d1a2 (diff)
downloadfreeipa-ba0adcffb1a12b1aedc982c801268f5d9556c835.tar.gz
freeipa-ba0adcffb1a12b1aedc982c801268f5d9556c835.tar.xz
freeipa-ba0adcffb1a12b1aedc982c801268f5d9556c835.zip
Require SSL for the XML-RPC interface
Diffstat (limited to 'ipa-python')
-rw-r--r--ipa-python/krbtransport.py2
-rw-r--r--ipa-python/rpcclient.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/ipa-python/krbtransport.py b/ipa-python/krbtransport.py
index ff2671d0e..95d3bc64f 100644
--- a/ipa-python/krbtransport.py
+++ b/ipa-python/krbtransport.py
@@ -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):
diff --git a/ipa-python/rpcclient.py b/ipa-python/rpcclient.py
index c18405ad3..df3d01386 100644
--- a/ipa-python/rpcclient.py
+++ b/ipa-python/rpcclient.py
@@ -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