on 10/8/01 11:01 AM, Ken Jones at [EMAIL PROTECTED] spake:

> On Sat, 2001-10-06 at 16:23, Bill Shupp wrote:
>> Ken,
>> 
>> Oden Eriksson found a qmailadmin issue (which I've confirmed) when
>> converting from --enable-clear-passwd=n to --enable-clear-passwd=y.  Here's
>> the scenario:
>> 
>> 1. Compile vpopmail with --enable-clear-passwd=n (or before it was
>> available)
>> 2. Create domain notclear.com
>> 3. Recompile vpopmail with --enable-clear-passwd=y
>> 4. Create domain clear.com
>> 5. Compile qmailadmin
>> 
>> At this point, qmailadmin will work correctly with clear.com.  But if you
>> login to notclear.com, show_users() will just display "No users left to
>> view, please return to the previous page" (or in Oden's case: "Inga fler att
>> visa, �tervS�nd till fs�reg�ende sida" : )).
>> 
>> This is happening during pw = vauth_getall(dom,1,1).  Is there a way to make
>> vauth_getall() backwards compatible with --enable-clear-passwd=n so this
>> doesn't happen?  What do you suggest?
> 
> Hi Bill,
> 
> I suggested updating the table definition to have the clear password
> column.


This is the *cdb* module, which means you have to edit all the vpasswd files
by hand.


>> Incidentally, if you use the mysql modules, you'll get an error when logging
>> that the clear password field doesn't exist.  The cdb module will let you
>> login, and you only see the problem when clicking on "POP Accounts".
> 
> It's not backwardly compatible. I think one of the docs
> mentions that.
> 
> Ken

Ok.  Then we should probably add to the UPGRADE file that if you're using
cdb, then you should run a conversion script from the contrib directory if
you want to use clear passwords.  I've found that running 'vmoduser -C ""
user@domain' will add the trailing : to the vpasswd entry.  Here's a
possible script that could convert all the domains, like this:

#!/bin/bash

DOMAINSDIR="/home/vpopmail/domains"
VPOPMAILBIN="/home/vpopmail/bin"

for i in `ls $DOMAINSDIR` ; do
        VPASSWD="$DOMAINSDIR/$i/vpasswd"
        if [ -f "$VPASSWD" ] ; then
                echo "converting $i ..."
                for v in `cat $VPASSWD | awk -F: '{ print $1 }'` ; do
                        $VPOPMAILBIN/vmoduser -C "" $v@$i
                done
        fi
done

Reply via email to