SELECT id FROM ldap_auth_sources WHERE name = %(name)s LIMIT 1;