Tags:
create new tag
, view all tags
Question

How does a user or administrator change TWiki passwords?

They should be changed periodically, or (as I'm currently experiencing) a user may forget the password.

  • TWiki version: 1.11
  • Web server: Apache 1.3.x
  • Server OS: Solaris

-- RalphBroom - 17 Jan 2001

Answer This is a problem that anybody will have sooner or later when running Twiki. After I received several calls for password reset (which meant running through the entire procedure of deleting a line in .htpasswd, deleting the users Main. topic and asking the user to register again ... ) I wrote my own ResetPassword and ChangePassword extension to Twiki. Even if I am very sure that somebody else already did that job I'd like to give you my solution.

It consists of

twiki/bin/passwd perl script to deal with change and reset of password
twiki/data/Main/ChangePassword.txt the topic in Main web for change password
twiki/data/MainResetPassword.txt the topic in Main web for reset password
twiki/templates/oopsnotwikiuser.tmpl a oops form telling the user that he mistyped(?) his name
twiki/templates/oopswrongpassword.tmpl a form telling the user that he mistyped his ol password
twiki/templates/oopschangepasswd.tmpl a form telling the user that change of password succeeded
twiki/templates/oopsresetpasswd.tmpl a form telling the user how to proceed to get his password reset

You can find those files attached.

Note: This was my very first perl experience - I did it more or less using cut & paste from the original Twiki scripts - and it was my first CGI as well - so any enhancements are welcome - please let me know ...

-- KlausWriessnegger - 22 Jan 2001

Thanks Klaus for the contribution. I copied this topic over to the Codev web at ChangingTWikiPasswords. It will go into the TWiki core with some modifications.

-- PeterThoeny - 10 Feb 2001

Topic attachments
I Attachment Action Size Date Who Comment
Texttxt ChangePassword.txt manage 1.4 K 2001-01-22 - 19:55 UnknownUser the topic in Main web for change password
Texttxt ResetPassword.txt manage 1.2 K 2001-01-22 - 19:56 UnknownUser the topic in Main web for reset password
Unknown file formattmpl oopschangepasswd.tmpl manage 0.8 K 2001-01-22 - 19:58 UnknownUser change of password succeeded
Unknown file formattmpl oopsnotwikiuser.tmpl manage 1.0 K 2001-01-22 - 19:58 UnknownUser a oops form telling the user that he mistyped(?)
Unknown file formattmpl oopsresetpasswd.tmpl manage 0.9 K 2001-01-22 - 19:59 UnknownUser how to proceed to get password reset
Unknown file formattmpl oopswrongpassword.tmpl manage 1.0 K 2001-01-22 - 19:59 UnknownUser the user mistyped his old pasword
Unknown file formatEXT passwd manage 6.1 K 2001-01-22 - 19:54 UnknownUser perl script to change and reset password
Topic revision: r4 - 2001-02-19 - KlausWriessnegger
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.