[Freeipa-devel] [PATCH] 0336 rpcserver: Consolidate __call__ in xmlclient and jsonclient_kerb
Petr Viktorin
pviktori at redhat.com
Tue Jan 14 13:39:19 UTC 2014
On 01/13/2014 05:11 PM, Rob Crittenden wrote:
> Petr Viktorin wrote:
>> See commit message & ticket.
>>
>> https://fedorahosted.org/freeipa/ticket/4069
>
> Our handling of XML-RPC introspection is iffy as it is and this would
> remove those methods completely. Can you add them back into the
> xmlserver class?
Not just iffy, it's non-existent. See
https://fedorahosted.org/freeipa/ticket/2937.
The patch removes the __system dict which has been unused since at least
Jason's web UI work in 2009, Git tells me. The patch did leave the
actual methods.
Well, actually it's not that hard to get these working again; see
attached patch (which can be reviewed separately).
--
Petr³
P.S. to test raw XML, you can use:
curl -v \
-H "referer:https://`hostname`/ipa" \
-H "Content-Type:text/xml" \
-H "Accept:applicaton/xml" \
--negotiate -u : \
--delegation always \
--cacert /etc/ipa/ca.crt \
-d "<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
<methodName>system.methodHelp</methodName>
<params>
<param><type>string</type><value>ping</value></param>
</params>
</methodCall>" -X POST https://`hostname`/ipa/xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0450-Implement-XML-introspection.patch
Type: text/x-patch
Size: 8524 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140114/452208b4/attachment.bin>
More information about the Freeipa-devel
mailing list