I finally got this working. After resetting everything a couple of times, and having the issue where the hardware UUID did not match the SMB UUID, I finally found the issue preventing authentications:
/Users/Shared was broken.
Seriously, that's what it was. No AppleID authentications work if...