Opened 10 years ago

Last modified 23 months ago

#1818 new enhancement

Fix for problems with multiple unix groups

Reported by: techcon1@… Owned by:
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@… 10 years ago.
Rewritten to use id and only return secondary groups

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by techcon1@…

Attachment: added

Rewritten to use id and only return secondary groups

comment:1 Changed 10 years ago by techcon1@…

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

comment:2 Changed 4 years ago by Ryan J Ollos

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

This plugin is in need of a maintainer.

comment:3 Changed 23 months ago by Ryan J Ollos

Owner: Noah Kantrowitz deleted

Modify Ticket

as new The ticket will remain with no owner.

Add Comment

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

Note: See TracTickets for help on using tickets.