diff options
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/__init__.py | 1 | ||||
-rw-r--r-- | ipaserver/rpcserver.py | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ipaserver/__init__.py b/ipaserver/__init__.py index ec2a53649..7fdba6246 100644 --- a/ipaserver/__init__.py +++ b/ipaserver/__init__.py @@ -54,6 +54,7 @@ def xmlrpc(req): response = api.Backend.xmlserver.marshaled_dispatch( req.read(), req.subprocess_env.get('KRB5CCNAME'), + req.connection.remote_ip ) req.content_type = 'text/xml' diff --git a/ipaserver/rpcserver.py b/ipaserver/rpcserver.py index c98ca7ab7..ab8b41720 100644 --- a/ipaserver/rpcserver.py +++ b/ipaserver/rpcserver.py @@ -181,12 +181,12 @@ class xmlserver(WSGIExecutioner): def methodHelp(self, *params): return u'methodHelp not implemented' - def marshaled_dispatch(self, data, ccache): + def marshaled_dispatch(self, data, ccache, client_ip): """ Execute the XML-RPC request contained in ``data``. """ try: - self.create_context(ccache=ccache) + self.create_context(ccache=ccache, client_ip=client_ip) (params, name) = xml_loads(data) if name in self.__system: response = (self.__system[name](*params),) |