Firstly, thanks for the amazing work!
Now, Here: https://github.com/etianen/django-python3-ldap/blob/master/django_python3_ldap/ldap.py#L214settings.LDAP_AUTH_CONNECTION_USERNAME is never going to be equal to username since username here is formatted, but we format settings.LDAP_AUTH_CONNECTION_USERNAME after comparison resulting in a redundant rebind, unless I am missing something (which is entirely possible :) ) ?
Firstly, thanks for the amazing work! Now, Here: https://github.com/etianen/django-python3-ldap/blob/master/django_python3_ldap/ldap.py#L214
settings.LDAP_AUTH_CONNECTION_USERNAME
is never going to be equal tousername
sinceusername
here is formatted, but we formatsettings.LDAP_AUTH_CONNECTION_USERNAME
after comparison resulting in a redundant rebind, unless I am missing something (which is entirely possible :) ) ?