Bug 43724 - purge_s4_computer.py does not completely purge the server from the samba database
purge_s4_computer.py does not completely purge the server from the samba data...
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-06 11:47 CET by Felix Botner
Modified: 2019-01-03 07:19 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017030321000481
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2017-03-06 11:47:19 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
Comment 1 Stefan Gohmann univentionstaff 2017-03-06 21:16:33 CET
(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.
Comment 2 Arvid Requate univentionstaff 2017-04-20 18:16:42 CEST
See also the two other bugs reported for this tool.
Comment 3 Stefan Gohmann univentionstaff 2019-01-03 07:19:12 CET
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.