Dave,

In your htaccess file, I would imagine that you are pointing to a password
file via the AuthUserFile directive so as long as you have permissions to
edit that file, use the perl function crypt() to generate the password and
then just append it to the password file.  Just remember to have the user
enter the password 2 times for error checking and make sure you parse the
password file to check and see if the username is already in it. I have
this script already written somewhere, If you need it, let me know and I
will send it to you privately.

Also...This question would probaby be best served by an apache or cgi
list, not this one.

Bill

===========================================
Bill Desjardins    http://www.carracing.com
[EMAIL PROTECTED]        Tel: 305.205.8644
FREE Homepages for Racers and Race Tracks!!

On Thu, 9 Dec 1999, dave_dunstan wrote:

> Here's my question - since I can't use an Auth module and a database, can I
> write up a widget that will write .htaccess and .htpasswd files ...?  I'm
> thinking I can call htpasswd from perl, but I'm not sure how I'd have perl
> "confirm" the new password at the confirmation prompt from htpasswd.
> 
> Any help would be much appreciated!
> Is this just a cracked idea altogether?
> 
> Happy Holidays!
> 
> Dave Dunstan
> Mission Control Consulting LLC
> 301 8th Street, Suite 215
> San Francisco CA 94103
> ph 415.701.0088
> fx 415.241.0807
> 

Reply via email to