How sssd maps SID to UID/GID – analysis of sssd code
funinit.wordpress.com