mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
try LOGIN first for login to IMAP Server as prefered login method. only use best auth method, if LOGIN is not available: Reason-> some servers do report auth methods that they do not truly support (cram-md5)
This commit is contained in:
parent
4fef26e926
commit
ef3cbeaac8
@ -524,7 +524,7 @@ class defaultimap extends Net_IMAP
|
||||
if ($this->debug) error_log(__METHOD__."No username supplied.".function_backtrace());
|
||||
return false;
|
||||
}
|
||||
if( PEAR::isError($status = parent::login($username, $password, TRUE, !$this->isAdminConnection)) ) {
|
||||
if( PEAR::isError($status = parent::login($username, $password, 'LOGIN', !$this->isAdminConnection)) ) {
|
||||
if ($this->debug) error_log(__METHOD__."Could not log in with ->".$username.":".$password."<-");
|
||||
if ($this->debug) error_log(__METHOD__."Status login:".array2string($status->message));
|
||||
//error_log(__METHOD__.'Called from:'.function_backtrace());
|
||||
|
Loading…
Reference in New Issue
Block a user