https://github.com/jlaine/django-ldapdb/blob/master/ldapdb/models/base.py#L43