From: hickert Date: Wed, 7 Dec 2005 08:42:03 +0000 (+0000) Subject: Set goFonHardware defaultIP to dynamic, and added new mac address check, to avoid... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=047c1f31fa1d8afb9522737bf87c011684b39bd3;p=gosa.git 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 --- 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);