Code

Added additional filter
[gosa.git] / gosa-core / include / class_ldap.inc
index bf5385e011fbc79fe6e6ece3ef59c7df5bd36303..743d15bbb991d7ab08fb8e673959be51bb5bf7dc 100644 (file)
@@ -574,10 +574,8 @@ class LDAP{
       $str = " - <b>attribute: ".preg_replace("/:.*$/","",$this->get_additional_error())."</b>";
     } 
 
-    if(is_object($config) && $config->get_cfg_value("displayerrors") == "true" && function_exists("print_a")){
-      $str .= print_a($attrs,true);
-    }
-    
+    @DEBUG(DEBUG_LDAP,__LINE__,__FUNCTION__,__FILE__,$attrs,"Erroneous data");
+
     return($str);
   }
 
@@ -587,8 +585,6 @@ class LDAP{
       return (0);
     }
     if($this->hascon){
-
-      $attrs['objectClass'][0] = "Herb ert";
       if ($this->reconnect) $this->connect();
       $r = @ldap_modify($this->cid, LDAP::fix($this->basedn), $attrs);
       $this->error = @ldap_error($this->cid);