Univention Bugzilla – Bug 43724
purge_s4_computer.py does not completely purge the server from the samba database
Last modified: 2019-01-03 07:19:12 CET
After purge_s4_computer.py there are still some references/objects in the samba database and the server is still member of the drs replication. -> purge_s4_computer.py -> univention-s4search --cross-ncs cn=SERVER "CN=SERVER,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,BASE" -> samba-tool drs showrepl After deleting these objects (there are some child objects) and a running "samba-tool drs kcc" the server is gone. So there is some more work to to in purge_s4_computer.py. But, we should use the "new" samba-tool demote command for that s4 part. samba-tool domain demote [options] Demote ourselves from the role of Domain Controller. Options: -h, --help show this help message and exit --server=SERVER writable DC to write demotion changes on -H URL, --URL=URL LDB URL for database or target server --remove-other-dead-server=REMOVE_OTHER_DEAD_SERVER
(In reply to Felix Botner from comment #0) > After purge_s4_computer.py there are still some references/objects in the > samba database and the server is still member of the drs replication. > > -> purge_s4_computer.py > -> univention-s4search --cross-ncs cn=SERVER > "CN=SERVER,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration, > BASE" > -> samba-tool drs showrepl > > After deleting these objects (there are some child objects) and a running > "samba-tool drs kcc" the server is gone. AFAIK drs kcc is done internally every few minutes. So it will be removed automatically.
See also the two other bugs reported for this tool.
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.