more encoding error fix (on ldap auth)

This commit is contained in:
kakwa 2015-07-29 00:14:49 +02:00
parent 5d40cad342
commit ff08e09598
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ class Backend(ldapcherry.backend.Backend):
def auth(self, username, password):
binddn = self._get_user(username, NO_ATTR)
binddn = self._str(self._get_user(username, NO_ATTR))
if binddn is not None:
ldap_client = self._connect()
try: