Code

Fixed removement
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Dec 2005 06:48:37 +0000 (06:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Dec 2005 06:48:37 +0000 (06:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2264 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servRepository.inc

index 21aa551ace56f4b17612120b5093686235d93f9e..47561675fb487c745352f0c51b0631b53c3f6302 100644 (file)
@@ -25,6 +25,7 @@ class servrepository extends plugin
   function servrepository ($config, $dn= NULL)
   {
     plugin::plugin ($config, $dn);
+
     $this->repositories = array();
     if(isset($this->attrs['FAIrepository'])){
       for($i = 0; $i < $this->attrs['FAIrepository']['count']; $i++){
@@ -191,12 +192,6 @@ class servrepository extends plugin
       $ldap->cd($this->dn);
       $ldap->modify($this->attrs);      
       $this->handle_post_events("modify");
-    }else{
-      $ldap->cd ($this->config->current['BASE']);
-      $ldap->create_missing_trees($this->dn);
-      $ldap->cd($this->dn);
-      $ldap->add($this->attrs);
-      $this->handle_post_events("add");
     }
   }