Pedro Silva wrote:
smbpasswd -a $user $pass
ldapsam_add_sam_account: SID 'S-1-5-21-3317586490-762025270-1437560638-12520' already in the base, with samba attributes
Failed to add entry for user $user.
Failed to modify password entry for user $user

My guess is that your "add user script" generates 2-nd UNIX user with the same uid=5760.


If you have "add user script" Samba will calculate RID (the value after the last '-' in the SID) as: "(uid*2) + rid_offset". This rid_offset can be changed with "algorithmic rid base" smb.conf parameter but is usually left as 1000. The first part of the SID is the SID of your Domain.

Hope it helps,
Igor

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to