From 5dae0e33532654f306420b456544f28d69214678 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Tue, 18 Jun 2019 19:30:34 +0200
Subject: [PATCH] fix list of pac-domains

---
 hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java    |    5 ++++-
 hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java |    5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
index 939ac7e..d6e97df 100644
--- a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
+++ b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -123,7 +123,10 @@
 		final List<?> pacsList = pacsQuery.getResultList();
 		for (final Object obj : pacsList) {
 			if (obj instanceof Pac) {
-				domsNames.add(((Pac) obj).getName() + ".hostsharing.net");
+				final Pac p = (Pac) obj;
+				if ("PAC/WEB".equals(p.getBasepac().getName())) {
+					domsNames.add(p.getName() + ".hostsharing.net");
+				}
 			}
 		}
 		final Map<String, Object> namedZonesTemplateVars = new HashMap<String, Object>();
diff --git a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
index 95f00a3..ba69558 100644
--- a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
+++ b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -169,7 +169,10 @@
 		final List<?> pacsList = pacsQuery.getResultList();
 		for (final Object obj : pacsList) {
 			if (obj instanceof Pac) {
-				domsNames.add(((Pac) obj).getName() + ".hostsharing.net");
+				final Pac p = (Pac) obj;
+				if ("PAC/WEB".equals(p.getBasepac().getName())) {
+					domsNames.add(p.getName() + ".hostsharing.net");
+				}
 			}
 		}
 		final Map<String, Object> namedZonesTemplateVars = new HashMap<String, Object>();

--
Gitblit v1.9.0-SNAPSHOT