On 22/05/2020 12:59, Alex wrote> I apologies, I mistyped the value in grep. This one does find the record in > Samba: > # ldbsearch --cross-ncs --show-binary -H /usr/local/samba/private/sam.ldb -b 'CN=Users,DC=domain,DC=com' -s sub '(objectClass=group)' 2>&1 | grep videdom > dn: CN=videdom,CN=Users,DC=domain,DC=com > ...Try changing the search base to 'CN=Deleted Objects,DC=domain,DC=com' and see if the record exists there as well. Rowland
> On 22/05/2020 12:59, Alex wrote >> I apologies, I mistyped the value in grep. This one does find the record in >> Samba: >> # ldbsearch --cross-ncs --show-binary -H /usr/local/samba/private/sam.ldb -b 'CN=Users,DC=domain,DC=com' -s sub '(objectClass=group)' 2>&1 | grep videdom >> dn: CN=videdom,CN=Users,DC=domain,DC=com >> ...> Try changing the search base to 'CN=Deleted Objects,DC=domain,DC=com' > and see if the record exists there as well.Yeah, I've already tried that: # ldbsearch --cross-ncs --show-binary --show-deleted -H /usr/local/samba/private/sam.ldb -b 'CN=Deleted Objects,DC=domain,DC=com' -s sub '(objectClass=group)' | wc -l 496 # ldbsearch --cross-ncs --show-binary --show-deleted -H /usr/local/samba/private/sam.ldb -b 'CN=Deleted Objects,DC=domain,DC=com' -s sub '(objectClass=group)' | grep vided | wc -l 0 Also tried to restart samba - didn't help, errors still present in the log. -- Best regards, Alex
On 22/05/2020 13:18, Alex wrote:>> On 22/05/2020 12:59, Alex wrote >>> I apologies, I mistyped the value in grep. This one does find the record in >>> Samba: >>> # ldbsearch --cross-ncs --show-binary -H /usr/local/samba/private/sam.ldb -b 'CN=Users,DC=domain,DC=com' -s sub '(objectClass=group)' 2>&1 | grep videdom >>> dn: CN=videdom,CN=Users,DC=domain,DC=com >>> ... >> Try changing the search base to 'CN=Deleted Objects,DC=domain,DC=com' >> and see if the record exists there as well. > Yeah, I've already tried that: > # ldbsearch --cross-ncs --show-binary --show-deleted -H > /usr/local/samba/private/sam.ldb -b 'CN=Deleted Objects,DC=domain,DC=com' -s sub '(objectClass=group)' | wc -l > 496 > > # ldbsearch --cross-ncs --show-binary --show-deleted -H > /usr/local/samba/private/sam.ldb -b 'CN=Deleted Objects,DC=domain,DC=com' -s sub '(objectClass=group)' | grep vided | wc -l > 0 > > Also tried to restart samba - didn't help, errors still present in the log. >That is weird, the deleted object doesn't seem to exist, but replication thinks it does. Wanders off, shaking head and thinking ;-) Rowland