diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index f3650a55eb814473e41f375920ada914c7578392..74020d3c9e3f455f334a1ad320cbdfb5efc316d9 100644 (file)
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
if ($basedn == "")
$basedn = $this->basedn;
$this->sr = @ldap_list($this->cid, $basedn, $filter);
- $ldap->error = @ldap_error($this->cid);
+ $this->error = @ldap_error($this->cid);
$this->resetResult();
$this->hasres=true;
return($this->sr);
$att= @ldap_get_attributes($this->cid, $this->re);
$att['dn']= @ldap_get_dn($this->cid, $this->re);
}
- $ldap->error = @ldap_error($this->cid);
+ $this->error = @ldap_error($this->cid);
if (!isset($att)){
$att= array();
}
{
$rv = @ldap_get_dn($this->cid, $this->re);
- $ldap->error = @ldap_error($this->cid);
+ $this->error = @ldap_error($this->cid);
$rv= preg_replace("/[ ]*,[ ]*/", ",", $rv);
return($rv);
}
if($this->hascon){
if($this->hasres){
$rv = @ldap_count_entries($this->cid, $this->sr);
- $ldap->error = @ldap_error($this->cid);
+ $this->error = @ldap_error($this->cid);
return($rv);
}else{
$this->error = "Perform a Fetch with no Search";
$dn = $this->basedn;
$r = @ldap_mod_del($this->cid, $dn, $attrs);
- $ldap->error = @ldap_error($this->cid);
+ $this->error = @ldap_error($this->cid);
return($r);
}else{
$this->error = "Could not connect to LDAP server";
$dn = $this->basedn;
$r = @ldap_mod_replace($this->cid, $dn, $attrs);
- $ldap->error = @ldap_error($this->cid);
+ $this->error = @ldap_error($this->cid);
return($r);
}else{
$this->error = "Could not connect to LDAP server";