diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index 0e1e909b5282c3e4e6ae12e96847863947321076..b5a5026b0db14e3e5014bc137be276b1c6d93795 100644 (file)
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
var $referrals= array();
var $max_ldap_query_time = 0; // 0, empty or negative values will disable this check
+ var $re = NULL;
+
function LDAP($binddn,$bindpw, $hostname, $follow_referral= FALSE, $tls= FALSE)
{
global $config;
if ($this->reconnect) $this->connect();
$start = microtime();
-
$this->clearResult();
$this->sr = @ldap_search($this->cid, $this->fix($this->basedn), $filter, $attrs);
$this->error = @ldap_error($this->cid);
{
if($this->hascon){
if ($this->reconnect) $this->connect();
+
$this->clearResult();
if ($basedn == "")
$basedn = $this->basedn;
{
if($this->hascon){
if ($this->reconnect) $this->connect();
+
$start = microtime();
$this->clearResult();
$filter = "(objectclass=*)";