From f44feabf84d81def580485329260000a4cf75a36 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 18 Sep 2009 07:54:40 +0000 Subject: [PATCH] Updated IP recognition git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14288 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_termDNS.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index 37553c2ab..df1944d3e 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -1123,9 +1123,11 @@ class termDNS extends plugin "(objectClass=gotoPrinter)". "(objectClass=ipHost)"; $list = array(); - $ldap->search("(&(|{$ocs})(ipHostNumber={$net}*))",array("ipHostNumber")); + $ldap->search("(&(|{$ocs})(ipHostNumber=*))",array("ipHostNumber")); while($attrs = $ldap->fetch()){ - $list[] = $attrs['ipHostNumber'][0]; + if (preg_match("/^$net\./", $attrs['ipHostNumber'][0])) { + $list[] = $attrs['ipHostNumber'][0]; + } } // Set starting ip. -- 2.30.2