Why create user on each DC.
Normally, if DC are correctly sync, you create user on one DC and after 1
minute, user is created on other DC.
regards
"samba" <samba-bounces at lists.samba.org> a écrit sur
07/10/2015 17:20:31 :
> De : Karel González Herrera <karel.gonzalez at etecsa.cu>
> A : samba at lists.samba.org,
> Date : 07/10/2015 16:23
> Objet : [Samba] samba-tool user add
> Envoyé par : "samba" <samba-bounces at lists.samba.org>
>
> 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
>
> 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:~#
>
> this is may smb.conf
>
> root at nbn-2:~# cat /etc/samba/smb.conf
> [global]
> workgroup = dtnorte
> realm = DTNORTE.ETECSA.CU
> netbios name = nbn-2
> server string = Zentyal Server
> server role = dc
> server role check:inhibit = yes
> server services = -dns
> server signing = auto
> dsdb:schema update allowed = yes
> drs:max object sync = 1200
>
> idmap_ldb:use rfc2307 = yes
>
> interfaces = lo,eth0
> bind interfaces only = yes
>
> log level = 3
> log file = /var/log/samba/samba.log
> max log size = 100000
>
>
>
> include = /etc/samba/shares.conf
>
>
>
>
> [netlogon]
> path = /var/lib/samba/sysvol/dtnorte.etecsa.cu/scripts
> browseable = no
> read only = yes
>
> [sysvol]
> path = /var/lib/samba/sysvol
> read only = no
>
> root at nbn-2:~#
>
>
>
>
>
>
>
>
> --
> Ing. Karel González Herrera
> Administrador de Red
> Etecsa: Dirección Territorial Norte
> e-mail: karel.gonzalez at etecsa.cu
> Tel: 8344973 8607483
> Mov: 52182690
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba