diff options
author | rcritten@redhat.com <rcritten@redhat.com> | 2007-09-21 14:39:52 -0400 |
---|---|---|
committer | rcritten@redhat.com <rcritten@redhat.com> | 2007-09-21 14:39:52 -0400 |
commit | 2fec56d679ff686c4bb3d2fe37b8e0866ad765b4 (patch) | |
tree | e119c8274415ccb24a2d60bc14bdbab276786214 /ipa-server/xmlrpc-server/ipaxmlrpc.py | |
parent | 7b969737112c7a26711c3d4a9713ef1ca30f1be8 (diff) | |
download | freeipa-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.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-server/xmlrpc-server/ipaxmlrpc.py b/ipa-server/xmlrpc-server/ipaxmlrpc.py index 861de8e5c..09346a4ca 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,) |