Changeset 4124 in subversion


Ignore:
Timestamp:
Oct 22, 2010 3:25:00 PM (3 years ago)
Author:
alec
Message:
  • Add support for IMAP proxy authentication (#1486690)
Location:
trunk/roundcubemail
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r4123 r4124  
    4545- Add LOGINDISABLED support (RFC 2595) 
    4646- Add support for AUTH=PLAIN in IMAP authentication 
    47 - Re-implemented SMTP proxy authorization support 
     47- Re-implemented SMTP proxy authentication support 
     48- Add support for IMAP proxy authentication (#1486690) 
    4849 
    4950RELEASE 0.4.2 
  • trunk/roundcubemail/config/main.inc.php.dist

    r4123 r4124  
    8787// IMAP connection timeout, in seconds. Default: 0 (no limit) 
    8888$rcmail_config['imap_timeout'] = 0; 
     89 
     90// Optional IMAP authentication identifier to be used as authorization proxy 
     91$rcmail_config['imap_auth_cid'] = null; 
     92 
     93// Optional IMAP authentication password to be used for imap_auth_cid 
     94$rcmail_config['imap_auth_pw'] = null; 
    8995 
    9096// ---------------------------------- 
     
    121127$rcmail_config['smtp_auth_cid'] = null; 
    122128 
    123 // Optional SMTP authorization password to be used for smtp_auth_cid 
     129// Optional SMTP authentication password to be used for smtp_auth_cid 
    124130$rcmail_config['smtp_auth_pw'] = null; 
    125131 
  • trunk/roundcubemail/program/include/rcmail.php

    r4089 r4124  
    502502    $options = array( 
    503503      'auth_method' => $this->config->get('imap_auth_type', 'check'), 
     504      'auth_cid'    => $this->config->get('imap_auth_cid'), 
     505      'auth_pw'     => $this->config->get('imap_auth_pw'), 
    504506      'delimiter'   => isset($_SESSION['imap_delimiter']) ? $_SESSION['imap_delimiter'] : $this->config->get('imap_delimiter'), 
    505507      'rootdir'     => isset($_SESSION['imap_root']) ? $_SESSION['imap_root'] : $this->config->get('imap_root'), 
  • trunk/roundcubemail/program/include/rcube_imap_generic.php

    r4122 r4124  
    421421        } 
    422422        else { // PLAIN 
    423             $reply = base64_encode($user . chr(0) . $user . chr(0) . $pass); 
     423            // proxy authentication 
     424            if (!empty($this->prefs['auth_cid'])) { 
     425                $authc = $this->prefs['auth_cid']; 
     426                $pass  = $this->prefs['auth_pw']; 
     427            } 
     428            else { 
     429                $authc = $user; 
     430            } 
     431 
     432            $reply = base64_encode($user . chr(0) . $authc . chr(0) . $pass); 
    424433 
    425434            // RFC 4959 (SASL-IR): save one round trip 
Note: See TracChangeset for help on using the changeset viewer.