[Samba] Static Winbind SID to uid & gid mapping

Matthew Ridley m.ridley at acfr.usyd.edu.au
Thu Feb 27 04:35:47 GMT 2003


Hi,

Winbind currently allocates uid & gid's on a first found first allocated 
basis. When new users get added the get tacked on the end seqentially etc

Forgive me if I'm wrong but couldn't the the last set of digits in the SID 
be used to generate the unix uid's and gid's

For example two users on the same domain have SID's like:

S-1-6-24-123456789-0123456789-9876543210-3616
and
S-1-6-24-123456789-0123456789-9876543210-3624

An algorithm like:

uid=base_uid+last_digits_of_SID;

where base_uid=10000 etc.

This is how the mkpasswd/mkgroup utility that comes with cygwin works.

This would mean that the mappings would remain constant for all winbind 
gremlins in the network.

Has anyone made a patch for such an arrangement ?

I'd be interested to hear.

Matt.


More information about the samba mailing list