Code

Updated kerbers MIT password class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 May 2008 11:23:48 +0000 (11:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 May 2008 11:23:48 +0000 (11:23 +0000)
-Added checks.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10789 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc

index 1579c876f17e638956572b72f65f4bd532d0e516..a0db3893a8be26d5e4e7c5d9bcedbb2e53f17d4e 100644 (file)
@@ -514,7 +514,13 @@ class passwordMethodMIT extends passwordMethod
   function check()
   {
     $message = array();
-    echo "Checks missing";
+
+    if(!preg_match("/^[0-9]*$/",$this->MAX_LIFE)){
+      $message[] = msgPool::invalid(_("Ticket max life"),$this->MAX_LIFE,"/[0-9]/");
+    }
+    if(!preg_match("/^[0-9]*$/",$this->MAX_RENEWABLE_LIFE)){
+      $message[] = msgPool::invalid(_("Ticket max renew"),$this->MAX_RENEWABLE_LIFE,"/[0-9]/");
+    }
     return($message);
   }