Modify

Opened 5 years ago

Last modified 5 years ago

#5418 assigned enhancement

Preload Groups/User info from Postgres (or AcountManagerPlugin)

Reported by: peterghamilton+trachacks@… Owned by: robert_martin
Priority: normal Component: FineGrainedPageAuthzEditorPlugin
Severity: normal Keywords:
Cc: rjollos 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 (6)

comment:1 Changed 5 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 5 years ago by rjollos

  • Cc rjollos added

comment:3 Changed 5 years ago by rjollos

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 5 years ago by robert_martin

  • Status changed from new to assigned

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 5 years ago by rjollos

  • Summary changed from Preload Groups/User info Postgres to Preload Groups/User info from Postgres (or AcountManagerPlugin)

comment:6 Changed 5 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.

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.