Ok, for clarity here, does this ban men who've had sex with men from entering the priesthood, or does it ban virginal men who are attracted to men instead of women from entering the priesthood? I can see a world of difference between the two.
I'm no official but I'll try to contend with your questions...
First, "men who've had sex with men" are homosexuals.
"Virginal men who are attracted to men instead of women" are homosexuals.
As others and I, too, have written here before, celibacy is one aspect of the Priesthood, homosexuality is not a state of grace and/or acceptable as state of being for the Priesthood.