--- Dave <[EMAIL PROTECTED]> wrote: > On 10/20/05, James Keeline <[EMAIL PROTECTED]> wrote: > > > > > > --- Dave <[EMAIL PROTECTED]> wrote: > > > > > I have a csv plain text file that I would like to import as a htaccess > > > file, the password is plaint text so it would need to encrypt the > > > password. Anyone know of a script that does this? > > > > Your first step involves reading in the CSV file and processing each line > to > > create the .htpasswd file in the above format. You haven't said much about > the > > specific format of the CSV file so I can't be more specific. > > Ahh ya, I meant htpassword. The format is... password, USER NAME > Where USER NAME has a space. I found a perl script but it doesn't > like the spaces, so I put them in single quotes. It creates the user > name and password but it doestn seem to like the password when > logging in to the web server. If I use the -b option from the command > line it sets the password correctly.
Spaces are not a good idea in usernames. James -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie
