[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] Coding Question re Mailman script ... Never mind.



It seems that I'm always answering my own questions.

Through creative googling, I found the solution to my
problem [Verio version of htpasswd doesn't support -b flag]
... someone wrote a Perl script that deals with the problem,
and called it htpasswd-b - it is here:
http://www.intuitive.com/wicked/examples/htpasswd-b.html

Works like a charm.

And for what it's worth, I think the problem with the
htpasswd script on the VPS1 is just that it's old -
apparently the -b option is something that comes with Apache
2, and we're running Apache 1.3.27.

If anyone would like to have the scripts, let me know & I'll
post them. Both the mm_htaccess and htpasswd-b are short
shell scripts.


-Abigail



AM> Scott,

AM> I've run into a problem with coding a script concerning
AM> mailman, and I'm starting to think it's a unique VPS issue.

AM> Here is what I am doing:

AM> I want to use a Mailman list to provide the user names and
AM> passords for http authentication on a particular site.

AM> There is a script in the FAQ's for Mailman to export the
AM> Mailman username/password for a specific list to a
AM> designated .htpasswd file.

AM> There is line in the script as follows:
AM> htpasswd -b ~/var/tmp/.htpasswd.$LIST $i $PASS

AM> The variables are working fine - so you don't have to worry
AM> about them.

AM> My problem is that when I run it, I get this error message:

>> Usage: htpasswd [-cm] passwordfile username
>> The -c flag creates a new file.
>> The -m flag forces MD5 encryption of the password.

AM> I suspect that the Verio version of htpasswd has been
AM> modified in some way to disallow the batch mode [-b] flag.
AM> (See http://httpd.apache.org/docs/programs/htpasswd.html for
AM> a list of all options).

AM> Am I correct?

AM> If so, is there a way to enable this?

AM> I realize that the batch mode is not considered secure, but
AM> Mailman passwords are sent out unencrypted, so security is
AM> not much of an issue here. We're not guarding the crown
AM> jewels; we simply want a rudimentary level of protection.

AM> Anyway, I'd appreciate whatever help you can give.

AM> -Abigail

======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: