You are here

function LDAPInterface::bind in LDAP integration 6

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

File

includes/LDAPInterface.inc, line 195
LDAPInterface class definition.

Class

LDAPInterface
@file LDAPInterface class definition.

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;
}