ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilLDAPQuery.php File Reference

Go to the source code of this file.

Data Structures

class  ilLDAPQuery
 

Functions

 referralRebind ($a_ds, $a_url)
 

Variables

const IL_LDAP_BIND_DEFAULT 0
 
const IL_LDAP_BIND_ADMIN 1
 
const IL_LDAP_BIND_TEST 2
 

Function Documentation

◆ referralRebind()

referralRebind (   $a_ds,
  $a_url 
)

Definition at line 620 of file class.ilLDAPQuery.php.

References $ilLog.

621 {
622  global $ilLog;
623 
624  $ilLog->write('LDAP: Called referralRebind.');
625 
626  ldap_set_option($a_ds, LDAP_OPT_PROTOCOL_VERSION, 3);
627 
628  if (!ldap_bind($a_ds,IL_LDAP_REBIND_USER,IL_LDAP_REBIND_PASS))
629  {
630  $ilLog->write('LDAP: Rebind failed');
631  }
632 }

Variable Documentation

◆ IL_LDAP_BIND_ADMIN

const IL_LDAP_BIND_ADMIN 1

◆ IL_LDAP_BIND_DEFAULT

const IL_LDAP_BIND_DEFAULT 0

◆ IL_LDAP_BIND_TEST

const IL_LDAP_BIND_TEST 2

Definition at line 26 of file class.ilLDAPQuery.php.

Referenced by ilLDAPQuery\bind(), and ilLDAPServer\doConnectionCheck().