You are here

function LDAPInterface::bind in LDAP integration 5

Same name and namespace in other branches
  1. 5.2 ldap_integration/LDAPInterface.php \LDAPInterface::bind()
  2. 6 includes/LDAPInterface.inc \LDAPInterface::bind()
1 call to LDAPInterface::bind()
LDAPInterface::connectAndBind in ldap_integration/LDAPInterface.php

File

ldap_integration/LDAPInterface.php, line 145

Class

LDAPInterface

Code

function bind($dn, $pass) {
  ob_start();
  set_error_handler(array(
    'LDAPInterface',
    'void_error_handler',
  ));
  $ret = ldap_bind($this->connection, $dn, $pass);
  restore_error_handler();
  ob_end_clean();
  return $ret;
}