Code

Fixed fonserver rename
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Oct 2007 09:08:25 +0000 (09:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Oct 2007 09:08:25 +0000 (09:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7590 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDB.inc

index cff0976ce2058ce30a748b95fa0554adcb48d04d..50fbb31b503e7cba647bd415a4aa11c11becd32d 100644 (file)
@@ -283,7 +283,7 @@ class servdb extends plugin
     if(in_array("goFonServer",$this->objectclasses)){
       if($this->orig_dn != "new" && $this->orig_dn != $this->dn){
         $ldap->cd($this->config->current['BASE']);
-        $ldap->search("(&(goFonHomeServer=*)(|(objectClass=goFonAccount)(objectClass=goFonConference)))",array("goFonHomeServer"));
+        $ldap->search("(&(goFonHomeServer=".$this->orig_dn.")(|(objectClass=goFonAccount)(objectClass=goFonConference)))",array("goFonHomeServer"));
         $dns = array();
         while($attrs = $ldap->fetch()){
           $dns[] = $attrs['dn'];