3 Put the following options in config.php:
5 define('IMAP_AUTH_SERVER', 'your.imap.server:port');
6 define('IMAP_AUTH_OPTIONS', '/tls/novalidate-cert/norsh');
7 // More about options: http://php.net/manual/ru/function.imap-open.php
11 class Auth_Imap extends Auth_Base {
13 function authenticate($login, $password) {
15 if ($login && $password) {
17 "{".IMAP_AUTH_SERVER.IMAP_AUTH_OPTIONS."}INBOX",
24 return $this->auto_create_user($login);