[Samba] Best way to generate Unix UIDs and GIDs?

Yvan Masson yvan at masson-informatique.fr
Sun Jan 14 13:53:15 UTC 2018


Hi,

For a new samba domain, I need to create users and groups with Unix UIDs
and GIDs.

In the future, it is possible that there will be a trust with other
domains, so I need to take care that there won't be any UID/GID
conflict. Also, I assume that in the future Samba will be able to
restore deleted objects, so I need to avoid conflicts with those objects
as well.

This makes me think that a good way would be to generate UIDs/GUIDs from
SID. I know SSSD does it (apparently not ensuring consistency[1]), but I
could not find a script that does only this. However, I found this
python script[2] which seems to be what Centrify does.

What do you think about all of this?

Regards,
Yvan

1.
https://funinit.wordpress.com/2017/09/14/integrating-red-hat-with-active-directory/
2. https://gist.github.com/msmorul/11217186

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 874 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20180114/9276dfcd/signature.sig>


More information about the samba mailing list