The court shall have jurisdiction in such action to determine who are the heirs at law, devisees, and legatees of any deceased person who had in his lifetime any interest in or lien or encumbrance on the premises involved between themselves, as well as with respect to the rights of the plaintiff, and to make an adjudication upon the rights of such heirs, devisees and legatees and of all creditors of such deceased persons in and to such premises, which shall be valid and binding upon them and upon all the world, and if such heirs at law, devisees, and legatees of such deceased person and the creditors of such deceased person and the unknown defendants in said action, or any of them, shall fail to appear in such action and set forth and assert their interest in or claim to the premises involved, they shall be by the judgment and decree of the court forever barred and enjoined from thereafter claiming or asserting any title or interest in or lien or encumbrance upon or claim to the premises involved in the action.
SDCL 21-41-18