summaryrefslogtreecommitdiffstats
path: root/ipalib/backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/backend.py')
-rw-r--r--ipalib/backend.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/backend.py b/ipalib/backend.py
index b123ed140..7c964b799 100644
--- a/ipalib/backend.py
+++ b/ipalib/backend.py
@@ -97,10 +97,15 @@ class Executioner(Backend):
def create_context(self, ccache=None, client_ip=None):
+ """
+ client_ip: The IP address of the remote client.
+ """
if self.env.in_server:
self.Backend.ldap2.connect(ccache=ccache)
else:
self.Backend.xmlclient.connect()
+ if client_ip is not None:
+ setattr(context, "client_ip", client_ip)
def destroy_context(self):
destroy_context()