From 047c1f31fa1d8afb9522737bf87c011684b39bd3 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 7 Dec 2005 08:42:03 +0000 Subject: [PATCH] Set goFonHardware defaultIP to dynamic, and added new mac address check, to avoid configuration generation errors. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2244 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_phoneGeneric.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc index 38839d754..13fa101e9 100644 --- a/plugins/admin/systems/class_phoneGeneric.inc +++ b/plugins/admin/systems/class_phoneGeneric.inc @@ -21,7 +21,7 @@ class phoneGeneric extends plugin var $goFonType = ""; var $goFonDmtfMode = ""; var $goFonHost = ""; - var $goFonDefaultIP = ""; + var $goFonDefaultIP = "dynamic"; var $goFonQualify = ""; var $goFonAuth = ""; var $goFonSecret = ""; @@ -284,6 +284,11 @@ class phoneGeneric extends plugin if (!preg_match("/^$num\\.$num\\.$num\\.$num$/", $this->ipHostNumber)){ $message[]= _("Wrong IP format in field IP-address."); } + + $tr = count(split(":",$this->macAddress)); + if($tr!=6){ + $message[]=(_("The given macaddress is invalid. There must be 6 2byte segments seperated by ':'.")); + } $ui= get_userinfo(); $acl= get_permissions ($this->dn, $ui->subtreeACL); -- 2.30.2