[Samba] trying to set trust throws error

itdept_head itdept_head at grown-up.com
Thu Feb 9 09:20:35 UTC 2023


Very probably, when you 'rename' something, you just rename the names 
(and then not all of them), so your newly renamed domain will probably 
have the same domain SID as the old one.


Rowland


Ok so why does this not work... Or any combination .

net getdomainsid
SID for domain ORG is: S-1-5-21-1054434277-4207674981-198073344
rm -rf /usr/local/samba/private/secrets.tdb

net setdomainsid S-1-5-21-1154434277-4207674981-198173344
net setlocalsid S-1-5-21-1154434277-4207674981-198173344

net getdomainsid
SID for domain ORG is: S-1-5-21-1054434277-4207674981-198073344


tdbdump  /usr/local/samba/private/secrets.tdb
{
key(16) = "SECRETS/SID/DC01"
data(68) = "\01\04\00\00\00\00\00\05\15\00\00\00\E5D\CFDe\06\CC\FA\A0\E2\CF\0B\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
}
{
key(15) = "SECRETS/SID/ORG"
data(68) = "\01\04\00\00\00\00\00\05\15\00\00\00\E5D\CFDe\06\CC\FA\A0\E2\CF\0B\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
}


Thanks



More information about the samba mailing list