add workaround for bug in Products.LDAPUserFolder (#4663)
This commit is contained in:
parent
698502b8c8
commit
4f675dc5aa
|
@ -81,7 +81,13 @@ class LDAPPluginBase(Folder, BasePlugin, Cacheable):
|
||||||
if not acl or not login or not password:
|
if not acl or not login or not password:
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
user = acl.getUser(login, pwd=password)
|
try:
|
||||||
|
user = acl.getUser(login, pwd=password)
|
||||||
|
except IndexError:
|
||||||
|
# workaround bug in Products.LDAPUserFolder that happens when the
|
||||||
|
# login is an accentuated variant of an existing login and the
|
||||||
|
# password is correct :/
|
||||||
|
return None, None
|
||||||
|
|
||||||
if user is None:
|
if user is None:
|
||||||
return None, None
|
return None, None
|
||||||
|
|
Reference in New Issue