[Samba] samba-tool user add

Karel González Herrera karel.gonzalez at etecsa.cu
Wed Oct 7 15:20:31 UTC 2015


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




More information about the samba mailing list