From: SourceForge.net <no...@so...> - 2003-10-27 11:04:38
|
Bugs item #830912, was opened at 2003-10-27 11:04 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106121&aid=830912&group_id=6121 Category: None Group: User Authentication Status: Open Resolution: None Priority: 5 Submitted By: Sam Thorne (samjt) Assigned to: Nobody/Anonymous (nobody) Summary: IMAP authentication fails because nothing is opened Initial Comment: In the current implementation of IMAP authentication, the authentication always fails because no inbox is being opened, so nothing is returned. Currently it is: if (ALLOW_IMAP_LOGIN and !empty($passwd)) { $mbox = @imap_open( "{" . IMAP_AUTH_HOST . ":143}", $userid, $passwd, OP_HALFOPEN ); if( $mbox ) { imap_close( $mbox ); $this->_authmethod = 'IMAP'; return WIKIAUTH_USER; } } It should be: if (ALLOW_IMAP_LOGIN and !empty($passwd)) { $mbox = @imap_open( "{" . IMAP_AUTH_HOST . ":143}INBOX", $userid, $passwd, OP_HALFOPEN ); if( $mbox ) { imap_close( $mbox ); $this->_authmethod = 'IMAP'; return WIKIAUTH_USER; } } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106121&aid=830912&group_id=6121 |