mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Require SSL for the XML-RPC interface
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user