I walked into the same problem. Enabled the DC role by accident and wasn't able to disable it again; didn't have a config backup from before, and configuring everything by hand again seemed tedious.
Apparently disabling the DC role is still impossible, at least in the GUI? Clicking on that slider doesn't change anything...
Here's what I did:
- Backup config
- Open config using DB Browser for SQLlite
- Run query "delete * from services_domaincontroller"
- Save and load config
- Disable domain controller role (for some reason, it still appears as enabled in the GUI)
It should be possible to replace steps 1-4 by running this command from the NAS shell (didn't try):
sqlite3 /data/freenas-v1.db "delete * from services_domaincontroller;"
Not surprisingly, this leaves the configuration in a messed-up state, so I needed to refresh the nameserver config (enter different ones temporarily) and to rejoin the previous domain and follow the steps described here:
https://doc.freenas.org/9.3/freenas_directoryservice.html#if-the-system-will-not-join-the-domain
Is there a more straightforward way? ;)