From: hickert Date: Tue, 6 May 2008 11:23:48 +0000 (+0000) Subject: Updated kerbers MIT password class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=309ce748c6e54b8b1d8c14a38c2ad61b2d78d9de;p=gosa.git Updated kerbers MIT password class -Added checks. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10789 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc index 1579c876f..a0db3893a 100644 --- a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc +++ b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc @@ -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); }