From 309ce748c6e54b8b1d8c14a38c2ad61b2d78d9de Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 6 May 2008 11:23:48 +0000 Subject: [PATCH] Updated kerbers MIT password class -Added checks. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10789 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../services/kerberos/class_password-methods-MIT.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); } -- 2.30.2