#20188 [Opn->Fbk]: imap_open giving out a wrong user name
| From: | kalowsky@php.net | Date: | Thu, 31 Oct 2002 14:52:53 +0000 |
| Subject: | #20188 [Opn->Fbk]: imap_open giving out a wrong user name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23790@lists.php.net to get a copy of this message | ||
ID: 20188
Updated by: kalowsky@php.net
Reported By: pzheng@fengye.cc
-Status: Open
+Status: Feedback
Bug Type: IMAP related
Operating System: Linux (Red Hat 7.2)
PHP Version: 4.2.3
New Comment:
What you're saying is that Horde isn't working for you?
Previous Comments:
------------------------------------------------------------------------
[2002-10-31 05:23:45] pzheng@fengye.cc
I have spent weeks on this, but no luck; It would be greatly
appreciated if you could help.
This is so much I can chase this far, to me it's imap_open giving out
an incorrect username when users try to log in; I even printed out the
username right before imap_open ("pzheng" in this case); then I see one
additional character in user login name ("pzhengi") in Mysql log. The
Imap server works fine when users use outlook or other kind of mail
client. Pop3 from horde's imp is working fine too.
I think I am using the newest package.
print out right before imap_open:
[imp] pzheng@fengye.cc [on line 254 of
"/usr/local/apache/htdocs/horde/imp/lib/IMP.php"]
print out from mysql log:
select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell
,
pw_clear_passwd from vpopmail where pw_name = "pzhengi" and pw_domain
=
"fengye.cc"
packages used:
php-4.2.3.tar.gz
apache_1.3.26.tar.gz
qmail-1.03.tar.gz
MySQL-3.23.52-1.i386.rpm
vpopmail-5.2.1.tar
horde-2.1.tar.gz
imp-3.1.tar.gz
courier-imap-1.5.3.tar.gz
script from IMP.php:
Horde::logMessage($imp['user'], __FILE__, __LINE__, LOG_ERR);
Horde::logMessage($connstr, __FILE__, __LINE__, LOG_ERR);
if ($flags == 0) {
$imp['stream'] = @imap_open($connstr, $imp['user'],
Secret::read(Secret::getKey('imp'), $imp['pass']));
} else {
$imp['stream'] = @imap_open($connstr, $imp['user'],
Secret::read(Secret::getKey('imp'), $imp['pass']), $flags);
}
Thanks,
Phillip
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20188&edit=1