php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20188 imap_open giving out a wrong user name
Submitted: 2002-10-31 05:23 UTC Modified: 2002-10-31 11:45 UTC
From: pzheng at fengye dot cc Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.2.3 OS: Linux (Red Hat 7.2)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pzheng at fengye dot cc
New email:
PHP Version: OS:

 

 [2002-10-31 05:23 UTC] pzheng at fengye dot 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-31 08:52 UTC] kalowsky@php.net
What you're saying is that Horde isn't working for you?  
 [2002-10-31 11:45 UTC] sniper@php.net
This is wrong bug system to report bugs in Horde. Please report this to them.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC