[Samba] Samba3 sambaSID calculation from 32-bit uidNumber?

Rowland penny rpenny at samba.org
Fri Mar 12 15:33:36 UTC 2021


On 12/03/2021 15:02, Harald Hannelius via samba wrote:
>
>
> Does anyone know how the sambaSID suffix is calculated when the 
> uidNumber is a 32-bit integer?
>
> The formula was $uidNumber * 2 + 1000
>
> When checking our current users, my uid 5xx checks out correct, but 
> the ones that are larger than 65536 don't seem to follow that 
> calculation.
>
> Thanks,
>
>   a dinosaur
>

Sheesh, that is old 😁

It was actually '1000 + ($UnixID * 2)' and the result (RID) was appended 
to the end of the Samba created SID. As the largest Unix ID is 65536 
(unless you have changed it), I cannot see how you can have a RID 
greater than 132072.

Rowland





More information about the samba mailing list