[FIX] Case insensitive user names in LDAP create duplicate users in OpenERP

lp bug: https://launchpad.net/bugs/985606 fixed

bzr revid: stefan@therp.nl-20120801122648-14mqu4x7xb3gd7p5
This commit is contained in:
Stefan Rijnhart 2012-08-01 14:26:48 +02:00
parent e845e2350c
commit eca351d07a
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class CompanyLDAP(osv.osv):
"""
user_id = False
login = tools.ustr(login)
login = tools.ustr(login.lower())
cr.execute("SELECT id, active FROM res_users WHERE login=%s", (login,))
res = cr.fetchone()
if res: