[Samba] Re: Upgrade from 2.2.8 to 3; users lack SIDs

Igor Belyi sambauser at katehok.ac93.org
Fri Oct 8 02:15:36 GMT 2004


Chris St. Pierre wrote:
> Is there any way to algorithmically convert a unix uid to an sid?  I'd
> like to just run a script through all of my users to grab the uid,
> convert to an rid, prepend my system sid, and write it to the sambaSID
> attribute.

User's RID = Base RID + 2 * UID
Group's RID = Base RID + 2 * GID + 1

By default 'Base RID' is 1000, but can be defined in sambaDomain entry 
as sambaAlgorithmicRidBase field or in smb.conf as "algorithmic rid 
base" parameter.

Hope it helps,
Igor



More information about the samba mailing list