[Samba] samba-tool user add
Andrew Bartlett
abartlet at samba.org
Wed Oct 7 18:02:01 UTC 2015
On Wed, 2015-10-07 at 10:20 -0500, Karel González Herrera wrote:
> I have 4 DC in samba I can not create users in two of them gives me
> the
> following error
> Please any idea
> Karel slds
You have somehow forced a user to be added with a particular SID, and
then when we allocate a new user, we are trying to use the same SID.
That will fail. How was this domain created?
> root at nbn-2:~# samba-tool user add pepito
> New Password:
> Retype Password:
> params.c:pm_process() - Processing configuration file
> "/etc/samba/shares.conf"
> ERROR(ldb): Failed to add user 'pepito': -
> ../ldb_tdb/ldb_index.c:1216:
> Failed to re-index objectSid in
> CN=pepito,CN=Users,DC=dtnorte,DC=etecsa,DC=cu -
> ../ldb_tdb/ldb_index.c:1148: unique index violation on objectSid in
> CN=pepito,CN=Users,DC=dtnorte,DC=etecsa,DC=c
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/user.py", line
> 176, in run
> uid=uid, uidnumber=uid_number, gidnumber=gid_number,
> gecos=gecos,
> loginshell=login_shell)
> File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 422,
> in
> newuser
> self.add(ldbmessage)
> root at nbn-2:~#
Thanks,
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba
mailing list