Question: how to setup domain controller qnap?
Answer: Control Panel > Domain Controller > Click Enable Domain Controller.
Domain: this will be the domain of your network. Leave the default domain such as domain.local. ... 
Set Administrator Password. This is the password for the Administrator User account.