freeipa/ipalib/plugins
Petr Viktorin 1e836d2d0c Switch client to JSON-RPC
Modify ipalib.rpc to support JSON-RPC in addition to XML-RPC.
This is done by subclassing and extending xmlrpclib, because
our existing code relies on xmlrpclib internals.

The URI to use is given in the new jsonrpc_uri env variable. When
it is not given, it is generated from xmlrpc_uri by replacing
/xml with /json.

The rpc_json_uri env variable existed before, but was unused,
undocumented and not set the install scripts.
This patch removes it in favor of jsonrpc_uri (for consistency
with xmlrpc_uri).

Add the rpc_protocol env variable to control the protocol
IPA uses. rpc_protocol defaults to 'jsonrpc', but may be changed
to 'xmlrpc'.
Make backend.Executioner and tests use the backend specified by
rpc_protocol.

For compatibility with unwrap_xml, decoding JSON now gives tuples
instead of lists.

Design: http://freeipa.org/page/V3/JSON-RPC
Ticket: https://fedorahosted.org/freeipa/ticket/3299
2013-11-26 16:59:59 +01:00
..
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
aci.py Use new ipaldap entry API in aci and permission plugin 2013-10-30 11:50:05 +01:00
automember.py Fix error message when adding duplicate automember rule 2013-11-15 12:46:07 +01:00
automount.py Remove unneeded python-ldap imports 2013-03-13 12:36:34 +01:00
baseldap.py Fix error message when adding duplicate automember rule 2013-11-15 12:46:07 +01:00
batch.py Add the version option to all Commands 2013-02-21 16:26:09 +01:00
cert.py Remove ipa-pwd-extop and ipa-enrollment duplicate error strings 2013-10-30 17:59:46 +01:00
config.py Add support for managing user auth types 2013-11-08 12:48:15 +01:00
delegation.py Update plugin docstrings (topic help) to reflect dropped CSV support 2013-02-22 17:20:35 +01:00
dns.py Remove support for IPA deployments with no persistent search 2013-08-09 12:14:42 +02:00
group.py Filter groups by type (POSIX, non-POSIX, external) 2013-04-09 19:00:30 +02:00
hbacrule.py Deprecate HBAC source hosts from CLI 2013-04-12 14:07:55 -04:00
hbacsvc.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
hbacsvcgroup.py Improve help text for HBAC service groups 2013-04-18 17:29:07 -04:00
hbactest.py ipaserver/dcerpc: attempt to resolve SIDs through SSSD first 2013-07-23 16:24:38 +03:00
host.py Break long doc string in the Host plugin 2013-11-21 10:34:25 +01:00
hostgroup.py Use LDAP search instead of *group_show to check for a group objectclass. 2013-07-11 12:39:26 +03:00
idrange.py Refactor the interactive prompt logic in idrange_add 2013-07-26 13:57:35 +02:00
internal.py Add automember rebuild command to the web UI 2013-11-15 13:28:16 +01:00
kerberos.py Use fully qualified CCACHE names 2013-02-01 08:13:50 +01:00
krbtpolicy.py Use full DNs in plugin code. 2013-03-01 16:59:47 +01:00
migration.py Use valid LDAP search base in migration plugin 2013-07-26 13:42:22 +02:00
misc.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
netgroup.py Use LDAP search instead of *group_show to check if a group exists. 2013-07-11 12:39:25 +03:00
passwd.py Add the version option to all Commands 2013-02-21 16:26:09 +01:00
permission.py Use new ipaldap entry API in aci and permission plugin 2013-10-30 11:50:05 +01:00
ping.py Allow API plugin registration via a decorator 2013-08-14 12:08:27 +02:00
pkinit.py Internationalization for public errors 2012-09-03 18:16:12 +02:00
privilege.py Removal of memberofindirect_permissons from privileges 2012-04-09 22:12:39 -04:00
pwpolicy.py Limit pwpolicy maxlife to 20000 days 2013-08-05 17:50:31 +02:00
realmdomains.py Integrate realmdomains with IPA DNS 2013-04-16 15:50:24 +02:00
role.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
rpcclient.py Switch client to JSON-RPC 2013-11-26 16:59:59 +01:00
selfservice.py Update plugin docstrings (topic help) to reflect dropped CSV support 2013-02-22 17:20:35 +01:00
selinuxusermap.py Use full DNs in plugin code. 2013-03-01 16:59:47 +01:00
service.py Turn LDAPEntry.single_value into a dictionary-like property. 2013-11-05 13:56:55 +01:00
sudocmd.py Use full DNs in plugin code. 2013-03-01 16:59:47 +01:00
sudocmdgroup.py Update plugin docstrings (topic help) to reflect dropped CSV support 2013-02-22 17:20:35 +01:00
sudorule.py Fix output for some CLI commands 2013-04-11 15:57:45 +02:00
trust.py trusts: Do not pass base-id to the subdomain ranges 2013-11-22 08:47:49 +01:00
user.py Add userClass attribute for users 2013-11-19 14:27:50 +01:00
virtual.py Internationalization for public errors 2012-09-03 18:16:12 +02:00