Opened 8 years ago

Last modified 22 months ago

#1818 new enhancement

Fix for problems with multiple unix groups

Reported by: techcon1@… Owned by: coderanger
Priority: normal Component: UnixGroupsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


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…

Attachments (1) (838 bytes) - added by techcon1@… 8 years ago.
Rewritten to use id and only return secondary groups

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by techcon1@…

Rewritten to use id and only return secondary groups

comment:1 Changed 8 years ago by techcon1@…

This person's problem was the same as mine: #717.

comment:2 Changed 22 months ago by rjollos

#717 closed as a duplicate. This ticket has been left open since it has a patch.

This plugin is in need of a maintainer.

Add Comment

Modify Ticket

as new The owner will remain coderanger.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.