Is there an easy way to change hostname on the system as well as on the certificate generated on UCS whitout compromising all the services being runned on the system by doing that?.
We have reached to this problem when upgrading to latest Samba 4 ( please see bellow message with exit code 1)
Installing univention-samba4 is exiting with code 1.
extract_rIDNextRID: Attribute rIDSetReferences not found
ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed - ProvisioningError: guess_names: Domain 'DOMAIN_NAME' must not be equal to short host name 'DOMAIN_NAME'!
File "/usr/lib/python2.6/dist-packages/samba/netcmd/domain.py", line 401, in run
File "/usr/lib/python2.6/dist-packages/samba/provision/__init__.py", line 1988, in provision
sitename=sitename, rootdn=rootdn, domain_names_forced=(samdb_fill == FILL_DRS))
File "/usr/lib/python2.6/dist-packages/samba/provision/__init__.py", line 616, in guess_names
raise ProvisioningError("guess_names: Domain '%s' must not be equal to short host name '%s'!" % (domain, netbiosname))
Samba4 provision failed, exiting /usr/share/univention-samba4/scripts/setup-s4.sh
Joinscript 96univention-samba4.inst finished with exitcode 1
*For security reasons DOMAIN_NAME was hidden but it is the same name as the hostname.
Changing the hostname via ucs set hostname , makes things worst since all the services stops when doing that.
We haven't been able to use file sharing since on the UCS, we had to configure a regular wheezy/Debian linux to workaround the problem. Still, we are not able to upgrade / update the system.
It is the first time that I see so major problem on unix by just changing/resetting the name of the host.