freeipa/ipalib
John Dennis 9753fd4230 Tweak the session auth to reflect developer consensus.
* Increase the session ID from 48 random bits to 128.

* Implement the sesison_logout RPC command. It permits the UI to send
  a command that destroys the users credentials in the current
  session.

* Restores the original web URL's and their authentication
  protections. Adds a new URL for sessions /ipa/session/json. Restores
  the original Kerberos auth which was for /ipa and everything
  below. New /ipa/session/json URL is treated as an exception and
  turns all authenticaion off. Similar to how /ipa/ui is handled.

* Refactor the RPC handlers in rpcserver.py such that there is one
  handler per URL, specifically one handler per RPC and AuthMechanism
  combination.

* Reworked how the URL names are used to map a URL to a
  handler. Previously it only permitted one level in the URL path
  hierarchy. We now dispatch on more that one URL path component.

* Renames the api.Backend.session object to wsgi_dispatch. The use of
  the name session was historical and is now confusing since we've
  implemented sessions in a different location than the
  api.Backend.session object, which is really a WSGI dispatcher, hence
  the new name wsgi_dispatch.

* Bullet-proof the setting of the KRB5CCNAME environment
  variable. ldap2.connect already sets it via the create_context()
  call but just in case that's not called or not called early enough
  (we now have other things besides ldap which need the ccache) we
  explicitly set it early as soon as we know it.

* Rework how we test for credential validity and expiration. The
  previous code did not work with s4u2proxy because it assumed the
  existance of a TGT. Now we first try ldap credentials and if we
  can't find those fallback to the TGT. This logic was moved to the
  KRB5_CCache object, it's an imperfect location for it but it's the
  only location that makes sense at the moment given some of the
  current code limitations. The new methods are KRB5_CCache.valid()
  and KRB5_CCache.endtime().

* Add two new classes to session.py AuthManager and
  SessionAuthManager. Their purpose is to emit authication events to
  interested listeners. At the moment the logout event is the only
  event, but the framework should support other events as they arise.

* Add BuildRequires python-memcached to freeipa.spec.in

* Removed the marshaled_dispatch method, it was cruft, no longer
  referenced.

https://fedorahosted.org/freeipa/ticket/2362
2012-02-27 05:54:29 -05:00
..
plugins Limit allowed characters in a netgroup name to alpha, digit, -, _ and . 2012-02-27 00:06:44 -05:00
__init__.py Replace float with Decimal 2012-01-20 08:13:44 +01:00
aci.py Fix uninitialized attributes. 2011-04-21 10:41:29 +02:00
backend.py Tweak the session auth to reflect developer consensus. 2012-02-27 05:54:29 -05:00
base.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
cli.py Add common helper for interactive prompts 2012-02-19 20:23:20 -05:00
config.py Finalize plugin initialization on demand. 2011-11-22 00:52:24 -05:00
constants.py Don't set delegation flag in client, we're using S4U2Proxy now 2012-02-15 17:08:33 +01:00
crud.py Fix LDAP object parameter encoding 2011-11-15 13:17:44 +01:00
dn.py Fix attempted write to attribute of read-only object. 2012-01-02 11:51:26 +03:00
encoder.py Replace float with Decimal 2012-01-20 08:13:44 +01:00
errors.py Add common helper for interactive prompts 2012-02-19 20:23:20 -05:00
frontend.py Added commands into metadata. 2011-12-06 22:07:35 +00:00
krb_utils.py Tweak the session auth to reflect developer consensus. 2012-02-27 05:54:29 -05:00
output.py Internationalization for HBAC and ipalib.output 2012-02-14 19:08:40 +01:00
parameters.py Base64-decode unicode values in Bytes parameters. 2012-02-13 22:21:50 -05:00
pkcs10.py Fix assorted bugs found by pylint 2011-01-25 14:01:36 -05:00
plugable.py Don't set delegation flag in client, we're using S4U2Proxy now 2012-02-15 17:08:33 +01:00
request.py Remove deprecated i18n code from ipalib/request and all references to it. 2011-03-01 10:31:36 -05:00
rpc.py Don't set delegation flag in client, we're using S4U2Proxy now 2012-02-15 17:08:33 +01:00
session.py Tweak the session auth to reflect developer consensus. 2012-02-27 05:54:29 -05:00
text.py Fix regressions introduced by pylint false positive fixes. 2011-05-11 16:50:01 +02:00
util.py Add SSHFP update policy for existing zones 2012-02-27 18:04:19 +01:00
x509.py Verify that the external CA certificate files are correct. 2011-08-23 01:23:41 -04:00