Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3123 closed enhancement (wontfix)

A big enhancement for group lookup's

Reported by: Bas van der Vlies Owned by: Noah Kantrowitz
Priority: high Component: UnixGroupsPlugin
Severity: major Keywords:
Cc: Trac Release: 0.10

Description

First is the plugin still maintained?

I have just installed this plugin for trac version 0,10 and 0.11. I have the same problem as ticket #1818. We have a central LDAP database with a lot of groups (+/- 4000). The plugin wil fetch all the groups and check if the user is a member of this group. This causes a lot ldap lookups.

I have done some optimization for this plugin. First we get the the permission list with:

        permsys = PermissionSystem(self.ENV)
        perm_list = permsys.get_all_permissions()

And check if we have unix group and the username is a member of it. This reduce the ldap lookups. If you are interested i can attach the rewrite

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by Bas van der Vlies

Just a question is this plugin still maintained or is it replaced by other one or should i release a new version? Hope to receive an answer ;-)

comment:2 Changed 9 years ago by Noah Kantrowitz

Resolution: wontfix
Status: newclosed

If you are using LDAP, use the LdapPlugin. This is deisnged to be as simple as possible.

comment:3 Changed 9 years ago by anonymous

This can still be useful for sites that use NIS. This patch is only an enhancement also for other users. If i read your reply your are not interested in it and only use the LDAP setup for apache. So i will maintain the plugin

comment:4 Changed 9 years ago by Noah Kantrowitz

I don't use LDAP at all. There won't really be much difference for NIS, since I expect it would have exploded long ago if you tried to use that many groups with it. I just use the transfer /etc/passwd+groups memberships into Trac.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.