Add cookie support to webapp.tcl
Authentication framework

Issue #60

- upgrade the version to 2.3.0a1
- create schema version 23 since there is a database change
- add the global.session table which holds active sessions
- add the authexpire database parameter (idle timeout for
    active sessions)
- check the "session" cookie returned by the browser and
    redirect to a login page if not valid
    (validity check is still to implement)
- design the login page, and the associated validation script
- adapt the CGI initialization code in order to allow
    unauthenticated access, used for:
    - initial login
    - authentication cookie renewal if idle time is overdue
- remove the "ouvrir-base" and "fermer-base" functions which
    are no longer useful
Authentication framework

Issue #60

=> still to do: rationalize calls to "openssl"
=> still to do: "openssl rand" needs a ~/.rng file
=> allow more password formats

This commit add the following proof of concepts:
- create authentication token with the new configuration
    parameter "authtoklen" (token length)
- remove old tokens (older than "authcleanup" days,
    where "authcleanup" is a new configuration parameter)
- check user password on each authenticated page
- return the authentication token if the authentication
    was successful
Authentication framework

Issue #60

This commit provides:
- check 'authexpire' delay
- update last access time
Add units (i.e. "seconds") to the authexpire description
LDAP authentication
Remove dependancies to openssl

The last openssl dependancy is in netmagis-dbcreate.

All remaining cryptographic work is done though the
tcllib md5 modules.

Modify netmagis.conf:
- get rid of "crypt" configuration parameter
- add "random" configuration parameter
Remove authentication parameters from httpd.conf
Authentication framework

Issue #60

Insert the connection name in the left margin
Authentication framework

Issue #60

Finalize the sequencing of scripts after authentication
Authentication framework

Issue #60

Logout page
Add profile page (old perm script)
Work-around a Tcllib bug

The uuid package illegally accesses a global variable "e", which we
happen to use.

See: http://core.tcl.tk/tcllib/tktview?name=d679822510

Since we cannot assume that Netmagis will be installed with a
fixed Tcllib (which does not exist yet), change our variable
name (from "e" to "ae").
Authentication framework

Issue #60

Remove ldapattrpasswd which is no longer needed.
Merge branch 'master' into auth