[Samba] Re: Problem adding users with smbpasswd
Igor Belyi
sambauser at katehok.ac93.org
Tue Sep 21 15:36:58 GMT 2004
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
More information about the samba
mailing list