From: cajus Date: Fri, 18 Sep 2009 07:54:40 +0000 (+0000) Subject: Updated IP recognition X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f44feabf84d81def580485329260000a4cf75a36;p=gosa.git Updated IP recognition git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14288 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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.