From 53afd593d3e60ffe1d25bdcc80001189d0e37197 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 6 Feb 2006 06:14:26 +0000 Subject: [PATCH] Skip Zones for termDns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2622 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNS.inc | 2 ++ plugins/admin/systems/class_termDNS.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index fa48534c4..be1cea9ee 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -131,6 +131,8 @@ class servdns extends plugin function execute() { + + print_a($this->Zones); /* Call parent execute */ plugin::execute(); diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index cc4c60583..abb4ad4f3 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -68,7 +68,7 @@ class termDNS extends plugin /* Get all records */ $ldap = $this->config->get_ldap_link(); $ldap->cd($this->dn); - $ldap->search("(&(objectClass=dNSZone)(zoneName=*))",array("*")); + $ldap->search("(&(objectClass=dNSZone)(zoneName=*)(!(relativeDomainName=@)))",array("*")); while($attrs = $ldap->fetch()){ /* If relative domainname == cn -- 2.30.2