NCSA HTTPd change-passwd
I've gotten a number of requests for the form that corresponds to the
change-passwd program that accidentally found itself in the NCSA httpd 1.0
distribution.
A brief introduction: change-passwd is a way for remote users to change
their password for user authentication on your system without going through
you.
To use this form, you must set up user authentication on your system
(there's a short tutorial at
http://hoohoo.ncsa.uiuc.edu/docs/tutorial/user.html). You will
want to leave the form unprotected, and the script protected with ``require
valid-user'' so that any valid user may log in.
Compile change-passwd with USER_FILE set to the location of the
AuthUserFile, and WIZARD set to the user id you would like to use to perform
administration (as the wizard, you can change other people's passwords, and
add new users).
To install the script, place the executable somewhere on your system,
preferably not in DocumentRoot and not in cgi-bin. Let's say you put it in
/foo/bar/change-passwd. Add a line to srm.conf which says:
ScriptAlias /change-passwd /foo/bar/change-passwd
A common setup would be to have the following as /foo/bar/.htaccess:
AuthType Basic
AuthName PasswordAdmin
AuthUserFile /usr/local/httpd/conf/.htpasswd