Code

Rename of Servers fixed
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Oct 2005 08:19:26 +0000 (08:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Oct 2005 08:19:26 +0000 (08:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1456 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDB.inc
plugins/admin/systems/class_servGeneric.inc

index ad41a149fba046e79b2dd943fa4c53faa773871d..230407daf24872e885e9f8c001e9976fd40494e5 100644 (file)
@@ -147,6 +147,10 @@ class servdb extends plugin
           $message[]= sprintf(_("The attribute '%s' is empty or contains invalid characters."), $attr);
         }
       }
+      /* goKrbPassword is a must field, if goKrbServer is used as objectClass */
+      if ($this->goKrbPassword == "" ){
+        $message[]= sprintf(_("The specified kerberos password is empty."), $attr);
+      }
     }
     if (in_array("goFaxServer", $this->objectclasses)){
       if ($this->goFaxAdmin == "" || preg_match("/ /", $this->goFaxAdmin)){
index ee9c214a051989bcca1e8667e8d0b15061402e6c..1b9a8711647190677d9076e98bcc039c7a55f4e9 100644 (file)
@@ -216,6 +216,7 @@ class servgeneric extends plugin
     } else {
       if ($this->orig_dn != $this->dn){
         $this->move($this->orig_dn, $this->dn);
+        plugin::save();
       }
 
       $ldap->cd($this->dn);