Repository navigation
|
Currently running 3.1.9 and I am unsure of exactly when the problem started, but it does appear specific to the RH family. On Ubuntu, logging in as an Entra user I can use the groups command to see the Entra groups that were pulled down. Sudoers doesn't recognize those, so I use the logon script function to map those to a local group. This gives me the benefit of being able to re-evaluate groups on a JIT basis for every login, and federate changes down from Entra appropriately. Ubuntu shows groups on 3.1.6 just fine. I went and synced repo and pushed the update down to client and updated to 3.1.9 to test and they still show correctly. Redhat/Rocky/Alma however do not. The groups command returns only the user's primary group. I am not sure if this is by design, if there is a config option that I'm missing, or what the issue is. Config is identical for Ubuntu 24 and my Rocky 9 test system other than the few bits that Ubuntu requires. When I turn on debug and read through the whole login process, I see a section that looks like it's pulling down the group objects, and it shows up in both systems. Regardless, Rocky does not show the groups. Not sure if this is a bug, intended feature, or if I just missed a memo in a patch note or something. Any insight would be greatly appreciated. |
Replies: 3 comments 6 replies
This is because we don't publish the group name via NSS. You have to use the Object ID of the group in sudoers entries. |
This sounds like a bug to me. It could have something to do with us refusing to respond to nss by group name (it does confuse some processes). |
|
One last thought. It could simply be that nss is configured incorrectly. What does the /etc/nsswitch.conf look like? Maybe it's simply an ordering issue, or the authselect profile is missing the group entry? |
Hrm. Could you open a bug report on this? I'll look into it.