2 // Authentication by looking up a POP3 server
4 // This code is completely untested so far - IT NEEDS TESTERS!
5 // Looks like it should work though ...
7 function auth_user_login ($username, $password) {
8 // Returns true if the username and password work
9 // and false if they are wrong or don't exist.
13 switch ($CFG->auth_pop3type) {
15 $host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3}INBOX";
18 $host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3/ssl/novalidate-cert}INBOX";
23 $connection = imap_open($host, $username, $password, OP_HALFOPEN);
27 imap_close($connection);