From:             [EMAIL PROTECTED]
Operating system: Linux (Red Hat 7.2)
PHP version:      4.2.3
PHP Bug Type:     IMAP related
Bug description:  imap_open giving out a wrong user name

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] [EMAIL PROTECTED] [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 bug report at http://bugs.php.net/?id=20188&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20188&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20188&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20188&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20188&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20188&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20188&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20188&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20188&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20188&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20188&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20188&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20188&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20188&r=isapi

Reply via email to