[Samba] unique index violation on objectSid on samba ad

Krutskikh Ivan stein.hak at gmail.com
Mon Oct 19 10:42:59 UTC 2015


Hi everyone,

I think, I've done something stupid here. At first I've created 2 lxc
containers and provisioned one as dc.office.mtt and joined second one to
the first ad bdc.tsnr.mtt. Then I've cloned those containers several times
and changed ip adresses and dns names of new containers to different
subnets. The name of domain stayed the same.

At first everything seemed fine, but when I tried to create a new
user/machine on dc.tsnr.mtt on cloned container I got

Failed to create user record CN=test1,CN=Users,DC=tsnr,DC=mtt:
../lib/ldb/ldb_tdb/ldb_index.c:1216: Failed to re-index objectSid in
CN=test1,CN=Users,DC=tsnr,DC=mtt - ../lib/ldb/ldb_tdb/ldb_index.c:1148:
unique index violation on objectSid in CN=test1,CN=Users,DC=tsnr,DC=mtt
Failed to add entry for user test1.

And the same issue goes for any user or computer name. No such trouble on
original dc or on any of the bdc's.
How can I fix this? Please help since the only option I see is to
re-provision every domain and re-join every computer to it, which is a lot
of pain.

Thanks in advance!


More information about the samba mailing list