Re: [squid-users] Converting clear-text file into supported-by-squid encrypted file

From: Lieven Marchand <lieven.marchand@dont-contact.us>
Date: 23 Jun 2003 13:47:40 +0200

Aqil <aq1l@yahoo.fr> writes:

> The MD5 encryption is well supported by ncsa
> authentication scheme, isn't it ?

I don't think so.

> So, I have 2 questions :
> 1. How to make the famous file ?
> ..the file as you know which has to be in the format
> that ncsa authentication scheme supports.
>
> 2. How to convert my clear text password file into the
> file that is required by ncsa authentication scheme?
> I really need to perform this conversion because I
> already have my database which consists of a large
> number of lines. I can't imagine if I have to perform
> the conversion line by line manually in the command
> line ..

if you have your userids and passwords in a file something like

while read $user $password
do
htpasswd -b passwordfile $user $password
done < cleartextfile

should work

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Received on Mon Jun 23 2003 - 05:47:50 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:35 MST