mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
fix pep8 error
This commit is contained in:
parent
dcdc260f33
commit
f863b230dd
@ -253,7 +253,10 @@ class Backend(ldapcherry.backend.backendLdap.Backend):
|
|||||||
if binddn is not None:
|
if binddn is not None:
|
||||||
ldap_client = self._connect()
|
ldap_client = self._connect()
|
||||||
try:
|
try:
|
||||||
ldap_client.simple_bind_s(self._str(binddn), self._str(password))
|
ldap_client.simple_bind_s(
|
||||||
|
self._str(binddn),
|
||||||
|
self._str(password)
|
||||||
|
)
|
||||||
except ldap.INVALID_CREDENTIALS:
|
except ldap.INVALID_CREDENTIALS:
|
||||||
ldap_client.unbind_s()
|
ldap_client.unbind_s()
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user