[imp] Login problem with IMP 2.3.7

Devin Atencio dreamboy@aros.net
Tue, 17 Jul 2001 16:06:15 -0600


Chuck,

This seems to be a major problem with lots of accounts. I downloaded
the latest CVS just now from horde.org. I then copied all the .dist
files to .php alone files, then modified some of the settings. On
the login screen I have it just asking for e-mail address and password,
then on the redirect.php i have the following code:

/* Create a new session if we're given the proper parameters. */
if (isset($HTTP_POST_VARS['imapuser']) && isset($HTTP_POST_VARS['pass'])) {
$blankat = ereg("\@",$imapuser);
if ($blankat == false) {

$HTTP_POST_VARS['realm'] = "aros.net";
$HTTP_POST_VARS['server'] = "aros";

} else {

$exp_imapuser = explode("@",$imapuser);

if ($exp_imapuser[1]!="aros.net") {

/* check to see if domain is an ArosNet domain */
require_once("/home/webmaster/arosnet/office/inc/db4306.inc");
$checkserver = $exp_imapuser[1];

$dbd = mysql_connect($dbhost,$dbuser,$dbpass);
$qqry = "select * from vhosts where hostname='$checkserver'";
mysql_select_db("acctdb",$dbd);
$result = mysql_query($qqry,$dbd);
$found = mysql_num_rows($result);
mysql_close($dbd);

if ($found=="1") {

        $HTTP_POST_VARS['server'] = $exp_imapuser[1];
        $HTTP_POST_VARS['imapuser'] = $exp_imapuser[0];

        } else {
		Header("Location:login.php?reason=failed");
        }

}
}

So basically I have the server doing an explode on the
imapuser to find the domain to use and the username
to user, then I set the $HTTP_POST_VARS['server'],
and the $HTTP_POST_VARS['imapuser'] to what they should
be inside the redirect.php.

I am using a hidden serverlist. The program seems to
get the correct information cause it bitches in the logs
with the correct port and domain, but it never logs me
in?

Any ideas?


-----Original Message-----
From: Chuck Hagenbuch [mailto:chuck@horde.org]
Sent: Tuesday, July 17, 2001 1:33 PM
To: imp@lists.horde.org
Subject: Re: [imp] Login problem with IMP 2.3.7


Quoting Devin Atencio <dreamboy@aros.net>:

> I have an account that won't log into 2.3.7 for some
> reason. The logs show:

Do you mean that this happens for just this one account?

> Jul 17 11:51:40 IMP [notice] 207.173.16.36 login success for chandee
> {pioneeroutdoor.com:110}
> Jul 17 11:51:40 IMP [info] FAILED LOGIN 207.173.16.36 to
> pioneeroutdoor.com:110[pop3] as chandee

What does your imap server show?

Usually, something like this means that session info isn't being propogated
correctly...

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
Some fallen angels have their good reasons.

--
IMP mailing list: http://horde.org/imp/
Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@lists.horde.org