Tests: check whether failed get_bound_ldapuser() doesn't pollute the db.
Clean up settings.DATABASES when get_bound_ldapuser() fails.

For example, if invalid credentials are provided.
Merge pull request #91 from mgorny/ensure-credentials-cleaned_up-on-exception

Ensure credentials cleaned up on exception