create new tag
, view all tags

Install Password Add-On

  • ALERT! This add-on works only with DakarRelease recent Betas (or better, SVN versions). It is an attempt to solve Item973 in Dakar's Bugs web and is probably useless for most TWiki installations. In contrast to Cairo's InstallPassword, the new InstallPassword form is usable by everyone but it doesn't immediately install the password - it just initiates approval by the TWiki administration.

This add-on allows TWiki users who have forgotten their password and who do not have a valid e-mail address in their personal home topic to ask the TWiki administration to install a new one. The TWiki administration is seeing the password in encrypted form only, so there is no need for the user to change it immediately after the installation.

The add-on is intended for TWikis with a very large number of registered users who write rarely, so that outdated mail addresses and forgotten passwords create too much work for the administrator. http://twiki.org/ seems to be a well known example for this type of TWiki.

The add-on works only for password managements which respect $TWiki::cfg{Htpasswd}{Encoding} and support the value 'plain'. $TWiki::cfg{PasswordManager} = 'TWiki::Users::HtPasswdUser' is ok, but neither TWiki::Users::ApacheHtPasswdUser nor any more sophisticated password management (LDAP etc) will work.


  • A user fills the form at TWiki.InstallPassword and submits it. The form has the following field:
    • The User's login name
    • The password to be installed
      • A second text field for a confirmation of this password
    • The user's mail address
    • A comment field which allows the user to prove that he is the owner of the login name, enter a phone number for callback, or whatever seems appropriate.
  • If the configuration variable $TWiki::cfg{Register}{NeedVerification} is set, the user must confirm the password installation by submitting another form with a key parameter he gets sent to his email address.
  • The TWiki administrator (as defined in this plugin's settings) receives a mail containing a link which enables him to install the password, after having convinced himself that the request is justified. The password in this mail is encrypted according to TWiki's rules.

Add-On Installation Instructions

Note: You do not need to install anything on the browser to use this add-on. The following instructions are for the administrator who installs the add-on on the server where TWiki is running.

  • Download the ZIP file from the Add-on Home (see below)
  • Unzip InstallPasswordAddOn.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/InstallPasswordAddOn.txt Add-on topic
    data/TWiki/InstallPasswordAddOn.txt,v Add-on topic repository
    data/TWiki/InstallPassword.txt User form to request password installation
    data/TWiki/InstallPassword.txt,v User form repository
    bin/installpassword Add-on script
    lib/TWiki/UI/InstallPassword.pm Support module containing most of the code
    templates/mailinstallpasswordapprove.tmpl Template for mail to admin to inform about user's request
    templates/mailinstallpassworddone.tmpl Template for mail to user to inform about the success
    templates/mailinstallpasswordapprove.tmpl Template for mail to user containing verification code
    templates/oopsinstallpasswordapprove.tmpl Template to ask the user to wait for approval
    templates/oopsinstallpassworddone.tmpl Template to inform the admin about success or failure
    templates/oopsinstallpasswordverify.tmpl Template to read user's verification code

  • Test if the installation was successful: The valiant can simply install his own password for his own login name, but a cautious user would create a test object:
    1. Register a dummy user with Wikiname e.g. InstallPasswordUser.
    2. Visit InstallPassword and fill in the fields. You can supply your own e-mail address for this test. Submit, and have a look at the form you get as a response.
    3. If $TWiki::cfg{Register}{NeedVerification} has a true value, you will receive a mail asking for confirmation. Visit the link given, or enter the verification code to the form from the previous step.
    4. The adminstrator will now receive a mail informing about InstallPasswordUser's request to install a new password. The mail contains a link he can simply click on.
      • The mail contains a warning that the administrator has to validate somehow that the person making the request is the valid InstallPasswordUser.
    5. On successful operation, the user receives a mail which informs about the successful installation.
  • Note that there's no hint in ChangePassword or ResetPassword whether this addon has been installed. You might want to drop a note in your TWiki if you have this addon installed.

Add-On Info

  • Set SHORTDESCRIPTION = Allows TWiki users to ask the TWiki administration to install a new password

Add-on Author: TWiki:Main/HaraldJoerg
Add-on Version: 14 Dec 2005 (v1.000)
Change History:  
01 Dec 2005: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
License: GPL
Add-on Home: http://TWiki.org/cgi-bin/view/Plugins/InstallPasswordAddOn
Feedback: http://TWiki.org/cgi-bin/view/Plugins/InstallPasswordAddOnDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/InstallPasswordAddOnAppraisal

Related Topic: TWikiAddOns

-- TWiki:Main/HaraldJoerg - 14 Dec 2005

Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivezip InstallPasswordAddOn.zip r1 manage 15.3 K 2005-12-14 - 01:13 HaraldJoerg First release of the addon
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2009-12-16 - PeterThoeny
  • 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.