Remove unique information about a computer from samba db


#1

Hello,

a couple of weeks ago we replaced a samba 4 on Ubuntu with a UCS.

Now we wanted to use the old server as a BDC for the UCS. Joining the server failed with the message, that an object with this mac address already exists. Since we couldn’t find an entry in the ldap for this mac we deactivated it and inserted a pci express card and gave it a different ip address.
Although it is impossible that this new nic is known to the ucs, the join failed with the error, that an object with this mac address already exists. We therefore assume, that there is some other kind of information about the old server somewhere stored on the system, maybe in the database files of the samba server.

Does anyone have an idea how this unique id is generated and how we can remove it?

Thanks for any hint or suggestions,

Stefan


#2

Is the removed samba server still listed in drs replication ?

samba-tool drs showrepl

if so you can remove it by using the Microsoft RSAT Tools

rg

Christian


#3

Here is the output:

Using binding ncacn_ip_tcp:troubadix.dom1.local[,seal]
Mapped to DCERPC endpoint 135
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface br0 ip=172.20.0.53 bcast=172.20.3.255 netmask=255.255.252.0
added interface br0:1 ip=172.20.0.52 bcast=172.20.3.255 netmask=255.255.252.0
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface br0 ip=172.20.0.53 bcast=172.20.3.255 netmask=255.255.252.0
added interface br0:1 ip=172.20.0.52 bcast=172.20.3.255 netmask=255.255.252.0
Mapped to DCERPC endpoint 49152
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface br0 ip=172.20.0.53 bcast=172.20.3.255 netmask=255.255.252.0
added interface br0:1 ip=172.20.0.52 bcast=172.20.3.255 netmask=255.255.252.0
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface br0 ip=172.20.0.53 bcast=172.20.3.255 netmask=255.255.252.0
added interface br0:1 ip=172.20.0.52 bcast=172.20.3.255 netmask=255.255.252.0
Received smb_krb5 packet of length 257
Received smb_krb5 packet of length 1356
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface br0 ip=172.20.0.53 bcast=172.20.3.255 netmask=255.255.252.0
added interface br0:1 ip=172.20.0.52 bcast=172.20.3.255 netmask=255.255.252.0
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface br0 ip=172.20.0.53 bcast=172.20.3.255 netmask=255.255.252.0
added interface br0:1 ip=172.20.0.52 bcast=172.20.3.255 netmask=255.255.252.0
Default-First-Site-Name\TROUBADIX
DSA Options: 0x00000001
DSA object GUID: daaa8662-101a-4f67-9bea-a0cd646c21e4
DSA invocationId: ba7a244a-5ce1-451b-80a0-aa7032a9c591

The name of the old server was majestix, troubadix is the new one. majestix had the ip 172.20.0.52, troubadix now has .52 & .53.
As far as I can see, there is not a piece of information left about the old server.

Regards,

Stefan