Modify

Opened 16 years ago

Last modified 5 years ago

#5418 new enhancement

Preload Groups/User info from Postgres (or AcountManagerPlugin)

Reported by: peterghamilton+trachacks@… Owned by:
Priority: normal Component: FineGrainedPageAuthzEditorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Currently, the plugin is set up to use files to populate the groups and user fields of the plugin. Populating from a postgres database (or other db types) would be a lot more useful.

Attachments (0)

Change History (8)

comment:1 Changed 15 years ago by robert_martin

It's designed to be simple and to work with the normal files. If you wish to provide an enhancement to work with SQL databases it maybe best done as a separate plugin.

What maybe a reasonable enhancement is for it to also with the other password stores such as used in http://trac-hacks.org/wiki/AccountManagerPlugin.

I don't have the time to do this currently. If there are sufficient requests I may try to find time, but if anyone else would like to contribute, please do.

comment:2 Changed 15 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; anonymous removed

comment:3 Changed 15 years ago by Ryan J Ollos

I could really benefit from the ability to pull users and groups from the AccountManagerPlugin. My Trac instance is hosted, and I believe that AccountManagerPlugin is used as the database for all users and groups. Unfortunately I think this project is a bit over my head, otherwise I would offer to contribute.

comment:4 Changed 15 years ago by robert_martin

Status: newassigned

The account manager plugin as far as I know is a plugin to help manage accounts. We use it as a frontend. There is an object account_manager created in the init function with a method called get_users that I've used to get the users. It's created from the AccountManager class. I think there could be an equivalent method for the groups, as Trac will have to hold the information from whatever source it's read it in from. I'll have to investigate, but it maybe a couple of days. This would make it more generic.

comment:5 Changed 15 years ago by Ryan J Ollos

Summary: Preload Groups/User info PostgresPreload Groups/User info from Postgres (or AcountManagerPlugin)

comment:6 Changed 15 years ago by robert_martin

Update - I need to understand the API better to identify the most appropriate places to obtain the info. This may take sometime due to other commitments.

comment:7 Changed 10 years ago by Ryan J Ollos

Owner: robert_martin deleted
Status: assignednew

comment:8 Changed 5 years ago by Ryan J Ollos

Cc: Ryan J Ollos removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.