Harald Hannelius
2021-Mar-12 15:02 UTC
[Samba] Samba3 sambaSID calculation from 32-bit uidNumber?
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 -- Harald Hannelius | harald.hannelius/a\arcada.fi | +358 50 594 1020
Rowland penny
2021-Mar-12 15:33 UTC
[Samba] Samba3 sambaSID calculation from 32-bit uidNumber?
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