2 rcs_id('$Id: IMAP.php,v 1.1 2004-11-01 10:43:58 rurban Exp $');
3 /* Copyright (C) 2004 $ThePhpWikiProgrammingTeam
9 * Define the var IMAP_AUTH_HOST in config/config.ini (with port probably)
11 * Preferences are handled in _PassUser
14 function checkPass($submitted_password) {
15 if (!$this->isValidName()) {
16 return $this->_tryNextPass($submitted_password);
18 $userid = $this->_userid;
19 $mbox = @imap_open( "{" . IMAP_AUTH_HOST . "}",
20 $userid, $submitted_password, OP_HALFOPEN );
23 $this->_authmethod = 'IMAP';
24 $this->_level = WIKIAUTH_USER;
27 trigger_error(_("Unable to connect to IMAP server "). IMAP_AUTH_HOST,
31 return $this->_tryNextPass($submitted_password);
34 //CHECKME: this will not be okay for the auth policy strict
35 function userExists() {
38 if (checkPass($this->_prefs->get('passwd')))
40 return $this->_tryNextUser();
43 function mayChangePass() {
48 // $Log: not supported by cvs2svn $
54 // c-hanging-comment-ender-p: nil
55 // indent-tabs-mode: nil