mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
New imap type (imaptls) solved problems with TLS capable servers (eg Courier)
This commit is contained in:
parent
da978ae4c7
commit
e1fb2ab5e8
@ -4,8 +4,8 @@
|
||||
// This code is completely untested so far - IT NEEDS TESTERS!
|
||||
// Looks like it should work though ...
|
||||
|
||||
$CFG->auth_imaphost = "202.0.185.16"; // Should be IP number
|
||||
$CFG->auth_imaptype = "imap"; // imap, imapssl, imapcert
|
||||
$CFG->auth_imaphost = "127.0.0.1"; // Should be IP number
|
||||
$CFG->auth_imaptype = "imap"; // imap, imaptls, imapssl, imapcert
|
||||
$CFG->auth_imapport = "143"; // 143, 993
|
||||
$CFG->auth_instructions = "Use the same username and password as your school email account"; // Instructions
|
||||
|
||||
@ -25,6 +25,10 @@ function auth_user_login ($username, $password) {
|
||||
$host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
|
||||
break;
|
||||
|
||||
case "imaptls":
|
||||
$host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport/imap/notls}INBOX";
|
||||
break;
|
||||
|
||||
default:
|
||||
$host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport}";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user