Serfdom
This kind of serfdom lasted in Russia until 1974 (with a brief break during the Russian Civil War). USSR Government Decree #667 gave peasants identification documents, with an unrestricted right to move within the country, for the first time in Russian history. It is possible that a system like this still exists in rural China.