From 2fec56d679ff686c4bb3d2fe37b8e0866ad765b4 Mon Sep 17 00:00:00 2001 From: "rcritten@redhat.com" Date: Fri, 21 Sep 2007 14:39:52 -0400 Subject: Enable LDAP debugging using the mod_python Apache configuration directive PythonOption IPADebug On/Off --- ipa-server/xmlrpc-server/ipaxmlrpc.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ipa-server/xmlrpc-server/ipaxmlrpc.py') 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,) -- cgit