Keith Edmunds
2004-May-31 13:54 UTC
[Samba] Old domain name an't delete record with tdbtool
Samba V3, tdbsam backend. I've had to change the workgroup name in smb.conf on a Samba PDC (ie, I've changed the domain name). However, the old domain name still shows up in Windows PCs' "Microsoft Windows Network" (together with the new name, which works just fine). I want to remove the old domain name, and I assume it is still showing because it is still present in secrets.tdb. A "tdbdump secrets.tdb" shows (actual domain names changed): key = "SECRETS/SID/OLDNAME" data [deleted] key = "SECRETS/SID/NEWNAME" data [deleted] So I tried to remove the old name with tdbtool: $ tdbtool secrets.tdb tdb> delete SECRETS/SID/OLDNAME delete failed tdb> delete "SECRETS/SID/OLDNAME" delete failed tdb> Some questions: 1. Is the reason that the old domain name is showing because it is in secrets.tdb? 2. Is deleting it from secrets.tdb the right way to remove it? 3. How do I delete it? Many thanks for any suggestions - K.
Sascha Bieler
2004-May-31 21:10 UTC
[Samba] Old domain name an't delete record with tdbtool
Don't no much about this topic, just a hint... I had to change my domain too, also with windows servers and this is the normal behaviour. It's a kind of windows caching. If u wait a bit the name of the old domain is away from network neighborhood... Regards Sascha Am Montag, 31. Mai 2004 15:54 schrieb Keith Edmunds:> Samba V3, tdbsam backend. > > I've had to change the workgroup name in smb.conf on a Samba PDC (ie, I've > changed the domain name). However, the old domain name still shows up in > Windows PCs' "Microsoft Windows Network" (together with the new name, which > works just fine). I want to remove the old domain name, and I assume it is > still showing because it is still present in secrets.tdb. A "tdbdump > secrets.tdb" shows (actual domain names changed): > > key = "SECRETS/SID/OLDNAME" > data > [deleted] > > key = "SECRETS/SID/NEWNAME" > data > [deleted] > > So I tried to remove the old name with tdbtool: > > $ tdbtool secrets.tdb > tdb> delete SECRETS/SID/OLDNAME > delete failed > tdb> delete "SECRETS/SID/OLDNAME" > delete failed > tdb> > > Some questions: > > 1. Is the reason that the old domain name is showing because it is in > secrets.tdb? > 2. Is deleting it from secrets.tdb the right way to remove it? > 3. How do I delete it? > > Many thanks for any suggestions - > K.