in my environment of over 150 workstations, explicitly adding each user to the sudoers group on their workstation and on all public machines, or essentially doing the same in the sudoers.xml file was impractical.
I restructured the FindUserNode code and moved some functionality into the DirectoryFinder class to allow using nested local and domain groups. I am attaching the 2 .cs files I modified.
The code is likely not elegant, and speed depends very much on how deep the group searching has to go, but in my setup, its an additional about 2 second delay per command launch. The code is not elegant,
Could get really painful with multiple groups defined to have different command sets as each set of groups has to be walked through.
Modified source fils for nested group searching