Modify

Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#3123 closed enhancement (wontfix)

A big enhancement for group lookup's

Reported by: basv@… Owned by: coderanger
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 6 years ago by basv@…

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 6 years ago by coderanger

  • Resolution set to wontfix
  • Status changed from new to closed

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

comment:3 Changed 6 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 6 years ago by coderanger

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.

Add Comment

Modify Ticket

Action
as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.