home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / httpd_source_1.3.tar.Z / httpd_source_1.3.tar / httpd_1.3 / support / change-passwd.readme next >
Text File  |  1994-01-22  |  3KB  |  90 lines

  1. Subject: The form for change-passwd
  2. Newsgroups: comp.infosystems.www
  3. Organization: NCSA
  4. Summary: 
  5. Keywords: 
  6.  
  7.  
  8. I've gotten a number of requests for the form that corresponds to the
  9. change-passwd program that accidentally found itself in the NCSA httpd 1.0
  10. distribution.
  11.  
  12. A brief introduction: change-passwd is a way for remote users to change
  13. their password for user authentication on your system without going through
  14. you. 
  15.  
  16. To use this form, you must set up user authentication on your system
  17. (there's a short tutorial at
  18. http://wintermute.ncsa.uiuc.edu:8080/auth-tutorial/tutorial.html). You will
  19. want to leave the form unprotected, and the script protected with ``require
  20. valid-user'' so that any valid user may log in.
  21.  
  22. Compile change-passwd with USER_FILE set to the location of the
  23. AuthUserFile, and WIZARD set to the user id you would like to use to perform
  24. administration (as the wizard, you can change other people's passwords, and
  25. add new users).
  26.  
  27. To install the script, place the executable somewhere on your system,
  28. preferably not in DocumentRoot and not in cgi-bin. Let's say you put it in
  29. /foo/bar/change-passwd. Add a line to srm.conf which says:
  30.  
  31. ScriptAlias /change-passwd /foo/bar/change-passwd
  32.  
  33. A common setup would be to have the following as /foo/bar/.htaccess:
  34.  
  35. AuthType Basic
  36. AuthName PasswordAdmin
  37. AuthUserFile /usr/local/httpd/conf/.htpasswd
  38.  
  39. <Limit POST>
  40. require valid-user
  41. </Limit>
  42.  
  43.  
  44. At this point, you should try the form. If the change-passwd script core
  45. dumps, or Mosaic does not prompt you for a user name or password after you
  46. click on the submit button, you have not set up user authenitcation properly.
  47.  
  48.  
  49. --
  50. Rob McCool, robm@ncsa.uiuc.edu
  51. Software Development Group, National Center for Supercomputing Applications
  52. It was working ten minutes ago, I swear...
  53. <A HREF="http://hoohoo.ncsa.uiuc.edu/~robm/sg.html">A must see.</A>
  54.  
  55.  
  56. Here's the form:
  57.  
  58.  
  59. <TITLE>Change your password</TITLE>
  60. <H1>Change your password</H1>
  61.  
  62. <FORM ACTION="/change-passwd" METHOD="POST">
  63.  
  64. This is an HTML form used to change your password for HTTP user
  65. authentication on this system. <P>
  66. <HR>
  67. To use this form, you must know your user name on this system, and you must
  68. know your current password. <P>
  69.  
  70. First, enter your user name below. If you are defined to be the wizard on
  71. this server, and wish to change or add a user, enter their name below. <P>
  72.  
  73. User name: <P><INPUT TYPE="text" NAME="user"><P> 
  74.  
  75. Now, enter what you want to change your password to. <P>
  76.  
  77. New password: <P><INPUT
  78. TYPE="password" NAME="newpasswd1"><P> Re-type new password: <P><INPUT
  79. TYPE="password" NAME="newpasswd2"><P>
  80.  
  81. When you click on the Change password button below, you will be asked to
  82. authenticate yourself. If you are changing your own password, use your user
  83. id and your <EM>old</EM> password to log on. If you are the wizard on this
  84. server, use your own user id and password to log in.<P>
  85.  
  86. <INPUT TYPE="submit" VALUE="Change password"><P>
  87. <INPUT TYPE="reset" VALUE="Reset these fields"><P>
  88. </FORM>
  89.  
  90.