=== modifié fichier users_ldap/users_ldap.py --- users_ldap/users_ldap.py 2011-04-29 11:22:51 +0000 +++ users_ldap/users_ldap.py 2011-05-18 10:24:34 +0000 @@ -98,10 +98,12 @@ name = result_data[0][1]['cn'][0] if l.bind_s(dn, password): l.unbind() - cr.execute("SELECT id FROM res_users WHERE login=%s",(tools.ustr(login),)) + cr.execute('UPDATE res_users SET date=now() WHERE login=%s AND active RETURNING id', + (tools.ustr(login), )) res = cr.fetchone() logger.debug(res) if res: + cr.commit() cr.close() return res[0] if not res_company_ldap['create_user']: