People still do this in small US towns. Your last name defines who you are to the town heritage. If you have the wrong last name, then you don't matter.
As non-contrarian as it sounds, I'd argue that as someone who came from a small town, having to define yourself by your "tribe" last name is worse, because if it the "wrong" last name, there's nothing you can do about it. You can, within reason, change what you do for a living.