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