freeipa/ipapython
Rob Crittenden c69d8084c1 Add API version and have server reject incompatible clients.
This patch contains 2 parts.

The first part is a small utility to create and validate the current
API. To do this it needs to load ipalib which on a fresh system
introduces a few problems, namely that it relies on a python plugin
to set the default encoding to utf8. For our purposes we can skip that.
It is also important that any optional plugins be loadable so the
API can be examined.

The second part is a version exchange between the client and server.
The version has a major and a minor version. The major verion is
updated whenever existing API changes. The minor version is updated when
new API is added. A request will be rejected if either the major versions
don't match or if the client major version is higher than then server
major version (though by implication new API would return a command not
found if allowed to proceed).

To determine the API version of the server from a client use the ping
command.

ticket 584
2011-01-14 14:26:22 -05:00
..
py_default_encoding Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
__init__.py Rename ipa-python directory to ipapython so it is a real python library 2009-02-09 14:35:15 -05:00
certdb.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
certmonger.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
config.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
dnsclient.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
dogtag.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
entity.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
ipa.conf Rename ipa-python directory to ipapython so it is a real python library 2009-02-09 14:35:15 -05:00
ipautil.py Make ipa-replica-manage list return all known masters 2010-12-21 17:28:13 -05:00
ipavalidate.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
Makefile Add default python encoding module to reset default from ascii to utf-8 2010-10-22 21:39:20 -04:00
MANIFEST.in Rename ipa-python directory to ipapython so it is a real python library 2009-02-09 14:35:15 -05:00
nsslib.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
README Remove radius options completely. 2011-01-14 14:06:56 -05:00
setup.py.in Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
sysrestore.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
version.py.in Add API version and have server reject incompatible clients. 2011-01-14 14:26:22 -05:00

This is a set of libraries common to IPA clients and servers though mostly
geared currently towards command-line tools.

A brief overview:

config.py - identify the IPA server domain and realm. It uses dnsclient to
            try to detect this information first and will fall back to
            /etc/ipa/default.conf if that fails.
dnsclient.py - find IPA information via DNS

ipautil.py - helper functions

entity.py - entity is the main data type. User and Group extend this class
            (but don't add anything currently).

ipavalidate.py - basic data validation routines