SubscribeMainXMLTagsEditHistoryDiscussion

Introduction

Web-htpasswd is a simple CGI program that allows users to modify their htpasswd passwords through a web interface.

You can see it at work here:

License

web-htpasswd is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

Installation

The installation procedure doesn't work yet as web-htpasswd still depends on some unreleased Chicken Eggs (which we're planning to release in a few days and then remove this note; this was written on May the 28th of 2006, lets see how long it takes).

Install eggs

You'll need to install the following Chicken eggs (extensions) for web-htpasswd to work:

$ chicken-setup srfi-40 stream-cgi html-stream stream-ext stream-htpasswd apr

Download the program

Obtain the latest release for web-htpasswd:

Build the program

$ tar xvfz web-htpasswd-1.0.tar.gz
$ cd web-htpasswd-1.0
$ make

You may now move the resulting web-htpasswd file somewhere else and erase the web-htpasswd-1.0 directory you used to build it. The rest of this document assumes your web-htpasswd file was installed in /usr/local/bin.

Create a script in your web tree

Create a script in your web tree that execs the program. Eg.:

#!/bin/sh
exec /usr/local/bin/web-htpasswd "FU htpasswd" "/etc/apache2/auth/dav_svn.passwd"

The first argument must be a printable string describing the resource for which people will be changing their passwords (another example would be "Foo Subversion Repository Accounts"). The second argument must be a full path to the htpasswd file.

You need to make sure that:

  1. The user this runs as can write to the directory your htpasswd file is on. For this you can use SuExec or Sudo (if you use Sudo, make sure the appropriate variables for CGI are preserved).
  2. Your web server recognizes your script as a CGI application and runs it on accesses.

Last update: 2007-01-10 (Rev 10075)

svnwiki $Rev: 14721 $