Code

Skip Zones for termDns
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Feb 2006 06:14:26 +0000 (06:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Feb 2006 06:14:26 +0000 (06:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2622 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDNS.inc
plugins/admin/systems/class_termDNS.inc

index fa48534c49945a75f4d6f3b004538c37d51fae9c..be1cea9ee72b9f922b907073485dd75a185ff7e4 100644 (file)
@@ -131,6 +131,8 @@ class servdns extends plugin
 
   function execute()
   {
+
+  print_a($this->Zones);
        /* Call parent execute */
        plugin::execute();
 
index cc4c605839bbbcab352bb8d737d952e724b00fbc..abb4ad4f3a1f1622df142c26fb8b8a29749ee0ab 100644 (file)
@@ -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