SELECT id FROM res_company_ldap WHERE ldap_server = %(ldap_server)s LIMIT 1;