[Samba] how to remove an (offline) DC from Samba 4 ?

"Dr. Hansjörg Maurer" hansjoerg.maurer at itsd.de
Mon Feb 17 13:19:44 MST 2014


Hi

I found a script

http://gallery.technet.microsoft.com/scriptcenter/d31f091f-2642-4ede-9f97-0e1cc4d577f3

which did the removal of a dead windows DC form an samba4 AD

We startet is on a domain member as domain admin, it shows a list auf
dc's, you can select th one to remove

After the removal I did not find any references of the old one
with
ldbedit -e vi -H /etc/samba/sam.ldb --cross-ncs

and drs replication did not show any faild targets any more.
In oure case fsmo and GC roles have already been transfered to the samba dc.
 

It only removes the AD entries, not the dns entries, but it works fine
in our setup.

Regards

Hansjörg Maurer


Am 17.02.2014 10:41, schrieb Bram Matthys:
> Hi all,
>
> What would be the recommended way to remove an old offline DC from Samba4?
>
> I searched in samba-tool for a way to do this, but didn't find any.
> Tried using the Windows tools to manage AD Users & Computers -> Domain
> Controllers -> The DC & then hit delete, however this gives an error
'cannot
> find specified module'.
> On https://wiki.samba.org/index.php/Samba4/DRS_TODO_List I read this is
> likely a known issue:
> "Fix DsRemoveDSServer
>
> Removing a DC from the Domain Controllers container when using windows
> user/group admin tool against a s4 DC fails with "bad stub data". It
> generated a fault on the wire. "
>
> Given that both samba-tool and the using the ADUC tools are a dead
end, what
> should I do?
>
> Should I start messing with ldbedit/ldbdel? I'm worried to mess up things,
> especially dead references to the old DC. Or is this the way to go.
>
> This is on samba 4.1.4, running as AD, with all FSMO roles seized (in case
> it matters).
>
> Any help would be appreciated.
>
> Thanks,
>
> Bram.
>

-- 
Dr. Hansjörg Maurer
itsystems Deutschland AG
Erzgießereistr. 22
80335 München
Tel:   +49-89-52 04 68-41
Fax:   +49-89-52 04 68-59
E-Mail: hansjoerg.maurer at itsd.de
Web:    http://www.itsd.de


Amtsgericht München HRB 132146
USt-IdNr. DE 812991301
Steuer-Nr. 143/100/81575

Aufsichtsratsvorsitzender:
Stefan Adam
Vorstand:
Dr. Michael Krocka
Dr. Hansjörg Maurer




More information about the samba mailing list