hi, all
i use sqwebmail 0.99 with configuration as follows and can;t login ,either
./configure --enable-webpass=vpopmail ....etc(other dir setting such as
html,cgibin)
so i use gdb to debug try to figure where the problem is
and i found something intersting.
in sqwebmail/auth.c do_login function
=========================
static const char *do_login(const char *u, const char *p, const char
**driver)
{
char    *buf;

static char     *uid=0;

struct  preinfo pi;
int     rc;

/*
** We first need to check if sqwebmail saved its own password in
sqwebmail-pass.
** To do that, we call the authlib preauthentication functions until we find
** one that accepts our userid.  However, if it succeeds, we will no longer
** as root.  Therefore, let's fork, and do our thing in the child proc.
*/

        pi.haswebpass=0;

        rc=authstaticlist_search(u, "webmail", MODULEFILE,
                &pre_callback, &pi);
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
in this function - authstaticlist_search, it sure get the user info from
vpopmaill
and put it in pw.

        if (rc)
                return (0);

#if ENABLE_WEBPASS
 if (pi.haswebpass)
{
    if ((*authstaticlist[pi.i].auth_prefunc)(u, "webmail",&doauthlogin, 0))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

but there, it can't , it returns fail when call mysql_query,
i check the last_errno="Mysql Server goes away"

so......does any ony have any idea about this?.

ps. my OS is FreeBSD 3.4-RELEASE running on dual PIII-500+ with 1G ram
vpopmail-4.8.9
gcc version 2.7.2.3
mysql-3.22.32

----- Original Message -----
From: Tim Hunter <[EMAIL PROTECTED]>
To: SQWebMail list <[EMAIL PROTECTED]>
Sent: Wednesday, August 16, 2000 3:49 PM
Subject: Re: Authentication problem


> What version of vpopmail are you using?
>
>
> ----- Original Message -----
> From: Sam Varshavchik <[EMAIL PROTECTED]>
> Cc: SQWebMail list <[EMAIL PROTECTED]>
> Sent: Tuesday, August 15, 2000 5:40 PM
> Subject: Re: Authentication problem
>
>
> >
> > Maurice Snellen writes:
> >
> > > Is there no comment from you on my report regarding the major part of
> > > my previous message: the problem that many people seem to have trouble
> > > getting sqwebmail 0.99 to work with vpopmail?
> >
> > I have no idea.
> >
> > > I understand what you wrote about not having changed anything that
> > > could have impact on this in the code of sqwebmail that interfaces
with
> > > vpopmail,
> >
> > Correct.
> >
> > >           but you must admit that since the only variable in the above
> > > mentioned order of events is the version of sqwebmail, and that unless
> > > you can point to another cause, logic dictates that the problem must
be
> > > in sqwebmail.
> >
> > No.  I don't know how your system is installed or configured.  All I
know
> > is what is different between the two versions.  That's all I can tell
you.
> >
> > > Also, why does sqwebmail suddenly need to have the LIBS set for mysql
> > > when 0.36 didn't need that?
> >
> > I have no idea how your system is installed or configured.
> >
> > > In my opinion this issue isn't resolved yet.
> >
> > The quickest way for you to resolve this issue is to stop expecting
> someone
> > else to resolve it for you.
> >
> > --
> > Sam
> >
> >
>
>

Reply via email to