Active directory setup not saving the password for continued access

I have a home media server setup and I have active directory setup on a windows server for authorized access. I keep having to setup active directory again and again to retain access. The error when it fails is that the password is missing and I have to keep disabling and reenabling active directory with the password and then restart smb to get access again. What’s the problem?