diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-19 09:06:49 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-19 09:06:49 +0000 |
| commit | e4a3165c64411436991db5010d3412a9881b33a4 (patch) | |
| tree | a5f9888dac3a78a35f22553d702914834a9e070d /roundcubemail/program/include | |
| parent | d8d3cf69e1f85cb2c9c15a0e51d2fb0583cd7f59 (diff) | |
- Make rcube_ldap bind() and sasl_bind() methods public
git-svn-id: https://svn.roundcube.net/trunk@5237 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_ldap.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/roundcubemail/program/include/rcube_ldap.php b/roundcubemail/program/include/rcube_ldap.php index 48920d9fa..6b0ad4f4c 100644 --- a/roundcubemail/program/include/rcube_ldap.php +++ b/roundcubemail/program/include/rcube_ldap.php @@ -222,13 +222,13 @@ class rcube_ldap extends rcube_addressbook if (!empty($bind_pass)) { if (!empty($bind_dn)) { - $this->ready = $this->_bind($bind_dn, $bind_pass); + $this->ready = $this->bind($bind_dn, $bind_pass); } else if (!empty($this->prop['auth_cid'])) { - $this->ready = $this->_sasl_bind($this->prop['auth_cid'], $bind_pass, $bind_user); + $this->ready = $this->sasl_bind($this->prop['auth_cid'], $bind_pass, $bind_user); } else { - $this->ready = $this->_sasl_bind($bind_user, $bind_pass); + $this->ready = $this->sasl_bind($bind_user, $bind_pass); } } } @@ -253,7 +253,7 @@ class rcube_ldap extends rcube_addressbook * * @return boolean True on success, False on error */ - private function _sasl_bind($authc, $pass, $authz=null) + public function sasl_bind($authc, $pass, $authz=null) { if (!$this->conn) { return false; @@ -304,7 +304,7 @@ class rcube_ldap extends rcube_addressbook * * @return boolean True on success, False on error */ - private function _bind($dn, $pass) + public function bind($dn, $pass) { if (!$this->conn) { return false; |
