Fix for problems with multiple unix groups
|Reported by:||Owned by:|
UnixGroupsPlugin as it is currently written is both extremely slow and non-functional on a server that is bound to a large domain. On my domain-bound Xserve, getgrall() from the grp library in python takes 6 seconds to complete and returns a 500kb list. On top of that, the list comparison to check which other groups the user is a member of fails to return anything.
I rewrote it to use subprocess (python2.4 and up) to run id, and use regular expressions to parse out the group names. I'll attach my version…