I have a system for which SSS is configured to use LDAP. A user will appear on my system as, say
# id abc
uid=1234(abc) gid=1010(default) groups=20001(red),20002(blue)
If I can determine through some mechanism, that the person should have red as primary group on my system, how can I then have gid set automatically when the person logs in?