till
2008-04-01 736307aab4b9e2963d51a316d177cff36c7a2b4e
* debugging bind (simplyfied if/else)



1 files modified
16 ■■■■ changed files
program/include/rcube_ldap.inc 16 ●●●● patch | view | raw | blame | history
program/include/rcube_ldap.inc
@@ -119,20 +119,20 @@
   */
  function bind($dn, $pass)
  {
    if (!$this->conn)
    if (!$this->conn) {
      return false;
    }
    
    if (@ldap_bind($this->conn, $dn, $pass))
    if (@ldap_bind($this->conn, $dn, $pass)) {
      return true;
    else
    {
      raise_error(array(
    }
    raise_error(array(
        'code' => ldap_errno($this->conn),
        'type' => 'ldap',
        'message' => "Bind failed for dn=$dn: ".ldap_error($this->conn)),
      true);
    }
        true);
    return false;
  }