Opened 16 years ago
Last modified 5 years ago
#5418 new enhancement
Preload Groups/User info from Postgres (or AcountManagerPlugin)
Reported by: | 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
comment:2 Changed 15 years ago by
Cc: | Ryan J Ollos added; anonymous removed |
---|
comment:3 Changed 15 years ago by
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
Status: | new → 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 15 years ago by
Summary: | Preload Groups/User info Postgres → Preload Groups/User info from Postgres (or AcountManagerPlugin) |
---|
comment:6 Changed 15 years ago by
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
Owner: | robert_martin deleted |
---|---|
Status: | assigned → new |
comment:8 Changed 5 years ago by
Cc: | Ryan J Ollos removed |
---|
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.