r5 - 27 Jun 2005 - 02:27:40 - WillNorrisYou are here: TWiki >  Plugins Web > AddDBMGroupPluginDev
Tags:
, create new tag

AddDBMGroupPluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on AddDBMGroupPlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Development discussion for AddDBMGroupPlugin

This plugin was created for a TWiki that shares an authentication database with the rest of a restricted system. Users should be able to view content using their normal username and password combination, but they need to be registered wiki users in order to edit content. This plugin allows the registration system to add them to a group when they register. This enables Apache access controls like (in bin/.htaccess):

AuthDBUserFile /var/www/twiki/data/user.db
AuthDBGroupFile /var/www/twiki/data/group.db
AuthName 'Private Wiki'
AuthType Basic

# In general, require that the user be a registered Wiki user to access
# programs that we don't explicitly let everyone use.
Require group WikiUsers

<Files "oops">
       # This must not be set to 'group WikiUsers', or the authentication
       # error message can't be displayed.
       Require valid-user
</Files>

<Files "register">
       # This must not be set to 'group WikiUsers', or no registration is
       # possible!
       Require valid-user
</Files>

<Files "view">
       require valid-user
</Files>

So it's only necessary to have a valid ID and password to view, register, or oops. Otherwise, you must be in the "WikiUsers" group, which is accomplished by this plugin.

-- CloyceSpradling - 03 Jan 2005

Thanks for contributing this Plugin.

-- PeterThoeny - 02 Jan 2005

This would be nice if ...

I run a Twiki that has a registration form where the users can 'tick off' various fields. I'd really like to be able to "automatically" have them added to the appropriate groups based upon those settings. Right now the degree of custom hacking to CGI script as each category is added, and te "special conditions" is annoying. Having it table driven would be nice. Really nice. But the formula I need may be a bit beyond what this offers.

-- AntonAylward - 03 Jan 2005

It definitely currently is far beyond the current scope. It'd be impossible for a plugin now (for the stable versions), because the registration handler really doesn't get much information at all. Certainly none of the form content (except, of course, the WikiName).

Or were you talking about adding people to Wiki groups?

-- CloyceSpradling - 03 Jan 2005

added .zip to CVS

-- WillNorris - 27 Jun 2005

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo