How to keep unRAID Server in Active Directory?

Hi, my company is currently having problems with our unRAID Server 4.5.6 Pro.
Our company uses Active Directory and security models from AD.
The problem is, every time we restarted unRAID Server, and the server is not considered by the system as a member of the AD.
Before I can rejoin the AD, I have to go through the process of editing the file path: “etc/samba/smb-names.conf.”
And I had to manually set the work group to the name of our AD.
Else, I keep getting errors in the syslog and could not join the AD.
Can anyone tell me what to do to keep the unRAID Server in the AD?
Please help me.
