nsncd
nsncd copied to clipboard
INITGROUPS fails on GIDs > 2147483647
Originally reported in a fork.
User max
is member of a group with GID 2709991565.
Running id max
, nsncd
(unstable-2022-11-14 from nixpkgs 96f8f4a038a190f7511da79ef7e77bec5e4b811a
) returns:
uid=646000001(max) gid=646000001(max) groups=646000001
nscd
returns:
uid=646000001(max) gid=646000001(max) groups=646000001(max),2709991565(infra_admins)
Log for nsncd
shows this error message:
Jun 11 00:00:39.334 ERRO error handling request, err: out of range integral type conversion attempted, request_type: INITGROUPS, thread: worker_5
Users with GIDs <= 2147483647 get their groups listed correctly, so I'm guessing this is a signed vs. unsigned issue.