You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Shuba Simha <ss...@earthweb.com> on 2000/08/14 18:16:17 UTC
Adding an entry into .htpasswd
Can anybody tell me if there is any way to add an entry into ".htpasswd"
from a perl script, without getting prompted for the password? Meaning..I
have the password in a variable(say $new_pass), & want to change the
password of a particular user from old_pass to $new_pass. How can this be
done through the script, without getting the prompt to "Type new password"?
Any help ASAP is very much appreciated.
Thanks..
Shuba
Re: Adding an entry into .htpasswd
Posted by Todd Caine <to...@eli.net>.
RTFM. Use the -b flag to htpasswd.
Shuba Simha wrote:
> Can anybody tell me if there is any way to add an entry into ".htpasswd"
> from a perl script, without getting prompted for the password? Meaning..I
> have the password in a variable(say $new_pass), & want to change the
> password of a particular user from old_pass to $new_pass. How can this be
> done through the script, without getting the prompt to "Type new password"?
>
> Any help ASAP is very much appreciated.
> Thanks..
> Shuba
>
> ------------------------------------------------------------
> Name: winmail.dat
> winmail.dat Type: application/ms-tnef
> Encoding: base64
--
--------------------------------------------------------------
<!-- Todd Caine - tcaine@eli.net
4400 NE 77th Avenue
Vancouver, WA 98662
Direct Dial: (360) 816-4344 //-->
--------------------------------------------------------------
RE: Adding an entry into .htpasswd
Posted by jb...@team-linux.com.
CPAN is your friend:
http://search.cpan.org/doc/KMELTZ/Apache-Htpasswd-1.3/Htpasswd.pm
On 14-Aug-2000 Shuba Simha wrote:
> Can anybody tell me if there is any way to add an entry into ".htpasswd"
> from a perl script, without getting prompted for the password? Meaning..I
> have the password in a variable(say $new_pass), & want to change the
> password of a particular user from old_pass to $new_pass. How can this be
> done through the script, without getting the prompt to "Type new password"?
>
> Any help ASAP is very much appreciated.
> Thanks..
> Shuba
>
>
>
>
>
--
Jason Bodnar + jbodnar@team-linux.com + Team Linux
Rock 'n' Roll had become stagnant. `Achy Breaky Heart' was seven years
away. Something had to fill the void, and that something was barbershop.
-- Homer Simpson
Homer's Barbershop Quartet