create new tag
, view all tags

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 "register">
       # This must not be set to 'group WikiUsers', or no registration is
       # possible!
       Require valid-user

<Files "view">
       require valid-user

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 | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-06-27 - WillNorris
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.