The short answer
Buddhism does not give one answer to this question. Monastic rules forbid sexual activity for monks and nuns. For lay people, the key teaching is to avoid sexual misconduct, and different traditions and teachers read that teaching in different ways. Views also vary by country and by community today.
What the earliest texts say
The earliest Pali texts do not directly address same-sex relations between lay people. The monastic code, the Vinaya, is detailed about sexual acts for monks and nuns and ranks them by seriousness.
The Vinaya also excludes people described as ubhatovyanjanaka, a term for people with both or ambiguous sexual characteristics, from ordination. Some scholars think this category was added to the texts later.
Sexual misconduct for lay people
For lay followers, the third of the five precepts is a commitment to refrain from sexual misconduct. The phrase is read in more than one way.
Some teachers read it narrowly, as covering adultery, coercion and exploitation. Other traditions list specific kinds of misconduct, which are often described as involving inappropriate partners, body parts, times and places. Same-sex relations fall under that broader reading for some teachers and not others.
What the Dalai Lama has said
The Dalai Lama is a prominent teacher in the Gelug school of Tibetan Buddhism. He does not speak for all Buddhists.
In a 1994 interview with OUT magazine, he reportedly said that from a Buddhist point of view, same-sex sexual activity is generally considered sexual misconduct. He also reportedly said that for society at large, such relationships can be harmless. His comments in later interviews have varied, and many of the quotes reach readers through secondary reports. Check the original interviews before quoting him.
Views today
Views differ across countries, traditions and communities. Many Western Buddhist teachers and communities welcome LGBTQ practitioners. Some teachers read the misconduct precept as being about harm, such as coercion, deception, exploitation and broken commitments, rather than about the gender of a partner. Others keep the traditional view.
So if you ask whether LGBT people are accepted in Buddhism, the honest answer depends on the teacher, the community and the country. Many readers find it helpful to ask a teacher or a local sangha directly.
The core ethic
Buddhist ethics centers on non-harm and compassion. Many people who take on the precepts use that principle to decide how to treat others, including in matters of love and relationships. For anyone who wants to know where a specific tradition or teacher stands, reading their own writing or asking them directly is the most reliable approach.