summaryrefslogtreecommitdiffstats
path: root/ipa-server/xmlrpc-server/ipaxmlrpc.py
diff options
context:
space:
mode:
authorrcritten@redhat.com <rcritten@redhat.com>2007-09-21 14:39:52 -0400
committerrcritten@redhat.com <rcritten@redhat.com>2007-09-21 14:39:52 -0400
commit2fec56d679ff686c4bb3d2fe37b8e0866ad765b4 (patch)
treee119c8274415ccb24a2d60bc14bdbab276786214 /ipa-server/xmlrpc-server/ipaxmlrpc.py
parent7b969737112c7a26711c3d4a9713ef1ca30f1be8 (diff)
downloadfreeipa-2fec56d679ff686c4bb3d2fe37b8e0866ad765b4.tar.gz
freeipa-2fec56d679ff686c4bb3d2fe37b8e0866ad765b4.tar.xz
freeipa-2fec56d679ff686c4bb3d2fe37b8e0866ad765b4.zip
Enable LDAP debugging using the mod_python Apache configuration directive
PythonOption IPADebug On/Off
Diffstat (limited to 'ipa-server/xmlrpc-server/ipaxmlrpc.py')
-rw-r--r--ipa-server/xmlrpc-server/ipaxmlrpc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-server/xmlrpc-server/ipaxmlrpc.py b/ipa-server/xmlrpc-server/ipaxmlrpc.py
index 861de8e5..09346a4c 100644
--- a/ipa-server/xmlrpc-server/ipaxmlrpc.py
+++ b/ipa-server/xmlrpc-server/ipaxmlrpc.py
@@ -130,6 +130,7 @@ class ModXMLRPCRequestHandler(object):
"""Dispatches an XML-RPC method from marshalled (XML) data."""
params, method = loads(data)
+ pythonopts = req.get_options()
# Populate the Apache environment variables
req.add_common_vars()
@@ -140,6 +141,9 @@ class ModXMLRPCRequestHandler(object):
if req.subprocess_env.get("KRB5CCNAME") is not None:
opts['krbccache'] = req.subprocess_env.get("KRB5CCNAME")
+ if pythonopts.get("IPADebug"):
+ opts['ipadebug'] = pythonopts.get("IPADebug")
+
# Tack onto the end of the passed-in arguments any options we also
# need
params = params + (opts,)