<div dir="ltr"><div class="gmail_extra"><br>Normally if IPA has a well documented API then my approach would be:</div><div class="gmail_extra">user --> (internet) --> webserver --> lPA API --> IPA server</div><div class="gmail_extra">
 </div><div class="gmail_extra"> </div><div class="gmail_extra">But since there isn't much info about the API then my approach would be:</div><div class="gmail_extra">user --> (internet) --> webserver --> a PHP script which acts as an custom API --> IPA server</div>
<div class="gmail_extra"> </div><div class="gmail_extra"> </div><div><div class="gmail_extra">The problem is I don't know which commands are available en which values/params I should send. For example:</div><div class="gmail_extra">
 </div><div class="gmail_extra"><a href="http://www.freeipa.org/docs/1.2/Administrators_Reference/en-US/html/chap-Administration_Reference-XML_RPC_Application_Programming_Interface_API_Documentation.html#">http://www.freeipa.org/docs/1.2/Administrators_Reference/en-US/html/chap-Administration_Reference-XML_RPC_Application_Programming_Interface_API_Documentation.html#</a></div>
<div class="gmail_extra"><div class="gmail_extra">These are commands for xml rpc. Without examples it's difficult to find out how to use it.</div></div><div class="gmail_extra"> </div><div class="gmail_extra">But they are different from this example:</div>
<div class="gmail_extra"><a href="http://adam.younglogic.com/2010/07/talking-to-freeipa-json-web-api-via-curl/">http://adam.younglogic.com/2010/07/talking-to-freeipa-json-web-api-via-curl/</a></div><div class="gmail_extra">
In this example a "user_find" command is used, but this command cannot be found in the official xml rpc document above.</div><div class="gmail_extra"> </div><div class="gmail_extra">In ssh I can display a list of commands with "ipa help commands" I don't know if they are all supported in "/ipa/json" I probably need to replace all dashes with underscores (correct me if I'm wrong).</div>
<div class="gmail_extra"> </div><div class="gmail_extra">If I want to display all the supported params from one certain command for example "ipa help user-find". Then, are all the double dashed params also the supported params which I can send with JSON?</div>
<div class="gmail_extra"> </div><div class="gmail_extra">I prefer using the native API if there is one (hidden somewhere), because I don't want to reinvent the wheel with security leaks which I'm not aware of. Especially when I need to execute CLI commands from the PHP scripts.</div>
<div class="gmail_extra"> </div></div></div>