diff options
Diffstat (limited to 'ipalib/rpc.py')
-rw-r--r-- | ipalib/rpc.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ipalib/rpc.py b/ipalib/rpc.py index a70b372bd..3d837b5f1 100644 --- a/ipalib/rpc.py +++ b/ipalib/rpc.py @@ -217,11 +217,10 @@ class xmlclient(Connectible): self.__errors = dict((e.errno, e) for e in public_errors) def create_connection(self, ccache=None): - return ServerProxy(self.env.xmlrpc_uri, - #transport=KerbTransport(), - allow_none=True, - encoding='UTF-8', - ) + kw = dict(allow_none=True, encoding='UTF-8') + if self.env.xmlrpc_uri.startswith('https://'): + kw['transport'] = KerbTransport() + return ServerProxy(self.env.xmlrpc_uri, **kw) def destroy_connection(self): pass @@ -241,6 +240,7 @@ class xmlclient(Connectible): raise ValueError( '%s.forward(): %r not in api.Command' % (self.name, name) ) + self.info('Forwarding %r to %r', name, self.env.xmlrpc_uri) command = getattr(self.conn, name) params = args + (kw,) try: |