clone of https://pythonhosted.org/django-auth-ldap/ with some changes