Properly use Django's database backend API.
Properly use Django's database backend API.

Conform to the new methods and helpers introduced in recent versions;
this brings:

* Support for automatic connection recycling
* Proper error messages

django-ldapdb/django-ldapdb,jlaine/django-ldapdb