We've got two Ubuntu 22.04 servers that use Kerberos and SSSD to authenticate users against an AD server. This works great.
The servers also have a GlusterFS volume that holds the user's home directories. In principal, this works great also. Unless a user is member of more than 90 groups. Then GlusterFS has all sorts of problems: https://docs.gluster.org/en/main/Administrator-Guide/Handling-of-users-with-many-groups/
I've used the workarounds that are available but at the expense of a lot of performance. (the glusterfsd and glusterfs processes use about 1 & 3/4 cores during high activity compared to 80% of one core without the workarounds)
My question is: is there a way to filter the groups that the system receives from AD such that when I run 'id USERID' I'll only see zero or more groups that I've specified in a filter or list? There are only three groups I use for SSH authorization. Most users have 100+ groups(It's a university AD server that I don't have control over).