freeipa/install/ui
John Dennis bba4ccb3a0 add session manager and cache krb auth
This patch adds a session manager and support for caching
authentication in the session. Major elements of the patch are:

* Add a session manager to support cookie based sessions which
  stores session data in a memcached entry.

* Add ipalib/krb_utils.py which contains functions to parse ccache
  names, format principals, format KRB timestamps, and a KRB_CCache
  class which reads ccache entry and allows one to extract information
  such as the principal, credentials, credential timestamps, etc.

* Move krb constants defined in ipalib/rpc.py to ipa_krb_utils.py so
  that all kerberos items are co-located.

* Modify javascript in ipa.js so that the IPA.command() RPC call
  checks for authentication needed error response and if it receives
  it sends a GET request to /ipa/login URL to refresh credentials.

* Add session_auth_duration config item to constants.py, used to
  configure how long a session remains valid.

* Add parse_time_duration utility to ipalib/util.py. Used to parse the
  session_auth_duration config item.

* Update the default.conf.5 man page to document session_auth_duration
  config item (also added documentation for log_manager config items
  which had been inadvertantly omitted from a previous commit).

* Add SessionError object to ipalib/errors.py

* Move Kerberos protection in Apache config from /ipa to /ipa/xml and
  /ipa/login

* Add SessionCCache class to session.py to manage temporary Kerberos
  ccache file in effect for the duration of an RPC command.

* Adds a krblogin plugin used to implement the /ipa/login
  handler. login handler sets the session expiration time, currently
  60 minutes or the expiration of the TGT, whichever is shorter. It
  also copies the ccache provied by mod_auth_kerb into the session
  data.  The json handler will later extract and validate the ccache
  belonging to the session.

* Refactored the WSGI handlers so that json and xlmrpc could have
  independent behavior, this also moves where create and destroy
  context occurs, now done in the individual handler rather than the
  parent class.

* The json handler now looks up the session data, validates the ccache
  bound to the session, if it's expired replies with authenicated
  needed error.

* Add documentation to session.py. Fully documents the entire process,
  got questions, read the doc.

* Add exclusions to make-lint as needed.
2012-02-09 13:20:45 -06:00
..
images Added facet tabs coloring 2011-12-14 15:44:36 +00:00
test Automember UI - Fixed I18n labels 2012-02-07 00:48:10 -06:00
aci.js Enabled paging on self-service permissions and delegations. 2012-01-16 20:11:18 +01:00
add.js Refactored facet.load(). 2011-12-06 22:08:07 +00:00
association.js Fixed host managed-by adder dialog. 2012-01-31 08:40:00 -06:00
automember.js Automember UI - Fixed I18n labels 2012-02-07 00:48:10 -06:00
automount.js Enabled paging on automount keys. 2012-01-23 15:38:25 +01:00
browser.js Added cross browser support of Array.indexOf method 2011-12-02 18:35:59 +00:00
certificate.js Use fixed font when displaying certificate. 2012-02-01 15:51:31 +01:00
details.js Added refresh button for UI 2012-01-30 17:46:57 -06:00
develop.js Removed develop.js. 2011-11-14 16:47:10 -05:00
dialog.js Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
dns.js Added icons for status column. 2012-02-01 15:51:10 +01:00
entitle.js Refactored facet.load(). 2011-12-06 22:08:07 +00:00
entity.js Navigation and redirection to various facets 2012-02-01 12:47:42 -06:00
extension.js Removed develop.js. 2011-11-14 16:47:10 -05:00
facet.js Automember UI 2012-02-01 12:47:46 -06:00
favicon.ico favicon 2011-02-03 15:04:23 -05:00
field.js Show password expiration date. 2012-02-01 15:51:50 +01:00
group.js Refactored facet.load(). 2011-12-06 22:08:07 +00:00
hbac.js Added icons for status column. 2012-02-01 15:51:10 +01:00
hbactest.js Added icons for status column. 2012-02-01 15:51:10 +01:00
host.js Show password expiration date. 2012-02-01 15:51:50 +01:00
hostgroup.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
index.html Automember UI 2012-02-01 12:47:46 -06:00
ipa.css Automember UI - default groups 2012-02-07 00:48:07 -06:00
ipa.js add session manager and cache krb auth 2012-02-09 13:20:45 -06:00
jquery-ui.css Fixed inconsistent image names. 2011-10-27 14:05:12 +00:00
jquery-ui.js rename static to ui 2011-01-20 14:12:47 +00:00
jquery.ba-bbq.js rename static to ui 2011-01-20 14:12:47 +00:00
jquery.js Upgrade to jquery 1.5.2 https://fedorahosted.org/freeipa/ticket/768 2011-04-23 03:25:45 +00:00
jquery.ordered-map.js Enabled paging on automount keys. 2012-01-23 15:38:25 +01:00
jsl.conf Automember UI 2012-02-01 12:47:46 -06:00
json2.js rename static to ui 2011-01-20 14:12:47 +00:00
Makefile.am Automember UI 2012-02-01 12:47:46 -06:00
navigation.js Navigation and redirection to various facets 2012-02-01 12:47:42 -06:00
net.js Added IP address validator to Host and DNS record adder dialog 2012-01-11 00:48:44 -06:00
netgroup.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
overpass_bold-web.eot Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.svg Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.ttf Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.woff Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.eot Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.svg Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.ttf Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.woff Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
policy.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
rule.js Added icons for status column. 2012-02-01 15:51:10 +01:00
search.js Hide Add/Delete buttons in self-service mode. 2012-02-01 15:51:21 +01:00
selinux.js Added icons for status column. 2012-02-01 15:51:10 +01:00
serverconfig.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
service.js Added instructions to generate CSR. 2012-01-13 10:57:59 -06:00
sudo.js Added icons for status column. 2012-02-01 15:51:10 +01:00
user.js Show password expiration date. 2012-02-01 15:51:50 +01:00
webui.js Automember UI - Fixed I18n labels 2012-02-07 00:48:10 -06:00
widget.js Automember UI - default groups 2012-02-07 00:48:07 -06:00