You are here

function ldap_help_disconnect in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_help/ldap_test_script/functions.inc \ldap_help_disconnect()
  2. 7 ldap_help/ldap_test_script/functions.inc \ldap_help_disconnect()

Disconnect (unbind) from an active LDAP server.

1 call to ldap_help_disconnect()
test.php in ldap_help/ldap_test_script/test.php

File

ldap_help/ldap_test_script/functions.inc, line 165

Code

function ldap_help_disconnect(&$con) {
  if (!$con) {

    // never bound or not currently bound, so no need to disconnect
  }
  else {
    ldap_help_disconnect($con);
    $con = NULL;
  }
}