[MERGE] forward port of branch 7.0 up to 152d9de
This commit is contained in:
@@ -96,7 +96,11 @@ class CompanyLDAP(osv.osv):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
entry = False
|
entry = False
|
||||||
filter = filter_format(conf['ldap_filter'], (login,))
|
try:
|
||||||
|
filter = filter_format(conf['ldap_filter'], (login,))
|
||||||
|
except TypeError:
|
||||||
|
_logger.warning('Could not format LDAP filter. Your filter should contain one \'%s\'.')
|
||||||
|
return False
|
||||||
try:
|
try:
|
||||||
results = self.query(conf, filter)
|
results = self.query(conf, filter)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user