Deuteronomy 23:2 No one of illegitimate birth may enter the assembly of the LORD, nor may any of his descendants, even to the tenth generation.
I think an elder should be appointed at the KH door to inquire about this, for all people entering.
Also, how does one know if his/her great, great, great grandfather /grandmother was illegitimate ?