Ticket #1818 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Fix for problems with multiple unix groups

Reported by: techcon1@evergreen.edu Assigned to: coderanger
Priority: normal Component: UnixGroupsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

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

unixgroups-new.py (0.8 kB) - added by techcon1@evergreen.edu on 07/18/07 21:33:08.
Rewritten to use id and only return secondary groups

Change History

07/18/07 21:33:08 changed by techcon1@evergreen.edu

  • attachment unixgroups-new.py added.

Rewritten to use id and only return secondary groups

07/18/07 21:35:24 changed by techcon1@evergreen.edu

This person's problem was the same as mine: http://trac-hacks.org/ticket/717


Add/Change #1818 (Fix for problems with multiple unix groups)




Change Properties
Action