Rename tests/accounts.py to tests/login.py
Remove unused imports and defines
Minor fixes and renames in login
Check if the text is exact in Messages instead of checking if it is included
Introduce _get_messages and _get_matches helper functions to avoid duplication
Get the messages from the cookiestorage when there is no context

This happens when HttpResponseRedirect is used, where RequestContext is
not being used
Remove legacy code
Fix the mockldap calls in order to properly reset the directory
Additions / fixes in settings:

- Introduce AUTH_LDAP_ADMIN_BIND_{DN_PASSWORD} for the admin account
  It will be used for new user creation
- Introduce AUTH_LDAP_USER_OBJECTCLASS with the objectClasses that the
  new user should belong to
- Construct AUTH_LDAP_USER_DN_TEMPLATE from AUTH_LDAP_USER_{ATTR,BASE_DN}
  so that the two other vars can be reused later for the signup
- Add SERVER_EMAIL in tests/settings
- Typos
Revert AES to Blowfish and my previous implementation

The new one didn't work as expected
Remove sha1_password and the verify function, as they will not be
used. Instead, we will use passlib.hash.ldap_md5_crypt
Use tampakrap's fork of django-auth-ldap until our patches get accepted
remove legacy code
Add an ldap object

It will be used as middleware between mockldap and python-ldap object
It wraps up some of the python-ldap functions
Add SignupError exception
Add the signup and activate views

- Also add the needed models and forms
- Print the error messages properly in the signup and index templates
- Add their tests and a fixture
- Enable signup and activate views in the urls.py and INSTALLED_APPS
- This commit also introduces depedency to passlib. We use
passlib.hash.ldap_md5_crypt to create the hash and verify the password.
We use the same lib in the tests, thus the passwords in
example_directory in tests.py have been converted from plaintext to md5 hash.