The court shall ascertain and declare the rights, titles and interests of all the parties to such proceedings and render such decree as may be required by the rights of the said parties, which said decree shall be binding upon all of the said parties, whether they be adults or not.