Changeset 5237 in subversion


Ignore:
Timestamp:
Sep 19, 2011 5:06:49 AM (21 months ago)
Author:
alec
Message:
  • Make rcube_ldap bind() and sasl_bind() methods public
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_ldap.php

    r5214 r5237  
    223223            if (!empty($bind_pass)) { 
    224224                if (!empty($bind_dn)) { 
    225                     $this->ready = $this->_bind($bind_dn, $bind_pass); 
     225                    $this->ready = $this->bind($bind_dn, $bind_pass); 
    226226                } 
    227227                else if (!empty($this->prop['auth_cid'])) { 
    228                     $this->ready = $this->_sasl_bind($this->prop['auth_cid'], $bind_pass, $bind_user); 
     228                    $this->ready = $this->sasl_bind($this->prop['auth_cid'], $bind_pass, $bind_user); 
    229229                } 
    230230                else { 
    231                     $this->ready = $this->_sasl_bind($bind_user, $bind_pass); 
     231                    $this->ready = $this->sasl_bind($bind_user, $bind_pass); 
    232232                } 
    233233            } 
     
    254254     * @return boolean True on success, False on error 
    255255     */ 
    256     private function _sasl_bind($authc, $pass, $authz=null) 
     256    public function sasl_bind($authc, $pass, $authz=null) 
    257257    { 
    258258        if (!$this->conn) { 
     
    305305     * @return boolean True on success, False on error 
    306306     */ 
    307     private function _bind($dn, $pass) 
     307    public function bind($dn, $pass) 
    308308    { 
    309309        if (!$this->conn) { 
Note: See TracChangeset for help on using the changeset viewer.