summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/dhcp
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/dhcp')
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/delete_confirm.php39
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcp.dwt85
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcp.php24
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcp_footer.inc.php19
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcp_header.inc.php29
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcp_menu.php215
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcp_start.dwt32
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpnopool.dwt53
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpnopool.php128
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcppool.dwt123
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcppool.php166
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcppool_add.php106
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcppool_new.dwt49
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcppool_new.php201
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcppools_change.php336
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpservice.dwt262
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpservice.php182
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpservice_add.php70
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php229
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpservice_delete.php37
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.dwt219
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.php125
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_add.php76
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_change.php294
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_delete.php36
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.dwt36
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php89
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/menu.dwt32
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.dwt151
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.php75
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.dwt144
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.php109
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/no_dhcp.dwt27
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/no_dhcp.php23
34 files changed, 0 insertions, 3821 deletions
diff --git a/ldap-site-mngmt/webinterface/dhcp/delete_confirm.php b/ldap-site-mngmt/webinterface/dhcp/delete_confirm.php
deleted file mode 100644
index 3bb798b2..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/delete_confirm.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-include('../standard_header.inc.php');
-
-$dn = $_POST['dn'];
-$name = $_POST['name'];
-$delurl = $_POST['delurl'];
-$backurl = $_POST['backurl'];
-$successurl = $_POST['successurl'];
-$mnr = $_POST['mnr'];
-
-echo "
-<html>
-<head>
- <title>AU Management</title>
- <link rel='stylesheet' href='../styles.css' type='text/css'>
-</head>
-<body>
-<table border='0' cellpadding='30' cellspacing='0'>
- <tr>
- <td>
- Wollen Sie das Objekt <b>".$name."</b> wirklich l&ouml;schen?<br><br>
- <form action='".$delurl."' method='post'>
- Falls ja:<br><br>
- <input type='hidden' name='dn' value='".$dn."'>
- <input type='hidden' name='name' value='".$name."'>
- <input type='hidden' name='successurl' value='".$successurl."'>
- <input type='hidden' name='mnr' value='".$mnr."'>
- <input type='Submit' name='apply' value='l&ouml;schen' class='small_loginform_button'><br><br>
- </form>
- <form action='".$backurl."' method='post'>
- Falls, nein:<br><br>
- <input type='Submit' name='apply' value='zur&uuml;ck' class='small_loginform_button'>
- </form>
- </td>
- </tr>
-</table>
-</body>
-</html>";
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcp.dwt b/ldap-site-mngmt/webinterface/dhcp/dhcp.dwt
deleted file mode 100644
index 9946aae9..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcp.dwt
+++ /dev/null
@@ -1,85 +0,0 @@
-<html>
-
-<head>
- <title>{SEITENTITEL}</title>
- <link rel='stylesheet' href='../styles.css' type='text/css'></head>
-<body>
-
-<table cellpadding='0' cellspacing='0' border='0' width='100%' style='background-color: #F0F0F0;border-color: #505050; border-style: solid; border-width: 0 0 1 0;'>
- <tr>
- <td width='30%'>
- <table cellpadding='5' cellspacing='0' border='0' width='100%'>
- <tr valign='top'>
- <td width='1'></td>
- <td><h2>Client / IP Management</h2></td>
- </tr>
- </table>
- </td>
-
- <td width='45%'>
- <table cellpadding='5' cellspacing='0' border='0' width='100%'>
- <tr valign='top' align='left'>
- <td>
- <h4><a href='../start.php' class='headerlink'>Startseite</a>
- &nbsp;>>&nbsp; <a href='../au/au.php' class='headerlink'>{AU}</a> &nbsp;[ {DOMAIN} ]</h4>
- </td>
- </tr>
- </table>
- </td>
- <td width='25%'>
- <table cellpadding='5' cellspacing='0' border='0' width='100%' align='right'>
- <tr valign='top' align='right'>
- <td>
- {LOGIN}
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan='3'>{MAINMENU}</td>
- </tr>
-</table>
-
-<br>
-
-
-
-<table cellpadding='5' cellspacing='0' border='0' width='100%' height='85%'>
-
- <tr valign='top' height='100%'>
- <td width='28%'>
- <table cellpadding='5' cellspacing='0' border='0' width='100%'>
- <tr>
- <td>
-
- {NAVIGATION}
-
- </td>
- </tr>
- <tr>
- <td>
-
- {IPBLOCKS}
-
- </td>
- </tr>
- </table>
- </td>
-
- <td width='72%'>
- <table cellpadding='5' cellspacing='0' border='0' width='100%'>
- <tr><td>
-
- {HAUPTFENSTER}
-
- </td></tr>
- </table>
- </td>
-
- </tr>
-</table>
-
-</body>
-
-</html>
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcp.php b/ldap-site-mngmt/webinterface/dhcp/dhcp.php
deleted file mode 100644
index a54d5b17..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcp.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "dhcp_start.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = 0;
-$sbmnr = -1;
-
-###################################################################################
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcp_footer.inc.php b/ldap-site-mngmt/webinterface/dhcp/dhcp_footer.inc.php
deleted file mode 100644
index 7849823e..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcp_footer.inc.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-$template->assign(array("PFAD" => $START_PATH));
-
-# Daten in die Vorlage parsen
-$template->parse("LOGIN", "Login");
-$template->parse("MAINMENU", "Mmenu");
-$template->parse("NAVIGATION", "Menu");
-$template->parse("IPBLOCKS", "IPBlocks");
-$template->parse("HAUPTFENSTER", "Webseite");
-$template->parse("PAGE", "Vorlage");
-
-# Fertige Seite an den Browser senden
-$template->FastPrint("PAGE");
-
-# Abmelden vom LDAP
-ldap_unbind($ds);
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcp_header.inc.php b/ldap-site-mngmt/webinterface/dhcp/dhcp_header.inc.php
deleted file mode 100644
index 8cd98c00..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcp_header.inc.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-# 1. Seitentitel - wird in der Titelleiste des Browser angezeigt.
-$titel = "DHCP Management";
-# 2. Nummer des zugehörigen Hauptmenus (Registerkarte) beginnend bei 0, siehe Dokumentation.doc.
-$mainnr = 2;
-
-
-$template = new FastTemplate(".");
-# dem erstellten Template-Objekt eine Vorlage zuweisen
-$definedTemplates = array("Vorlage" => "dhcp.dwt",
- "Login" => "../logout_form.inc.dwt",
- "Mmenu" => "../hauptmenue.dwt",
- "Menu" => "menu.dwt",
- "IPBlocks" => "../common/ipblocks.dwt",
- "Webseite" => $webseite);
-if (isset($additionalTemplates)) {
- foreach ($additionalTemplates as $templateKey => $templateFile) {
- $definedTemplates[$templateKey] = $templateFile;
- }
-}
-$template->define($definedTemplates);
-$template->assign(array("SEITENTITEL" => $titel, "ROLLE" => "mainadmin", "AU" => $au_ou, "DOMAIN" => $assocdom, "USERCN" => $usercn));
-
-
-include("dhcp_menu.php");
-include("../common/ip_blocks.inc.php");
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcp_menu.php b/ldap-site-mngmt/webinterface/dhcp/dhcp_menu.php
deleted file mode 100644
index 01ec5b92..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcp_menu.php
+++ /dev/null
@@ -1,215 +0,0 @@
-<?php
-
-function createDhcpMenu($rollen, $mnr, $auDN, $sbmnr) {
-
- global $template, $START_PATH, $rootAU;
-
- $mipbs = get_maxipblocks_au($auDN);
- #echo "MIPB: "; print_r ($mipbs); echo "<br>";
- if ($mipbs[0] != ""){
- $hauptmenu = array();
- }else{
- $hauptmenu = array(array("link" => "no_dhcp.php",
- "text" => "&Uuml;bersicht",
- "zugriff" => "alle"));
- }
-
- $pools = get_dhcppools($auDN, array("dn"));
- if (count($pools) == 0){
- $poollink = "dhcpnopool.php";
- }else{
- $poollink = "dhcppool.php";
- }
-
- $i=0;
- if ( $auDN == $rootAU ) {
- $dhcpservice_array = get_dhcpservices($auDN,array("dn","cn"));
- if (count($dhcpservice_array) == 0){
- $dhcpsvlink = "new_dhcpservice.php?mnr=1";
- }
- else {
- $dhcpsvlink = "dhcpservice.php?mnr=1";
- }
- $hauptmenu []= array("link" => $dhcpsvlink,
- "text" => "DHCP Service",
- "zugriff" => array("MainAdmin","DhcpAdmin"));
- $i++;
- }
- if ($mipbs[0] != ""){
- if ( check_if_max_networks() ){
- $hauptmenu [] = array("link" => "dhcpsubnets.php?mnr=".$i,
- "text" => "DHCP Subnets",
- "zugriff" => array("MainAdmin","DhcpAdmin"));
-
- $subnets = array();
- # falls komplette Netze verfügbar, link zum Neuanlegen
- if ( check_if_free_networks() ){
- #$dhcpsubnet_array = get_dhcpsubnets($auDN,array("dn","cn"));
- /*for ($j=0;$j<count($dhcpsubnet_array);$j++){
- $subnets[] = array("link" => "dhcpsubnet.php?dn=".$dhcpsubnet_array[$j]['dn']."&mnr=".$i."&sbmnr=".$j,
- "text" => $dhcpsubnet_array[$j]['cn'],
- "zugriff" => array("MainAdmin","DhcpAdmin"));
- }*/
- $subnets[] = array("link" => "new_dhcpsubnet.php?mnr=".$i."&sbmnr=0",
- "text" => "Neues DHCP Subnet anlegen",
- "zugriff" => array("MainAdmin","DhcpAdmin"));
- }
- $i++;
- $hauptmenu [] = array("link" => $poollink."?mnr=".$i,
- "text" => "Dynamische DHCP Pools",
- "zugriff" => array("MainAdmin","DhcpAdmin"));
-
- $submenu = array(#array(),
- $subnets,
- array());
- }else{
- $hauptmenu [] = array("link" => $poollink."?mnr=".$i,
- "text" => "Dynamische DHCP Pools",
- "zugriff" => array("MainAdmin","DhcpAdmin"));
- }
- }
-
- # Zusammenstellen der Menuleiste
- $template->define_dynamic("Hauptmenu", "Menu");
- $template->define_dynamic("Submenu", "Menu");
- $i=0;
- $maxmenu = count($hauptmenu);
-
- foreach($hauptmenu as $item) {
- $template->clear_parse("SUBMENU_LIST");
- if($item['zugriff'] === "alle" || vergleicheArrays($rollen , $item['zugriff'])) {
-
- $subempty = 0;
- $j=0;
- $maxsub = count($submenu[$mnr]);
- if($maxsub > 0){
- foreach($submenu[$mnr] as $item2) {
-
- if($item2['zugriff'] === "alle" || vergleicheArrays($rollen, $item2['zugriff'])) {
- if($i != $mnr){
- $template->assign(array("SUB" => ""));
- # "LINK_S" => "",
- # "TEXT_S" => ""));
- $template->parse("SUBMENU_LIST", ".Submenu");
- $template->clear_dynamic("Submenu");
- }
- else{
- if ($j==0) {
- if ($sbmnr==0) {
- if($maxsub == 1){$zwisch="";}
- else {$zwisch="";}
- $lastaktive=true;
- $farb="#505050";
- }
- else{
- if($maxsub == 1){$zwisch="";}
- else {$zwisch="";}
- $farb="#A0A0A0";
- $lastaktive=false;
- }
- }
- else {
- if ($sbmnr==$j) {
- if($maxsub == $j+1){$zwisch="";}
- else {$zwisch="";}
- $lastaktive=true;
- $farb="#505050";
- }
- else {
- $farb="#A0A0A0";
- if($maxsub == $j+1){$zwisch="";}
- else {$zwisch="";}
- # if ($lastaktive) {$zwisch="branch";}
- # else {$zwisch="branch";}
- $lastaktive=false;
- }
- }
- $htmlcode= "
- <tr height='4'>
- <td></td><td></td><td></td><td></td>
- </tr>
- <tr>
- <td width='8%'>&nbsp;</td>
- <td width='8%' align='right'>".$zwisch."</td>
- <td width='74%' align='left' style='border-width:1 1 1 1;border-color:#000000;border-style:solid;padding:2;padding-left:15px;background-color:{FARBE_S}'>
- <a href='".$item2['link']."' style='text-decoration:none'><code class='submenue_schrift'>".$item2['text']."</code></a></td>
- <td width='10%'>&nbsp;</td>
- </tr>
- ";
- $template->assign(array("SUB" => $htmlcode));
- $template->assign(array("FARBE_S" => $farb));
- $template->parse("SUBMENU_LIST", ".Submenu");
- $template->clear_dynamic("Submenu");
- }
- }
- else {
- $subempty++;
- }
- $j=$j+1;
- }
- }
- if($subempty == count($submenu[$mnr])) {
- $template->assign(array("SUB" => ""));
- # "LINK_S" => "",
- # "TEXT_S" => ""));
- $template->parse("SUBMENU_LIST", ".Submenu");
- $template->clear_dynamic("Submenu");
- }
-
- # weiter im Hauptmenü
- if ($i==0) {
- if ($mnr==0) {
- if(count($submenu[$i][0]) != 0){
- if($maxmenu == 1){$zwisch="";} # {$zwisch="<img style='border-width:0;border-style=none;' src='../pics/minus2.gif'>";}
- else {$zwisch="";}
- }else{$zwisch="";}
- $lastaktive=true;
- $farb="#505050";
- }
- else{
- if(count($submenu[$i][0]) != 0){
- if($maxmenu == 1){$zwisch="<a href='{LINK_M}' style='border-style=none;text-decoration:none'>
- <img style='border-width:0;border-style=none;' src='../pics/plus2.gif'></a>";}
- else {$zwisch="<a href='{LINK_M}' style='border-style=none;text-decoration:none'>
- <img style='border-width:0;border-style=none;' src='../pics/plus2.gif'></a>";}
- }else{$zwisch="";}
- $farb="#A0A0A0";
- $lastaktive=false;
- }
- }
- else {
- if ($mnr==$i) {
- if(count($submenu[$mnr][0]) != 0){
- if($maxmenu == $i+1){$zwisch="";}
- else {$zwisch="";}
- }else{$zwisch="";}
- $lastaktive=true;
- $farb="#505050";
- }
- else {
- $farb="#A0A0A0";
- if(count($submenu[$i][0]) != 0){
- if($maxmenu == $i+1){$zwisch="<a href='{LINK_M}' style='border-style=none;text-decoration:none'>
- <img style='border-width:0;border-style=none;' src='../pics/plus2.gif'></a>";}
- else {$zwisch="<a href='{LINK_M}' style='border-style=none;text-decoration:none'>
- <img style='border-width:0;border-style=none;' src='../pics/plus2.gif'></a>";}
- }else{$zwisch="";}
- #if ($lastaktive) {$zwisch="";}
- #else {$zwisch="";}
- $lastaktive=false;
- }
- }
- $template->assign(array("ICON" => $zwisch,
- "FARBE" => $farb,
- "LINK_M" => $item["link"],
- "TEXT_M" => $item["text"]));
- $template->parse("HAUPTMENU_LIST", ".Hauptmenu");
- $template->clear_dynamic("Hauptmenu");
- }
- $i=$i+1;
- }
- if ($lastaktive) {$template->assign(array("ENDE" => ""));}
- else {$template->assign(array("ENDE" => ""));}
-}
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcp_start.dwt b/ldap-site-mngmt/webinterface/dhcp/dhcp_start.dwt
deleted file mode 100644
index a80c77d7..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcp_start.dwt
+++ /dev/null
@@ -1,32 +0,0 @@
-<table border='0' cellpadding='5' cellspacing='0' width='90%'>
- <tr>
- <td colspan='2'><h3>Modul - DHCP Management: </h3></td>
- </tr>
- <tr>
- <td height='10'></td>
- </tr>
- <tr>
- <td>
- <p>Modul zur Verwaltung von DHCP Subnets, dynamischen Pools und Classes <br>
- Benutzen Sie die Navigation links, um die einzelnen Verwaltungsbereiche anzusteuern:</p>
- <ul>
- <li><p><b>DHCP Subnets</b><br>
- Verwalten Sie ihre Subnetze ... </p>
- </li>
- <li><p><b>DHCP Pools</b><br>
- Weisen Sie ihren DHCP Subnets IP Ranges zur dynamischen Adressvergabe zu ... </p>
- </li>
- <li><p><b>DHCP Classes</b><br>
- Verwalten Sie Klassen von DHCP Objekten ...</p>
- </li>
- </ul>
-
- <br>
- <p>Die Verwaltung von DHCP Hosts, etwa das Eintragen ihrer Rechner im zentralen DHCP Dienst, erfolgt &uuml;ber das<br>
- Modul <a class='headerlink' href='../computers/computers.php' >Rechner Management</a>.
-
- </p>
- </td>
- </tr>
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpnopool.dwt b/ldap-site-mngmt/webinterface/dhcp/dhcpnopool.dwt
deleted file mode 100644
index 63047a9a..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpnopool.dwt
+++ /dev/null
@@ -1,53 +0,0 @@
-<table border='0' cellpadding='5' cellspacing='0' width='100%'>
- <tr>
- <td colspan='2'><h3>Dynamische DHCP Pools </h3></td>
- </tr>
-
- <tr>
- <td>Noch keine dynamischen DHCP Pools angelegt</td>
- </tr>
-
- <tr>
- <td height='30'></td>
- </tr>
-
- <tr>
- <td colspan='2'><h4>Dynamischen DHCP Pool hinzuf&uuml;gen </h4></td>
- </tr>
- <tr>
- <td>
- <table cellpadding='7' cellspacing='0' border='0' align='left' width='90%' style='border-width: 0 0 0 0;'>
- <form action='dhcppool_add.php' method='post'>
-
- <tr valign='bottom'>
- <td width='50%' class='tab_h'><b>IP Range (innerhalb eines Subnetzes)</b><br>
- weitere Ranges k&ouml;nnen sp&auml;ter hinzugef&uuml;gt werden</td>
- <td width='50%' class='tab_h'><b>Unknown Clients</b></td>
- </tr>
-
- <tr height='50' valign='top'>
- <td class='tab_d'>
- <input type='Text' name='addrange1' value='' size='15' maxlength='15' class='medium_form_field'>
- &nbsp;&nbsp; - &nbsp;&nbsp;
- <input type='Text' name='addrange2' value='' size='15' maxlength='15' class='medium_form_field'>
- </td>
- <td class='tab_d'>
- <select name='unknownclients' size='3' class='small_form_selectbox'>
- <option selected value='deny'> DENY </option>
- <option value='allow'> ALLOW </option>
- <option value='ignore'> IGNORE </option>
- </select>
- </td>
- </tr>
- <input type='hidden' name='mnr' value='{MNR}'>
-
- </table></td>
- </tr>
- <tr>
- <td>
- <input type='Submit' name='apply' value='anlegen' class='small_loginform_button'>
- </form></td>
- </tr>
-
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpnopool.php b/ldap-site-mngmt/webinterface/dhcp/dhcpnopool.php
deleted file mode 100644
index fd198bc1..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpnopool.php
+++ /dev/null
@@ -1,128 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "dhcpnopool.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = 3;
-$sbmnr = -1;
-
-###################################################################################
-
-$mnr = $_GET['mnr'];
-$sbmnr = $_GET['sbmnr'];
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-###################################################################################
-
-$template->assign(array("POOLDN" => "",
- "CN" => "",
- "SUBNETDN" => "",
- "SUBNET" => "",
- "RANGE1" => "",
- "RANGE2" => "",
- "DESCRIPTION" => "",
- "STATEMENTS" => "",
- "ALLOW" => "",
- "DENY" => "",
- "IGNORE" => "",
- "DEFAULTLEASE" => "",
- "MAXLEASE" => "",
- "MNR" => $mnr));
-/*
-# DHCP Pools Daten holen
-$attributes = array("dn","cn","dhcphlpcont","dhcprange","description","dhcpstatements","dhcpoptallow",
- "dhcpoptdefault-lease-time","dhcpoptdeny","dhcpoptignore","dhcpoptmax-lease-time",
- "dhcpoptgeneric");
-$pools = get_dhcppools($auDN, $attributes);
-#print_r($pools);
-
-$template->define_dynamic("Dhcppools", "Webseite");
-$template->define_dynamic("Dhcpranges", "Webseite");
-
-# Für jeden Pool ...
-foreach ($pools as $pool){
-
- # DHCP Subnet des Pools
- $subnet = ldap_explode_dn($pool['dhcphlpcont'],1);
- $subnetdnexp = ldap_explode_dn( $pool['dhcphlpcont'], 0);
- $subnetauexp = array_slice($subnetdnexp, 3);
- $subnetau = implode(',',$subnetauexp);
-
-
- $template->clear_parse("DHCPRANGES_LIST");
-
- # DHCP Ranges
- if (count($pool['dhcprange']) != 0){
- #$template->define_dynamic("Dhcpranges", "Webseite");
- if (count($pool['dhcprange']) > 1){
- foreach ($pool['dhcprange'] as $dhcprange){
- $iprange = explode('_',$dhcprange);
- $template->assign(array(
- "RANGE1" => $iprange[0],
- "RANGE2" => $iprange[1],
- "RPOOLDN" => $pool['dn']));
- $template->parse("DHCPRANGES_LIST", ".Dhcpranges");
- $template->clear_dynamic("Dhcpranges");
- }
- }else{
- $iprange = explode('_',$pool['dhcprange']);
- $template->assign(array(
- "RANGE1" => $iprange[0],
- "RANGE2" => $iprange[1],
- "RPOOLDN" => $pool['dn']));
- $template->parse("DHCPRANGES_LIST", ".Dhcpranges");
- $template->clear_dynamic("Dhcpranges");
- }
- }
-
- # Unknown-Clients
- if ($pool['dhcpoptallow'] == "unknown-clients"){
- $unknownclients = "allow";
- $ucselectbox = "<option selected value='allow'> ALLOW </option>
- <option value='deny'> DENY </option>
- <option value='ignore'> IGNORE </option>";
- }
- elseif ($pool['dhcpoptignore'] == "unknown-clients") {
- $unknownclients = "ignore";
- $ucselectbox = "<option selected value='ignore'> IGNORE </option>
- <option value='allow'> ALLOW </option>
- <option value='deny'> DENY </option>";
- }
- else{
- $unknownclients = "deny";
- $ucselectbox = "<option selected value='deny'> DENY </option>
- <option value='allow'> ALLOW </option>
- <option value='ignore'> IGNORE </option>";
- }
-
- $template->assign(array("POOLDN" => $pool['dn'],
- "CN" => $pool['cn'],
- "SUBNETDN" => $pool['dhcphlpcont'],
- "SUBNET" => $subnet[0],
- "SUBNETAU" => $subnetau,
- "DESCRIPTION" => $pool['description'],
- "STATEMENTS" => $pool['dhcpstatements'],
- "UCSELECT" => $ucselectbox,
- "UCNOW" => $unknownclients,
- "ALLOW" => $pool['dhcpoptallow'],
- "DENY" => $pool['dhcpoptdeny'],
- "IGNORE" => $pool['dhcpoptignore'],
- "DEFAULTLEASE" => $pool['dhcpoptdefault-lease-time'],
- "MAXLEASE" => $pool['dhcpoptmax-lease-time'],
- "MNR" => $mnr));
- $template->parse("DHCPPOOLS_LIST", ".Dhcppools");
-
-}
-*/
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcppool.dwt b/ldap-site-mngmt/webinterface/dhcp/dhcppool.dwt
deleted file mode 100644
index a4a1f79b..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcppool.dwt
+++ /dev/null
@@ -1,123 +0,0 @@
-<table border='0' cellpadding='5' cellspacing='0' width='100%'>
- <tr>
- <td width='80%'>
- <h3>Dynamische DHCP Pools </h3>
- Administration Ihrer eingetragenen <b>dynamischen DHCP Pools</b>:<br>
- Bearbeiten von bzw. Anlegen neuer IP Ranges zur dynamischen Vergabe. Zulassen von unbekannten bzw. einschr&auml;nken auf bekannte Clients (d.h. im DHCP angelegte Clients).<br>
- Sie k&ouml;nnen IP Ranges nur entsprechend der Ihnen noch frei verf&uuml;baren IP Adressen definieren.<br><br>
- &Uuml;ber die <b>Eingabemaske</b> unten k&ouml;nnen Sie weitere Pools anlegen
- </td>
- <td>&nbsp;</td>
- </tr>
-
- <tr><td colspan='2'>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <form action='dhcppools_change.php' method='post'>
-
- <tr>
- <td width='30%' class='tab_h'><b>Subnetz</b></td>
- <td width='50%' class='tab_h'><b>IP Ranges (innerhalb Subnetz)</b></td>
- <td width='20%' class='tab_h'><b>Unknown Clients</b></td>
- </tr>
-
- <!-- BEGIN DYNAMIC BLOCK: Dhcppools -->
-
- <tr height='50' valign='top'>
- <td class='tab_d_ohne'><b>{SUBNET}/24</b><br><br>
- <input type='checkbox' name='delpool[]' value='{POOLDN}' size='10' class='medium_form_field'>
- Pool l&ouml;schen</td>
-
- <td class='tab_d_ohne'>
-
- <!-- BEGIN DYNAMIC BLOCK: Dhcpranges -->
-
- <input type='Text' name='range1[]' value='{RANGE1}' size='15' maxlength='15' class='medium_form_field'>
- &nbsp;&nbsp; - &nbsp;&nbsp;
- <input type='Text' name='range2[]' value='{RANGE2}' size='15' maxlength='15' class='medium_form_field'>
- <input type='hidden' name='oldrange1[]' value='{RANGE1}'>
- <input type='hidden' name='oldrange2[]' value='{RANGE2}'><br>
- <input type='hidden' name='rangepooldn[]' value='{RPOOLDN}'>
-
- <!-- END DYNAMIC BLOCK: Dhcpranges -->
-
- <input type='Text' name='addrange1[]' value='' size='15' maxlength='15' class='medium_form_field'>
- &nbsp;&nbsp; - &nbsp;&nbsp;
- <input type='Text' name='addrange2[]' value='' size='15' maxlength='15' class='medium_form_field'>
- </td>
-
- <td class='tab_d_ohne'>
- <select name='unknownclients[]' size='3' class='100_form_selectbox'>
- {UCSELECT}
- </select>
- <input type='hidden' name='olduc[]' value='{UCNOW}'> &nbsp;
- </td>
- </tr>
- <tr height='50' valign='top'>
- <td class='tab_d'><b>Remote Boot Service:</b><br>{RBS}</td>
- <td class='tab_d' colspan='2'>{RBSSELECT}</td>
- </tr>
-
- <input type='hidden' name='pooldn[]' value='{POOLDN}'>
- <input type='hidden' name='oldrbs[]' value='{OLDRBS}'>
- <input type='hidden' name='subnet[]' value='{SUBNET}'>
- <input type='hidden' name='subnetau[]' value='{SUBNETAU}'>
-
- <!-- END DYNAMIC BLOCK: Dhcppools -->
-
- <input type='hidden' name='mnr' value='{MNR}'>
-
- </table></td>
- </tr>
- <tr>
- <td colspan='2'><input type='Submit' name='apply' value='anwenden' class='small_loginform_button'>
- </form></td>
- </tr>
-
- <tr>
- <td height='50' colspan='2'></td>
- </tr>
- <tr>
- <td colspan='2'><h4>Dynamischen DHCP Pool hinzuf&uuml;gen </h4></td>
- </tr>
-
- <tr>
- <td colspan='2'>
- <table cellpadding='7' cellspacing='0' border='0' align='left' width='90%' style='border-width: 0 0 0 0;'>
- <form action='dhcppool_add.php' method='post'>
-
- <tr valign='bottom'>
- <td width='50%' class='tab_h'><b>IP Range (innerhalb eines Subnetzes)</b><br>
- weitere Ranges k&ouml;nnen sp&auml;ter hinzugef&uuml;gt werden</td>
- <td width='20%' class='tab_h'><b>Unknown Clients</b></td>
- <td width='30%' class='tab_h'><b>Remote Boot Service</b></td>
- </tr>
-
- <tr height='50' valign='top'>
- <td class='tab_d'>
- <input type='Text' name='addrange1' value='' size='15' maxlength='15' class='medium_form_field'>
- &nbsp;&nbsp; - &nbsp;&nbsp;
- <input type='Text' name='addrange2' value='' size='15' maxlength='15' class='medium_form_field'>
- </td>
- <td class='tab_d'>
- <select name='unknownclients' size='3' class='100_form_selectbox'>
- <option selected value='deny'> DENY </option>
- <option value='allow'> ALLOW </option>
- <option value='ignore'> IGNORE </option>
- </select>
- </td>
- <td class='tab_d'>{RBSADD}
- </td>
- </tr>
- <input type='hidden' name='mnr' value='{MNR}'>
-
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <input type='Submit' name='apply' value='anlegen' class='small_loginform_button'>
- </form></td>
- </tr>
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcppool.php b/ldap-site-mngmt/webinterface/dhcp/dhcppool.php
deleted file mode 100644
index aa58201f..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcppool.php
+++ /dev/null
@@ -1,166 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "dhcppool.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = 3;
-$sbmnr = -1;
-
-###################################################################################
-
-$mnr = $_GET['mnr'];
-$sbmnr = $_GET['sbmnr'];
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-###################################################################################
-
-# DHCP Pools Daten holen
-$attributes = array("dn","cn","dhcphlpcont","dhcprange","description","dhcpstatements","dhcpoptallow",
- "dhcpoptdefault-lease-time","dhcpoptdeny","dhcpoptignore","dhcpoptmax-lease-time",
- "dhcpoptgeneric","hlprbservice","dhcpoptfilename","dhcpoptnext-server");
-$pools = get_dhcppools($auDN, $attributes);
-
-if (count($pools) == 0){
- redirect(0, "dhcpnopool.php?mnr=".$mnr, "", $addSessionId = TRUE);
- die;
-}
-
-$template->assign(array("POOLDN" => "",
- "CN" => "",
- "SUBNETDN" => "",
- "SUBNET" => "",
- "RANGE1" => "",
- "RANGE2" => "",
- "DESCRIPTION" => "",
- "STATEMENTS" => "",
- "ALLOW" => "",
- "DENY" => "",
- "IGNORE" => "",
- "RBS" => "",
- "RBSSELECT" => "",
- "DEFAULTLEASE" => "",
- "MAXLEASE" => "",
- "MNR" => $mnr));
-
-
-$template->define_dynamic("Dhcppools", "Webseite");
-$template->define_dynamic("Dhcpranges", "Webseite");
-
-# Für jeden Pool ...
-foreach ($pools as $pool){
-
- # DHCP Subnet des Pools
- $subnet = ldap_explode_dn($pool['dhcphlpcont'],1);
- $subnetdnexp = ldap_explode_dn( $pool['dhcphlpcont'], 0);
- $subnetauexp = array_slice($subnetdnexp, 3);
- $subnetau = implode(',',$subnetauexp);
- $rbsDN = $pool['hlprbservice'];
-
-
- $template->clear_parse("DHCPRANGES_LIST");
-
- # DHCP Ranges
- if (count($pool['dhcprange']) != 0){
- #$template->define_dynamic("Dhcpranges", "Webseite");
- if (count($pool['dhcprange']) > 1){
- foreach ($pool['dhcprange'] as $dhcprange){
- $iprange = explode('_',$dhcprange);
- $template->assign(array(
- "RANGE1" => $iprange[0],
- "RANGE2" => $iprange[1],
- "RPOOLDN" => $pool['dn']));
- $template->parse("DHCPRANGES_LIST", ".Dhcpranges");
- $template->clear_dynamic("Dhcpranges");
- }
- }else{
- $iprange = explode('_',$pool['dhcprange']);
- $template->assign(array(
- "RANGE1" => $iprange[0],
- "RANGE2" => $iprange[1],
- "RPOOLDN" => $pool['dn']));
- $template->parse("DHCPRANGES_LIST", ".Dhcpranges");
- $template->clear_dynamic("Dhcpranges");
- }
- }
-
- # Unknown-Clients
- if ($pool['dhcpoptallow'] == "unknown-clients"){
- $unknownclients = "allow";
- $ucselectbox = "<option selected value='allow'> ALLOW </option>
- <option value='deny'> DENY </option>
- <option value='ignore'> IGNORE </option>";
- }
- elseif ($pool['dhcpoptignore'] == "unknown-clients") {
- $unknownclients = "ignore";
- $ucselectbox = "<option selected value='ignore'> IGNORE </option>
- <option value='allow'> ALLOW </option>
- <option value='deny'> DENY </option>";
- }
- else{
- $unknownclients = "deny";
- $ucselectbox = "<option selected value='deny'> DENY </option>
- <option value='allow'> ALLOW </option>
- <option value='ignore'> IGNORE </option>";
- }
-
- # RBS Setup
- $rbs_selectbox = "";
- $rbs_addselectbox = "";
- $altrbs = alternative_rbservices($rbsDN);
-
- $rbs_selectbox .= "<select name='rbs[]' size='4' class='tftp_form_selectbox'>
- <option selected value='none'>----------</option>";
- $rbs_addselectbox = "<select name='rbs' size='3' class='tftp_form_selectbox'>
- <option selected value='none'>----------</option>";
- if (count($altrbs) != 0){
- foreach ($altrbs as $item){
- $rbs_selectbox .= "<option value='".$item['dn']."'>".$item['cn']." ".$item['au']."</option>";
- $rbs_addselectbox .= "<option value='".$item['dn']."'>".$item['cn']." ".$item['au']."</option>";
- }
- }
- $rbs_selectbox .= "<option value=''>Kein RBS</option></select>";
- $rbs_addselectbox .= "</select>";
-
- if ($rbsDN == ""){
- $rbs = "Keine Einbindung";
- }else{
- $rbsdnexp = ldap_explode_dn($pool['hlprbservice'],1);
- $rbs = $rbsdnexp[0]."<br>DHCP Next-Server: ".$pool['dhcpoptnext-server']."<br>DHCP Filename: ".$pool['dhcpoptfilename'];
- }
-
-
- $template->assign(array("POOLDN" => $pool['dn'],
- "CN" => $pool['cn'],
- "SUBNETDN" => $pool['dhcphlpcont'],
- "SUBNET" => $subnet[0],
- "SUBNETAU" => $subnetau,
- "DESCRIPTION" => $pool['description'],
- "STATEMENTS" => $pool['dhcpstatements'],
- "UCSELECT" => $ucselectbox,
- "UCNOW" => $unknownclients,
- "ALLOW" => $pool['dhcpoptallow'],
- "DENY" => $pool['dhcpoptdeny'],
- "IGNORE" => $pool['dhcpoptignore'],
- "RBS" => $rbs,
- "RBSSELECT" => $rbs_selectbox,
- "RBSADD" => $rbs_addselectbox,
- "OLDRBS" => $rbsDN,
- "DEFAULTLEASE" => $pool['dhcpoptdefault-lease-time'],
- "MAXLEASE" => $pool['dhcpoptmax-lease-time'],
- "MNR" => $mnr));
- $template->parse("DHCPPOOLS_LIST", ".Dhcppools");
-
-}
-
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcppool_add.php b/ldap-site-mngmt/webinterface/dhcp/dhcppool_add.php
deleted file mode 100644
index bddb8282..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcppool_add.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-include('../standard_header.inc.php');
-
-$syntax = new Syntaxcheck;
-
-$range1 = $_POST['addrange1'];
-$range2 = $_POST['addrange2'];
-$unknownclients = $_POST['unknownclients'];
-$rbs = $_POST['rbs'];
-
-$mnr = $_POST['mnr'];
-
-$seconds = 2;
-$url = "dhcppool.php?mnr=".$mnr;
-
-echo "
-<html>
-<head>
- <title>Computers Management</title>
- <link rel='stylesheet' href='../styles.css' type='text/css'>
-</head>
-<body>
-<table border='0' cellpadding='30' cellspacing='0'>
-<tr><td>";
-
-
-if ($syntax->check_ip_syntax($range1) && $syntax->check_ip_syntax($range2)){
-
- $fs = explode('.',$range1);
- $fe = explode('.',$range2);
- if ( $fs[0] == $fe[0] && $fs[1] == $fe[1] && $fs[2] == $fe[2] ) {
- if ( $fs[3] <= $fe[3] ){
-
- # DHCP Subnet DN finden
- $subnet = implode(".", array($fs[0],$fs[1],$fs[2],"0"));
- print_r($subnet);echo"<br><br>";
- if(!($result = uniLdapSearch($ds, "ou=RIPM,".$suffix, "(&(objectclass=dhcpSubnet)(cn=$subnet))", array("dn","dhcphlpcont"), "", "sub", 0, 0))) {
- # redirect(5, "", $ldapError, FALSE);
- echo "no search";
- die;
- }
- $result = ldapArraySauber($result);
- #print_r($result);echo "<br><br>";
- if (count($result[0]) != 0){
-
- $subnetdn = $result[0]['dn'];
- $subnetdnexp = ldap_explode_dn( $subnetdn, 0);
- $subnetauexp = array_slice($subnetdnexp, 3);
- $subnetau = implode(',',$subnetauexp);
-
- # Range zusammenstellen
- $range = implode("_", array($range1,$range2));
-
- # Freie IP Bereiche testen
- $fipb_array = get_freeipblocks_au($auDN);
- for ($i=0; $i < count($fipb_array); $i++){
- if ( split_iprange($range,$fipb_array[$i]) != 0 ){
- $ipranges = split_iprange($range,$fipb_array[$i]);
- array_splice($fipb_array, $i, 1, $ipranges);
- break;
- }
- }
- if ($i < count($fipb_array) ){
- foreach ( $fipb_array as $item ){
- $entry ['FreeIPBlock'][] = $item;
- }
- $results = ldap_mod_replace($ds,$auDN,$entry);
- if ($results){
- echo "<br>Neue FIPBs erfolgreich eingetragen!<br>";
- $result = add_dhcppool($subnetdn,$range,$unknownclients,$result[0]['dhcphlpcont'],$rbs);
- if ($result){
- echo "<br>Dynamischer DHCP Pool erfolgreich eingetragen!<br>" ;
- update_dhcpmtime(array($subnetau));
- }else{
- echo "<br>Fehler beim eintragen des dynamischen DHCP Pools!<br>";
- # Range wieder in FIPBs aufnehmen.
- $entry2 ['FreeIPBlock'] = $range;
- ldap_mod_add($ds,$auDN,$entry2);
- merge_ipranges($auDN);
- }
- }else{
- echo "<br>Fehler beim eintragen der FIPBs!<br>";
- }
- }else{
- printf("<br>IP Range %s ist nicht im verfuegbaren Bereich!<br>", $range );
- }
- }else{
- echo "DHCP Subnet nicht im System vorhanden!<br>";
- }
- }else{
- echo "erster Range Wert gr&ouml;sser als zweiter Range Wert<br>";
- }
- }else{
- echo "Range nicht im gleichen Subnetz<br>";
- }
-}else{
- echo "falsche IP Syntax<br>";
-}
-
-$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
- Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>";
-redirect($seconds, $url, $mesg, $addSessionId = TRUE);
-
-echo "</td></tr></table></body>
-</html>";
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcppool_new.dwt b/ldap-site-mngmt/webinterface/dhcp/dhcppool_new.dwt
deleted file mode 100644
index 8c9aefdc..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcppool_new.dwt
+++ /dev/null
@@ -1,49 +0,0 @@
-<table border='0' cellpadding='5' cellspacing='0' width='100%'>
- <tr>
- <td colspan='2'><h3>Dynamische DHCP Pools </h3></td>
- </tr>
-
- <!-- BEGIN DYNAMIC BLOCK: Poolform -->
- {POOLFORMULAR}
- <!-- END DYNAMIC BLOCK: Poolform -->
-
- <tr>
- <td colspan='2'><h4>Dynamischen DHCP Pool hinzuf&uuml;gen </h4></td>
- </tr>
- <tr>
- <td>
- <table cellpadding='7' cellspacing='0' border='0' align='left' width='90%' style='border-width: 0 0 0 0;'>
- <form action='dhcppool_add.php' method='post'>
-
- <tr valign='bottom'>
- <td width='50%' class='tab_h'><b>IP Range (innerhalb eines Subnetzes)</b><br>
- weitere Ranges k&ouml;nnen sp&auml;ter hinzugef&uuml;gt werden</td>
- <td width='50%' class='tab_h'><b>Unknown Clients</b></td>
- </tr>
-
- <tr height='50' valign='top'>
- <td class='tab_d'>
- <input type='Text' name='addrange1' value='' size='15' maxlength='15' class='medium_form_field'>
- &nbsp;&nbsp; - &nbsp;&nbsp;
- <input type='Text' name='addrange2' value='' size='15' maxlength='15' class='medium_form_field'>
- </td>
- <td class='tab_d'>
- <select name='unknownclients' size='3' class='small_form_selectbox'>
- <option selected value='deny'> DENY </option>
- <option value='allow'> ALLOW </option>
- <option value='ignore'> IGNORE </option>
- </select>
- </td>
- </tr>
- <input type='hidden' name='mnr' value='{MNR}'>
-
- </table></td>
- </tr>
- <tr>
- <td>
- <input type='Submit' name='apply' value='anlegen' class='small_loginform_button'>
- </form></td>
- </tr>
-
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcppool_new.php b/ldap-site-mngmt/webinterface/dhcp/dhcppool_new.php
deleted file mode 100644
index 74592459..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcppool_new.php
+++ /dev/null
@@ -1,201 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "dhcppool.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = 3;
-$sbmnr = -1;
-
-###################################################################################
-
-$mnr = $_GET['mnr'];
-$sbmnr = $_GET['sbmnr'];
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-###################################################################################
-
-$template->define_dynamic("Poolform", "Webseite");
-$template->assign(array("POOLFORMULAR" => "",
- #"POOLDN" => "",
- "CN" => "",
- "SUBNETDN" => "",
- #"SUBNET" => "",
- #"RANGE1" => "",
- #"RANGE2" => "",
- "DESCRIPTION" => "",
- "STATEMENTS" => "",
- "DEFAULTLEASE" => "",
- "MAXLEASE" => "",
- "MNR" => $mnr));
-
-# DHCP Pools Daten holen
-$attributes = array("dn","cn","dhcphlpcont","dhcprange","description","dhcpstatements","dhcpoptallow",
- "dhcpoptdefault-lease-time","dhcpoptdeny","dhcpoptignore","dhcpoptmax-lease-time",
- "dhcpoptgeneric");
-$pools = get_dhcppools($auDN, $attributes);
-#print_r($pools);
-
-if (count($pools) != 0){
-
-
-
-$poolform = "
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <form action='dhcppools_change.php' method='post'>
-
- <tr>
- <td width='30%' class='tab_h'><b>Subnetz</b></td>
- <td width='50%' class='tab_h'><b>IP Ranges (innerhalb Subnetz)</b></td>
- <td width='20%' class='tab_h'><b>Unknown Clients</b></td>
- </tr>
-
- <!-- BEGIN DYNAMIC BLOCK: Dhcppools -->
-
- <tr height='50' valign='top'>
- <td class='tab_d'><b>{SUBNET}/24</b><br><br>
- <input type='checkbox' name='delpool[]' value='{POOLDN}' size='10' class='medium_form_field'>
- Pool l&ouml;schen (H&auml;kchen setzen)</td>
-
- <td class='tab_d'>
-
- <!-- BEGIN DYNAMIC BLOCK: Dhcpranges -->
-
- <input type='Text' name='range1[]' value='{RANGE1}' size='15' maxlength='15' class='medium_form_field'>
- &nbsp;&nbsp; - &nbsp;&nbsp;
- <input type='Text' name='range2[]' value='{RANGE2}' size='15' maxlength='15' class='medium_form_field'>
- <input type='hidden' name='oldrange1[]' value='{RANGE1}'>
- <input type='hidden' name='oldrange2[]' value='{RANGE2}'><br>
- <input type='hidden' name='rangepooldn[]' value='{RPOOLDN}'>
-
- <!-- END DYNAMIC BLOCK: Dhcpranges -->
-
- <input type='Text' name='addrange1[]' value='' size='15' maxlength='15' class='medium_form_field'>
- &nbsp;&nbsp; - &nbsp;&nbsp;
- <input type='Text' name='addrange2[]' value='' size='15' maxlength='15' class='medium_form_field'>
- </td>
-
- <td class='tab_d'>
- <select name='unknownclients[]' size='3' class='small_form_selectbox'>
- {UCSELECT}
- </select>
- <input type='hidden' name='olduc[]' value='{UCNOW}'> &nbsp;
- </td>
- </tr>
- <!--<tr>
- <td colspan='3' class='tab_d'><input type='checkbox' name='delpool[]' value='{POOLDN}' size='10' class='medium_form_field'>
- Pool l&ouml;schen (H&auml;kchen setzen)</td>
- </tr>-->
-
- <input type='hidden' name='pooldn[]' value='{POOLDN}'>
- <input type='hidden' name='subnet[]' value='{SUBNET}'>
- <input type='hidden' name='subnetau[]' value='{SUBNETAU}'>
-
- <!-- END DYNAMIC BLOCK: Dhcppools -->
-
- <input type='hidden' name='mnr' value='{MNR}'>
-
- </table></td>
- </tr>
- <tr>
- <td><input type='Submit' name='apply' value='anwenden' class='small_loginform_button'>
- </form></td>
- </tr>
-
- <tr>
- <td height='50'></td>
- </tr>";
-
-$template->assign(array("POOLFORMULAR" => $poolform));
-$template->parse("POOLFORM_LIST", "Poolform");
-#$template->clear_dynamic("Poolform");
-#$template->clear_parse("POOLFORM_LIST");
-
-$template->define_dynamic("Dhcppools", "Webseite");
-$template->define_dynamic("Dhcpranges", "Webseite");
-# Für jeden Pool ...
-foreach ($pools as $pool){
-
- # DHCP Subnet des Pools
- $subnet = ldap_explode_dn($pool['dhcphlpcont'],1);
- $subnetdnexp = ldap_explode_dn( $pool['dhcphlpcont'], 0);
- $subnetauexp = array_slice($subnetdnexp, 3);
- $subnetau = implode(',',$subnetauexp);
-
-
- $template->clear_parse("DHCPRANGES_LIST");
-
- # DHCP Ranges
- if (count($pool['dhcprange']) != 0){
- #$template->define_dynamic("Dhcpranges", "Webseite");
- if (count($pool['dhcprange']) > 1){
- foreach ($pool['dhcprange'] as $dhcprange){
- $iprange = explode('_',$dhcprange);
- $template->assign(array(
- "RANGE1" => $iprange[0],
- "RANGE2" => $iprange[1],
- "RPOOLDN" => $pool['dn']));
- $template->parse("DHCPRANGES_LIST", ".Dhcpranges");
- $template->clear_dynamic("Dhcpranges");
- }
- }else{
- $iprange = explode('_',$pool['dhcprange']);
- $template->assign(array(
- "RANGE1" => $iprange[0],
- "RANGE2" => $iprange[1],
- "RPOOLDN" => $pool['dn']));
- $template->parse("DHCPRANGES_LIST", ".Dhcpranges");
- $template->clear_dynamic("Dhcpranges");
- }
- }
-
- # Unknown-Clients
- if ($pool['dhcpoptallow'] == "unknown-clients"){
- $unknownclients = "allow";
- $ucselectbox = "<option selected value='allow'> ALLOW </option>
- <option value='deny'> DENY </option>
- <option value='ignore'> IGNORE </option>";
- }
- elseif ($pool['dhcpoptignore'] == "unknown-clients") {
- $unknownclients = "ignore";
- $ucselectbox = "<option selected value='ignore'> IGNORE </option>
- <option value='allow'> ALLOW </option>
- <option value='deny'> DENY </option>";
- }
- else{
- $unknownclients = "deny";
- $ucselectbox = "<option selected value='deny'> DENY </option>
- <option value='allow'> ALLOW </option>
- <option value='ignore'> IGNORE </option>";
- }
-
- $template->assign(array("POOLDN" => $pool['dn'],
- "CN" => $pool['cn'],
- "SUBNETDN" => $pool['dhcphlpcont'],
- "SUBNET" => $subnet[0],
- "SUBNETAU" => $subnetau,
- "DESCRIPTION" => $pool['description'],
- "STATEMENTS" => $pool['dhcpstatements'],
- "UCSELECT" => $ucselectbox,
- "UCNOW" => $unknownclients,
- "DEFAULTLEASE" => $pool['dhcpoptdefault-lease-time'],
- "MAXLEASE" => $pool['dhcpoptmax-lease-time'],
- "MNR" => $mnr));
- $template->parse("DHCPPOOLS_LIST", ".Dhcppools");
-
-}
-}
-
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcppools_change.php b/ldap-site-mngmt/webinterface/dhcp/dhcppools_change.php
deleted file mode 100644
index 1a62cfed..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcppools_change.php
+++ /dev/null
@@ -1,336 +0,0 @@
-<?php
-include('../standard_header.inc.php');
-
-$syntax = new Syntaxcheck;
-
-$pooldn = $_POST['pooldn'];
-$subnet = $_POST['subnet'];
-$subnetau = $_POST['subnetau'];
-$delpool = $_POST['delpool'];
-$poolranges = array();
-foreach ($pooldn as $dn){
- $poolranges [$dn] = get_dhcppoolranges($dn);
-}
-$range1 = $_POST['range1'];
-$range2 = $_POST['range2'];
-$oldrange1 = $_POST['oldrange1'];
-$oldrange2 = $_POST['oldrange2'];
-$rangepooldn = $_POST['rangepooldn'];
-$addrange1 = $_POST['addrange1'];
-$addrange2 = $_POST['addrange2'];
-$uc = $_POST['unknownclients'];
-$olduc = $_POST['olduc'];
-$rbs = $_POST['rbs'];
-$oldrbs = $_POST['oldrbs'];
-
-# Array to fill with AUs to update dhcpMTime
-$au_to_update = array();
-
-$mnr = $_POST['mnr'];
-
-#print_r($pooldn); echo "<br>";
-#print_r($subnet); echo "<br>";
-#print_r($subnetau); echo "<br>";
-#print_r($delpool); echo "<br><br>";
-#print_r($oldrange1); echo "<br>";
-#print_r($oldrange2); echo "<br>";
-#print_r($range1); echo "<br>";
-#print_r($range2); echo "<br>";
-#print_r($rangepooldn); echo "<br><br>";
-#print_r($addrange1); echo "<br>";
-#print_r($addrange2); echo "<br><br>";
-#print_r($olduc); echo "<br><br>";
-#print_r($uc); echo "<br><br>";
-
-$seconds = 2;
-$url = "dhcppool.php?mnr=".$mnr;
-
-echo "
-<html>
-<head>
- <title>Computers Management</title>
- <link rel='stylesheet' href='../styles.css' type='text/css'>
-</head>
-<body>
-<table border='0' cellpadding='30' cellspacing='0'>
-<tr><td>";
-
-#########################################################################################
-# Pools löschen, entsprechende Arrays ($pooldn, $uc, ...) zur weiteren Verarbeitung anpassen
-for ($i=0;$i<count($delpool);$i++){
-
- $key = array_keys ( $pooldn, $delpool[$i] );
- $key_r = array_keys ( $rangepooldn, $delpool[$i] );
-
- # Ranges wieder in FIPBs aufnehmen
- if (count($key_r) > 1){
- foreach ($key_r as $item){
- $modentry['FreeIPBlock'][] = $oldrange1[$item]."_".$oldrange2[$item];
- }
- }else{
- $modentry['FreeIPBlock'] = $oldrange1[$key_r[0]]."_".$oldrange2[$key_r[0]];
- }
- print_r($modentry); echo "<br><br>";
- $add_fipb = ldap_mod_add($ds,$auDN,$modentry);
- if ($add_fipb){
- echo "<br>geloeschte IP Range(s) erfolgreich als neuer FIPB in die AU eingetragen!<br>" ;
- merge_ipranges($auDN);
-
- $delete = ldap_delete($ds,$delpool[$i]);
- if ($delete){
- # Subnet-AU auf DHCP-Modify setzen
- $au_to_update [] = $subnetau[$i];
- # Arrays von gelöschten Pools für weitere Verarbeitung bereinigen
- foreach ( $key as $nr ){
- array_splice ( &$pooldn, $nr, 1 );
- array_splice ( &$addrange1, $nr, 1 );
- array_splice ( &$addrange2, $nr, 1 );
- array_splice ( &$uc, $nr, 1 );
- array_splice ( &$olduc, $nr, 1 );
- array_splice ( &$rbs, $nr, 1 );
- array_splice ( &$oldrbs, $nr, 1 );
- }
- # da sich Arrays verkleinern, Wert in $key_r entsprechend verkleinern,
- $j=0; # Variable $j als Zähler um wieviel
- foreach ( $key_r as $nr ){
- array_splice ( &$rangepooldn, $nr-$j, 1 );
- array_splice ( &$range1, $nr-$j, 1 );
- array_splice ( &$range2, $nr-$j, 1 );
- array_splice ( &$oldrange1, $nr-$j, 1 );
- array_splice ( &$oldrange2, $nr-$j, 1 );
- $j++;
- }
- printf("Pool <b>%s</b> erfolgreich gel&ouml;scht<br>", $delpool[$i]);
- }else{
- printf("Fehler beim L&ouml;schen des Pools <b>%s</b>", $delpool[$i]);
- }
- }else{
- echo "<br>Fehler beim eintragen der geloeschten IP Range(s) als neuen FIPB! <br>DHCP Pool nicht gel&ouml;scht<br>";
- }
-}
-
-#########################################################################################
-# Änderungen in bestehenden Pools (unknown-clients) und Ranges hinzufügen
-for ($i=0;$i<count($pooldn);$i++){
-
- $entrydel = array();
- $entryadd = array();
- $entryrbs = array();
- # DENY, ALLOW, IGNORE Unknown-clients verarbeiten
- if ( $uc[$i] != $olduc[$i] ){
- $dhcpoptdel = "dhcpopt".$olduc[$i];
- $entrydel [$dhcpoptdel] = array();
- #print_r($entrydel); echo "<br>";
- ldap_mod_del($ds,$pooldn[$i],$entrydel);
- $dhcpoptadd = "dhcpopt".$uc[$i];
- $entryadd [$dhcpoptadd] = "unknown-clients";
- #print_r($entryadd); echo "<br><br>";
- ldap_mod_add($ds,$pooldn[$i],$entryadd);
- printf("Pool %s:<br>DHCP Option <b>unknown-clients</b> von <b>%s</b> auf <b>%s</b> ge&auml;ndert<br><br>",$pooldn[$i],$olduc[$i],$uc[$i]);
- # Subnet-AU auf DHCP-Modify setzen
- $au_to_update [] = $subnetau[$i];
- }
- # RBS
- if ( $rbs[$i] != "none" && $rbs[$i] != $oldrbs[$i] ){
- $dhcpdata = get_node_data($rbs[$i],array("tftpserverip","initbootfile"));
- $entryrbs ['hlprbservice'] = $rbs[$i];
- $entryrbs ['dhcpoptnext-server'] = $dhcpdata['tftpserverip'];
- $entryrbs ['dhcpoptfilename'] = $dhcpdata['initbootfile'];
- if ( $oldrbs[$i] == "" ){
- echo "RBS add "; print_r($entryrbs); echo "<br>";
- if ($result = ldap_mod_add($ds,$pooldn[$i],$entryrbs)){
- echo "DHCP Pool erfolgreich in RBS eingebunden.<br>";
- }
- }elseif ( $rbs[$i] == "" ){
- $entryrbs ['hlprbservice'] = array();
- $entryrbs ['dhcpoptnext-server'] = array();
- $entryrbs ['dhcpoptfilename'] = array();
- echo "RBS delete "; echo "<br>";
- if ($result = ldap_mod_del($ds,$pooldn[$i],$entryrbs)){
- echo "DHCP Pool erfolgreich aus RBS gel&ouml;scht.<br>";
- }
- }else{
- echo "RBS replace "; print_r($oldrbs[$i]); echo " with "; print_r($entryrbs); echo "<br>";
- if ($result = ldap_mod_replace($ds,$pooldn[$i],$entryrbs)){
- echo "DHCP Pool RBS Einbindung erfolgreich ge&auml;ndert.<br>";
- }
- }
- }
-
- # Ranges hinzufügen
- if ( $addrange1[$i] != "" && $addrange2[$i] != "" ){
- if ($syntax->check_ip_syntax($addrange1[$i]) && $syntax->check_ip_syntax($addrange2[$i])){
- $net = strrev(strchr(strrev($subnet[$i]), "."));
- $add1 = strrev(strchr(strrev($addrange1[$i]), "."));
- $add2 = strrev(strchr(strrev($addrange2[$i]), "."));
- if ( $net == $add1 && $net == $add2 ){
-
- printf("Range in Pool %s hinzuf&uuml;gen<br>",$pooldn[$i]);
- # Range zusammenstellen
- $newrange = implode("_", array($addrange1[$i],$addrange2[$i]));
- $result = add_dhcprange($newrange,$pooldn[$i]);
- if ($result){
- # Subnet-AU auf DHCP-Modify setzen
- $au_to_update [] = $subnetau[$i];
- printf("Neue dynamische IP Range %s - %s erfolgreich in Subnetz %s0 eingetragen!<br>",$addrange1[$i],$addrange2[$i],$net);
- }else{
- echo "<br>Fehler beim eintragen des dynamischen DHCP Pools!<br>";
- }
-
- }else{
- printf("Neue Range %s - %s nicht in Subnetz %s0",$addrange1[$i],$addrange2[$i],$net);
- }
- }else{
- printf("falsche IP Syntax der neuen Range %s - %s<br>", $addrange1[$i],$addrange2[$i]);
- }
- }
-
-}
-
-#########################################################################################
-# In Pools bereits angelegte Ranges verarbeiten (löschen, verkleinern, vergrößern)
-# vorzunehmende Änderungen in Arrays ($mod_dhcpranges, $new_fibs) speichern
-$fipbs = get_freeipblocks_au($auDN);
-$new_fipbs ['freeipblock'] = $fipbs;
-$mod_dhcpranges = array();
-
-for ($i=0;$i<count($rangepooldn);$i++){
-
- $range = implode('_',array($range1[$i],$range2[$i]));
- $oldrange = implode('_',array($oldrange1[$i],$oldrange2[$i]));
-
- if ( $oldrange1[$i] != "" && $oldrange2[$i] != "" && $range1[$i] == "" && $range2[$i] == "" ){
- # Range löschen
- $mod_dhcpranges [$rangepooldn[$i]] = $poolranges [$rangepooldn[$i]];
- $range_key = array_search ( $oldrange, $mod_dhcpranges[$rangepooldn[$i]] );
- #print_r($range_key); echo "<br>";
- array_splice ( &$mod_dhcpranges[$rangepooldn[$i]], $range_key, 1 );
- array_splice ( &$poolranges[$rangepooldn[$i]], $range_key, 1 );
- $new_fipbs ['freeipblock'][] = $oldrange;
- # Subnet-AU auf DHCP-Modify setzen
- $au_to_update [] = $subnetau[$i];
- }
- elseif ( $oldrange1[$i] != "" && $oldrange2[$i] != "" && $range1[$i] != "" && $range2[$i] != "" ){
- $or1 = ip2long($oldrange1[$i]);
- $or2 = ip2long($oldrange2[$i]);
- $nr1 = ip2long($range1[$i]);
- $nr2 = ip2long($range2[$i]);
-
- if ( ($nr1 > $or1 || $nr2 < $or2) && !($nr1 < $or1 || $nr2 > $or2) ){
- if ($syntax->check_ip_syntax($range1[$i]) && $syntax->check_ip_syntax($range2[$i])){
- # Range verkleinern
- $diffrange = split_iprange($range,$oldrange);
- echo "<br>diffrange: "; print_r($diffrange); echo "<br>";
- # array $poolranges aktualisieren (neue Ranges)
- $mod_dhcpranges [$rangepooldn[$i]] = $poolranges [$rangepooldn[$i]];
- $range_key = array_search ( $oldrange, $mod_dhcpranges [$rangepooldn[$i]] );
- #print_r($range_key); echo "<br>";
- $poolranges [$rangepooldn[$i]][$range_key] = $range;
- $mod_dhcpranges [$rangepooldn[$i]][$range_key] = $range;
- # Subnet-AU auf DHCP-Modify setzen
- $au_to_update [] = $subnetau[$i];
-
- foreach ($diffrange as $dr){
- $new_fipbs ['freeipblock'][] = $dr;
- }
- }else{
- printf("falsche IP Syntax der neuen Range %s - %s<br>", $range1[$i],$range2[$i]);
- }
- }
- elseif( ($nr1 < $or1 || $nr2 > $or2) && !($nr1 > $or1 || $nr2 < $or2) ){
- if ($syntax->check_ip_syntax($range1[$i]) && $syntax->check_ip_syntax($range2[$i])){
- # Range vergrößern
- $addrange = split_iprange($oldrange,$range);
- echo "addrange: "; print_r($addrange); echo "<br>";
- $mod_dhcpranges [$rangepooldn[$i]] = $poolranges [$rangepooldn[$i]];
-
- foreach ($addrange as $ar){
- $test = 0;
- for ($c=0; $c < count($new_fipbs['freeipblock']); $c++){
- if ( split_iprange($ar,$new_fipbs['freeipblock'][$c]) != 0 ){
- $ipranges = split_iprange($ar,$new_fipbs['freeipblock'][$c]);
- array_splice($new_fipbs['freeipblock'], $c, 1, $ipranges);
- $test = 1;
- break;
- }
- }
- if ( $test ){
- $poolranges [$rangepooldn[$i]][] = $ar;
- $mod_dhcpranges [$rangepooldn[$i]][] = $ar;
- # Subnet-AU auf DHCP-Modify setzen
- $au_to_update [] = $subnetau[$i];
- }
- }
- }else{
- printf("falsche IP Syntax der neuen Range %s - %s<br>", $range1[$i],$range2[$i]);
- }
- }
- #else{
- # $mesg = "<br>Verschieben (Shiften) einer IP Range nicht moeglich!<br>
- # Nur Vergroessern und Verkleinern moeglich!<br>";
- # $mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
- # Falls nicht, klicken Sie hier <a href='dhcppool.php' style='publink'>back</a>";
- # redirect($seconds, $url, $mesg, $addSessionId = TRUE);
- #}
- }
-}
-#print_r($mod_dhcpranges); echo "<br>";
-#print_r($new_fipbs); echo "<br><br>";
-
-#########################################################################################
-# In Arrays $dhcp_modranges und $new_fipbs gespeicherte Änderungen im LDAP schreiben
-$keys = array_keys($mod_dhcpranges);
-foreach ($keys as $pdn){
- #print_r($pdn); echo "<br>";
- #print_r($mod_dhcpranges[$pdn]); echo "<br>";
- if ( count($mod_dhcpranges[$pdn]) == 0 ){
- printf("Pool %s l&ouml;schen<br>",$pdn);
- if ($res = ldap_delete($ds,$pdn)){
- printf("Pool %s erfolgreich gel&ouml;scht",$pdn);
- }else{
- printf("Fehler beim L&ouml;schen von %s",$pdn);
- }
- }else{
- echo "Pool Ranges anpassen<br>";
- foreach ($mod_dhcpranges[$pdn] as $rg){
- $modpool ['dhcprange'][] = $rg;
- }
- #print_r($modpool); echo "<br>";
- $modpool ['dhcprange'] = merge_ipranges_array($modpool ['dhcprange']);
- print_r($modpool); echo "<br>";
- if ($res = ldap_mod_replace($ds,$pdn,$modpool)){
- printf("Pool Ranges von %s erfolgreich angepasst",$pdn);
- }else{
- printf("Fehler beim Anpassen der Pool Ranges von %s",$pdn);
- }
- }
-}
-
-$diff = array_diff( $new_fipbs['freeipblock'], $fipbs );
-$revdiff = array_diff( $fipbs, $new_fipbs['freeipblock'] );
-if ( count($diff) != 0 || count($revdiff) != 0 ){
- echo "<br>FIPBS anpassen<br>";
- #print_r($new_fipbs['freeipblock']); echo "<br>";
- $new_fipbs['freeipblock'] = merge_ipranges_array($new_fipbs['freeipblock']);
- print_r($new_fipbs); echo "<br>";
- if ($res = ldap_mod_replace($ds,$auDN,$new_fipbs)){
- printf("FIPBs erfolgreich angepasst");
- }else{
- printf("Fehler beim Anpassen der FIPBs");
- }
-}
-
-#########################################################################################
-# DHCP Modify Timestamps in betreffenden AUs aktualisieren
-#echo "<br>Subnet-AU: ";print_r ($au_to_update); echo "<br>";
-update_dhcpmtime($au_to_update);
-
-
-
-$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
- Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>";
-redirect($seconds, $url, $mesg, $addSessionId = TRUE);
-
-echo "</td></tr></table></body>
-</html>";
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpservice.dwt b/ldap-site-mngmt/webinterface/dhcp/dhcpservice.dwt
deleted file mode 100644
index eb8e99b6..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpservice.dwt
+++ /dev/null
@@ -1,262 +0,0 @@
-<table border='0' cellpadding='5' cellspacing='0' width='100%'>
- <tr>
- <td colspan='2'><h3>DHCP Service &nbsp;<code class='font_object'> {CN} </code> </h3></td>
- </tr>
- <tr>
- <td height='20'></td>
- </tr>
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <form action='dhcpservice_change.php' method='post'>
-
- <tr>
- <td width='40%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Attribut</b></td>
- <td width='60%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert</b></td>
- </tr>
-
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Eindeutiger DHCP Service Name (cn):</b><br>(Teil des dn, ohne Leerzeichen eingeben) &nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <font size='+2'><b>DHCP_</b></font><input type='Text' name='cn' value='{CN}' size='40' class='medium_form_field'>
- <input type='hidden' name='oldcn' value='{CN}'> &nbsp;
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Beschreibung:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[description]' value='{DESCRIPTION}' size='50' class='medium_form_field'>
- <input type='hidden' name='oldattribs[description]' value='{DESCRIPTION}'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Dienst kann momentan genutzt werden von:</b><br></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>Abteilung<b> {DHCPOFFERNOW}</b> &nbsp;(und allen Unterabteilungen)
- </td>
- </tr>
- <tr height='50' valign='top'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>&Auml;ndern:</b><br>(W&auml;hlen Sie eine andere Abteilung)</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <select name='dhcpoffer' size='5' class='medium_form_selectbox'>
- <option selected value='none'>----------</option>
-
- <!-- BEGIN DYNAMIC BLOCK: Dhcpoffers -->
- <option value='{DHCPOFFER}'>{DHCPOFFEROU}</option>
- <!-- END DYNAMIC BLOCK: Dhcpoffers -->
-
- <option value='off'>------ NIEMAND ------</option>
-
- </select>
- <input type='hidden' name='olddhcpoffer' value='{DHCPOFFERNOWDN}'> &nbsp;
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Failover Peer Name</b><br clear="all"><br>
- Falls f&uuml;r Ihren Dienst ein Failoverpeer deklariert ist, tragen Sie seinen Namen hier ein.
- (Damit werden f&uuml;r dynamische IP Ranges entsprechende Pool Deklarationen, mit Failover Peer generiert)</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpfailoverpeer]' value='{FAILOVERPEER}' size='50' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpfailoverpeer]' value='{FAILOVERPEER}'> &nbsp;
- </td>
- </tr>
-
- </table></td>
- </tr>
-
- <tr>
- <td height='40'></td>
- </tr>
- <tr>
- <td colspan='2'><h4>DHCP Optionen des Dienstes (Globaler Scope):</h4></td>
- </tr>
- <tr>
- <td height='10'></td>
- </tr>
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <tr valign='top'>
- <td width='30%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Option</b></td>
- <td width='70%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert(e)</b></td>
- </tr>
-
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Default Lease Time:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptdefault-lease-time]' value='{DEFAULTLEASE}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptdefault-lease-time]' value='{DEFAULTLEASE}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Max Lease Time:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptmax-lease-time]' value='{MAXLEASE}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptmax-lease-time]' value='{MAXLEASE}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Use Host DCL Names:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptuse-host-decl-names]' value='{USEHOSTDCL}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptuse-host-decl-names]' value='{USEHOSTDCL}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>DHCP Max Message Size:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptdhcp-max-message-size]' value='{MAXMESSIZE}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptdhcp-max-message-size]' value='{MAXMESSIZE}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>DDNS Update Style:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptddns-update-style]' value='{DDNSUPDATE}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptddns-update-style]' value='{DDNSUPDATE}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Domain Name:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptdomain-name]' value='{DOMAINNAME}' size='60' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptdomain-name]' value='{DOMAINNAME}'>&nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Domain Name Servers:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptdomain-name-servers]' value='{DOMAINNAMESERVERS}' size='60' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptdomain-name-servers]' value='{DOMAINNAMESERVERS}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>NTP Servers:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptntp-servers]' value='{NTPSERVERS}' size='40' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptntp-servers]' value='{NTPSERVERS}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Allow:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptallow]' value='{ALLOW}' size='40' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptallow]' value='{ALLOW}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Deny:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdeny]' value='{DENY}' size='40' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptdeny]' value='{DENY}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td colspan='2' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Self-definierte Optionen:</b></td>
- </tr>
- {OPTDEF}
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Option hinzuf&uuml;gen:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='adddhcpoptdefinition' value='' size='40' class='medium_form_field'>
- </td>
- </tr>
-
- <input type='hidden' name='dhcpdn' value='{DHCPDN}'>
- <input type='hidden' name='mnr' value='{MNR}'>
- <input type='hidden' name='sbmnr' value='{SBMNR}'>
-
- </table></td>
- </tr>
- <tr>
- <td><input type='Submit' name='apply' value='anwenden' class='small_loginform_button'>
- </form></td>
- </tr>
-
- <tr>
- <td height='40'></td>
- </tr>
- <tr>
- <td colspan='2'><h4>Dem Dienst zugeordnete DHCP Subnets:</h4></td>
- </tr>
- <tr>
- <td height='10'></td>
- </tr>
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <tr valign='top'>
- <td width='25%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Subnet</b></td>
- <td width='25%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Netmask</b></td>
- <td width='50%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Abteilung (AU)</b></td>
- </tr>
- <!-- BEGIN DYNAMIC BLOCK: Dhcpsubnets -->
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>{SUBNET} &nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>{NETMASK}&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>{SUBNETAU}&nbsp</td>
- </tr>
- <!-- END DYNAMIC BLOCK: Dhcpsubnets -->
-
- </table></td>
- </tr>
-
- <tr>
- <td height='50'></td>
- </tr>
- <tr>
- <td colspan='2'><h3>Config File f&uuml;r DHCP Generator Script</h3></td>
- </tr>
- <tr>
- <td colspan='2'>Speichern Sie dieses als <b>dhcpgen.conf.pl</b> im gleichen Verzeichnis wie ihr DHCP Dienst Generator Skript <b>dhcp_generator.pl</b></td>
- </tr>
- <tr>
- <td>
- <table cellpadding='20' cellspacing='0' border='0' align='left' width='90%' style='border-color: black; border-style: solid; border-width: 2 2 2 2;'>
-
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- $ldaphost= "{DHCPGENLDAP}"; <br>
- $basedn= "{DHCPGENBASE}"; <br>
- $userdn= "{DHCPGENUDN}"; <br>
- $passwd= "{DHCPGENPW}"; <br>
- $dhcpservicedn= "{DHCPGENSVDN}";
- </td>
- </tr>
-
-
- </table></td>
- </tr>
-
-
-
- <tr>
- <td height='60'></td>
- </tr>
-
- <tr>
- <td colspan='2'><h4>DHCP Service &nbsp;<code class='font_object'>{CN}</code>&nbsp; l&ouml;schen:</h4></td>
- </tr>
- <tr>
- <td>
- <table cellpadding='7' cellspacing='0' border='0' align='left' width='90%' style='border-width: 0 0 0 0;'>
- <form action='delete_confirm.php' method='post'>
-
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- Der DHCP Dienst wird gel&ouml;scht, <br>
- </tr>
-
- <input type='hidden' name='dn' value='{DHCPDN}'>
- <input type='hidden' name='name' value='{CN}'>
- <input type='hidden' name='type' value='dhcp'>
- <input type='hidden' name='delurl' value='dhcpservice_delete.php'>
- <input type='hidden' name='backurl' value='dhcpservice.php?dn={DHCPDN}&mnr={MNR}'>
- </table></td>
- </tr>
- <tr>
- <td>
- <input type='Submit' name='apply' value='l&ouml;schen' class='small_loginform_button'>
- </form></td>
- </tr>
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpservice.php b/ldap-site-mngmt/webinterface/dhcp/dhcpservice.php
deleted file mode 100644
index 304739ca..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpservice.php
+++ /dev/null
@@ -1,182 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "dhcpservice.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = 0;
-$sbmnr = -1;
-
-###################################################################################
-
-$mnr = $_GET['mnr'];
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-###################################################################################
-
-$template->assign(array("DHCPDN" => "",
- "CN" => "",
- "PRIMARY" => "",
- "SECONDARY" => "",
- "DESCRIPTION" => "",
- "STATEMENTS" => "",
- "FAILOVERPEER" => "",
- "ALLOW" => "",
- "DENY" => "",
- "IGNORE" => "",
- "DDNSUPDATE" => "",
- "DEFAULTLEASE" => "",
- "MAXLEASE" => "",
- "USEHOSTDCL" => "",
- "DOMAINNAME" => "",
- "DOMAINNAMESERVERS" => "",
- "MAXMESSIZE" => "",
- "NTPSERVERS" => "",
- "OPTGENERIC" => "",
- "OPTDEF" => "",
- "OPTDEFINITION" => "",
- "DHCPOFFERNOWDN" => "",
- "DHCPOFFERNOW" => "",
- "SUBNET" => "keine Subnetze zugewiesen",
- "NETMASK" => "",
- "SUBNETAU" => ""));
-
-# DHCP Service Daten
-$dhcpsv_array = get_dhcpservices($auDN,array("dn","cn"));
-$dhcpserviceDN = $dhcpsv_array[0]['dn'];
-$attributes = array("dn","cn","dhcpprimarydn","dhcpsecondarydn","description","dhcpofferdn","dhcpstatements","dhcpfailoverpeer",
- "dhcpoptallow","dhcpoptddns-update-style","dhcpoptdefault-lease-time","dhcpoptdeny","dhcpoptfilename",
- "dhcpoptignore","dhcpoptmax-lease-time","dhcpoptnext-server","optiondefinition",
- "dhcpoptuse-host-decl-names","dhcpoptbroadcast-address","dhcpoptdhcp-max-message-size",
- "dhcpoptdomain-name","dhcpoptdomain-name-servers","dhcpoptgeneric","dhcpoptntp-servers",
- "dhcpoptroot-path","dhcpoptrouters");
-$dhcpsv_data = get_node_data($dhcpserviceDN, $attributes);
-#print_r($dhcpsv_data);
-
-# DHCP Service Anbieten
-# momentanes Offer
-# todo: falls dhcpofferDN leer dann standardwert AU teilbaum
-$offerexp = ldap_explode_dn($dhcpsv_data['dhcpofferdn'], 1);
-$dhcpoffernow = $offerexp[0];
-# alternative Offers
-$expdn = ldap_explode_dn($auDN, 0); # Mit Merkmalen
-$expdn = array_slice($expdn, 1);
-$expou = ldap_explode_dn($auDN, 1); # nur Werte
-$expou = array_slice($expou, 1, -3);
-#print_r($expou); echo "<br>";
-#print_r($expdn); echo "<br>";
-for ($i=0; $i<count($expou); $i++){
- $dhcpoffers[$i]['ou'] = $expou[$i];
- $dhcpoffers[$i]['dn'] = implode(',',$expdn);
- $expdn = array_slice($expdn, 1);
-}
-#print_r($dhcpoffers);
-
-$expcn = explode('_',$dhcpsv_data['cn']);
-$name = array_slice($expcn,1);
-$dhcpcn = implode('_',$name);
-
-$optdef = "";
-if (count($dhcpsv_data['optiondefinition']) == 1){
- $dhcpsv_data['optiondefinition'] = array($dhcpsv_data['optiondefinition']);
-}
-if (count($dhcpsv_data['optiondefinition']) > 0){
- foreach ($dhcpsv_data['optiondefinition'] as $optdefinition){
- $optdef .= "
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='dhcpoptdefinition[]' value='".$optdefinition."' size='40' class='medium_form_field'>
- <input type='hidden' name='olddhcpoptdefinition[]' value='".$optdefinition."'> &nbsp;
- </td>
- </tr>";
- }
-}
-
-$template->assign(array("DHCPDN" => $dhcpsv_data['dn'],
- "CN" => $dhcpcn,
- "PRIMARY" => $dhcpsv_data['dhcpprimarydn'],
- "SECONDARY" => $dhcpsv_data['dhcpsecondarydn'],
- "DESCRIPTION" => $dhcpsv_data['description'],
- "STATEMENTS" => $dhcpsv_data['dhcpstatements'],
- "FAILOVERPEER" => $dhcpsv_data['dhcpfailoverpeer'],
- "ALLOW" => $dhcpsv_data['dhcpoptallow'],
- "DENY" => $dhcpsv_data['dhcpoptdeny'],
- "IGNORE" => $dhcpsv_data['dhcpoptignore'],
- "DDNSUPDATE" => $dhcpsv_data['dhcpoptddns-update-style'],
- "DEFAULTLEASE" => $dhcpsv_data['dhcpoptdefault-lease-time'],
- "MAXLEASE" => $dhcpsv_data['dhcpoptmax-lease-time'],
- "USEHOSTDCL" => $dhcpsv_data['dhcpoptuse-host-decl-names'],
- "MAXMESSIZE" => $dhcpsv_data['dhcpoptdhcp-max-message-size'],
- "DOMAINNAME" => $dhcpsv_data['dhcpoptdomain-name'],
- "DOMAINNAMESERVERS" => $dhcpsv_data['dhcpoptdomain-name-servers'],
- "NEXTSERVER" => $dhcpsv_data['dhcpoptnext-server'],
- "FILENAME" => $dhcpsv_data['dhcpoptfilename'],
- "NTPSERVERS" => $dhcpsv_data['dhcpoptntp-servers'],
- "DHCPOFFERNOWDN" => $dhcpsv_data['dhcpofferdn'],
- "DHCPOFFERNOW" => $dhcpoffernow,
- "OPTDEF" => $optdef,
- "MNR" => $mnr,
- "SBMNR" => $sbmnr));
-
-$template->define_dynamic("Dhcpoffers", "Webseite");
-foreach ($dhcpoffers as $offer){
- $template->assign(array("DHCPOFFER" => $offer['dn'],
- "DHCPOFFEROU" => $offer['ou'],));
- $template->parse("DHCPOFFERS_LIST", ".Dhcpoffers");
-}
-
-
-# Subnetze und Hosts des Dienstes
-$dhcpobjects = get_service_subnets($dhcpserviceDN, array("dn","cn","dhcpoptnetmask"));
-#print_r($dhcpobjects);
-$template->define_dynamic("Dhcpsubnets", "Webseite");
-foreach ($dhcpobjects as $subnet){
- $template->assign(array("SUBNET" => $subnet['cn'],
- "NETMASK" => $subnet['dhcpoptnetmask'],
- "SUBNETAU" => $subnet['auDN']));
- $template->parse("DHCPSUBNETS_LIST", ".Dhcpsubnets");
-}
-
-### Rechner
-#$hostorgroup = $exp[0];
-#$hosts_array = get_hosts($auDN,array("dn","hostname","ipaddress"));
-#
-#$template->define_dynamic("TftpHosts", "Webseite");
-#$template->define_dynamic("NfsHosts", "Webseite");
-#$template->define_dynamic("NbdHosts", "Webseite");
-#foreach ($hosts_array as $item){
-# $template->assign(array("HDN" => $item['dn'],
-# "HN" => $item['hostname'],
-# "IP" => $item['ipaddress']));
-# $template->parse("TFTPHOSTS_LIST", ".TftpHosts");
-# $template->assign(array("HDN" => $item['dn'],
-# "HN" => $item['hostname'],
-# "IP" => $item['ipaddress']));
-# $template->parse("NFSHOSTS_LIST", ".NfsHosts");
-# $template->assign(array("HDN" => $item['dn'],
-# "HN" => $item['hostname'],
-# "IP" => $item['ipaddress']));
-# $template->parse("NBDHOSTS_LIST", ".NbdHosts");
-#}
-
-################################################
-# DHCP Generator Skript Config
-$template->assign(array("DHCPGENLDAP" => LDAP_HOST,
- "DHCPGENBASE" => "ou=RIPM,".$suffix,
- "DHCPGENUDN" => $userDN,
- "DHCPGENPW" => $userPassword,
- "DHCPGENSVDN" => $dhcpserviceDN));
-
-
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpservice_add.php b/ldap-site-mngmt/webinterface/dhcp/dhcpservice_add.php
deleted file mode 100644
index ecaa27d9..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpservice_add.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-include('../standard_header.inc.php');
-
-$cn = $_POST['cn'];
-$dhcpoffer = $_POST['dhcpoffer'];
-
-# sonstige Attribute
-$attribs = $_POST['attribs'];
-if (count($attribs) != 0){
- foreach (array_keys($attribs) as $key){
- $atts[$key] = htmlentities($attribs[$key]);
- }
-}
-#print_r($atts); echo "<br><br>";
-
-$nodeDN = "cn=dhcp,".$auDN;
-$mnr = $_POST['mnr'];
-$sbmnr = $_POST['sbmnr'];
-$mcnr = $_POST['mcnr'];
-
-$get_dhcpcn = str_replace ( " ", "_", $cn );
-$seconds = 2;
-$url = "new_dhcpservice.php?&mnr=1";
-
-echo "
-<html>
-<head>
- <title>Computers Management</title>
- <link rel='stylesheet' href='../styles.css' type='text/css'>
-</head>
-<body>
-<table border='0' cellpadding='30' cellspacing='0'>
-<tr><td>";
-
-if ( $cn != "" && $cn != "Hier_DHCP_NAME_eintragen" ){
-
- $dhcpcn = "DHCP_".$cn;
-
- # Formulareingaben anpassen
- $exp = explode(" ",$dhcpcn);
- foreach ($exp as $word){$expuc[] = ucfirst($word);}
- $dhcpcn = implode(" ",$expuc);
- $dhcpcn = preg_replace ( '/\s+([0-9A-Z])/', '$1', $dhcpcn);
-
- #$dhcpDN = "cn=".$dhcpcn.",".$nodeDN;
- #print_r($dhcpDN); echo "<br><br>";
-
- if (add_dhcpservice ($dhcpcn,$dhcpoffer,$atts)){
- $mesg .= "<br>DHCP Service erfolgreich angelegt<br>";
- $url = "dhcpservice.php?mnr=1";
- }else{
- $mesg .= "<br>Fehler beim anlegen des DHCP Services!<br>";
- }
-}
-
-elseif ( $cn == "" || $cn == "Hier_DHCP_NAME_eintragen" ){
-
- $mesg = "Sie haben den Namen des neuen DHCP Service nicht angegeben. Dieser ist
- aber ein notwendiges Attribut.<br>
- Bitte geben Sie ihn an.<br><br>";
- $url = "new_dhcpservice.php?dhcpcn=Hier_DHCP_NAME_eintragen&mnr=1";
-}
-
-$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
- Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>";
-redirect($seconds, $url, $mesg, $addSessionId = TRUE);
-
-echo "</td></tr></table></body>
-</html>";
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php b/ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php
deleted file mode 100644
index 687a5bbd..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php
+++ /dev/null
@@ -1,229 +0,0 @@
-<?php
-include('../standard_header.inc.php');
-
-$cn = "DHCP_".$_POST['cn'];
-$oldcn = "DHCP_".$_POST['oldcn'];
-$dhcpoffer = $_POST['dhcpoffer'];
-$olddhcpoffer = $_POST['olddhcpoffer'];
-$dhcpoptdefinition = $_POST['dhcpoptdefinition'];
-$olddhcpoptdefinition = $_POST['olddhcpoptdefinition'];
-$adddhcpoptdefinition = $_POST['adddhcpoptdefinition'];
-
-$dhcpDN = $_POST['dhcpdn'];
-
-# sonstige Attribute
-$attribs = $_POST['attribs'];
-if (count($attribs) != 0){
- foreach (array_keys($attribs) as $key){
- $atts[$key] = htmlentities($attribs[$key]);
- }
-}
-#print_r($atts); echo "<br><br>";
-$oldattribs = $_POST['oldattribs'];
-if (count($oldattribs) != 0){
- foreach (array_keys($oldattribs) as $key){
- $oldatts[$key] = htmlentities($oldattribs[$key]);
- }
-}
-#print_r($oldatts); echo "<br><br>";
-
-
-$nodeDN = "cn=dhcp,".$auDN;
-$mnr = $_POST['mnr'];
-$sbmnr = $_POST['sbmnr'];
-$mcnr = $_POST['mcnr'];
-
-#$deltr = $_POST['deltr'];
-
-$seconds = 2;
-$url = "dhcpservice.php?dn=".$dhcpdn."&mnr=1";
-
-echo "
-<html>
-<head>
- <title>Computers Management</title>
- <link rel='stylesheet' href='../styles.css' type='text/css'>
-</head>
-<body>
-<table border='0' cellpadding='30' cellspacing='0'>
-<tr><td>";
-
-##############################################
-# DHCP Service CN (DN)
-
-if ( $oldcn == $cn ){
- # $mesg = "keine Aenderung<br>";
-}
-
-if ( $oldcn != "" && $cn != "" && $oldcn != $cn ){
- echo "DHCP Service Name aendern<br>";
- # hier noch Syntaxcheck
- # Formulareingaben anpassen
- $exp = explode(" ",$cn);
- foreach ($exp as $word){$expuc[] = ucfirst($word);}
- $cn = implode(" ",$expuc);
- $cn = preg_replace ( '/\s+([0-9A-Z])/', '$1', $cn);
-
- $newdhcpDN = "cn=".$cn.",".$nodeDN;
- print_r($newdhcpDN); echo "<br><br>";
-
- if(move_subtree($dhcpDN, $newdhcpDN)){
- adjust_dhcpservice_dn($newdhcpDN, $dhcpDN);
- $dhcpDN = $newdhcpDN;
- $mesg = "DHCP Service Name erfolgreich ge&auml;ndert<br><br>";
- }else{
- $mesg = "Fehler beim &auml;ndern des DHCP Service Namen!<br><br>";
- }
-}
-
-if ( $oldcn != "" && $cn == "" ){
- echo "DHCP Service Name loeschen!<br>
- Dieser ist Teil des DN, Sie werden den DHCP Service komplett l&ouml;schen<br><br>";
- echo "Wollen Sie den DHCP Service <b>".$oldcn."</b> wirklich l&ouml;schen?<br><br>
- <form action='dhcpservice_delete.php' method='post'>
- Falls ja:<br><br>
- <input type='hidden' name='dn' value='".$dhcpDN."'>
- <input type='hidden' name='name' value='".$oldcn."'>
- <input type='Submit' name='apply' value='l&ouml;schen' class='small_loginform_button'><br><br>
- </form>
- <form action='".$url."' method='post'>
- Falls, nein:<br><br>
- <input type='Submit' name='apply' value='zur&uuml;ck' class='small_loginform_button'>
- </form>";
- $seconds = 600;
-}
-
-#####################################
-# Offer ändern
-
-if ( $dhcpoffer != "none" ){
-
- if ( ($dhcpoffer != "off" && $dhcpoffer == $olddhcpoffer) || ($dhcpoffer == "off" && $olddhcpoffer == "") ){
- $mesg = "Sie haben die gleiche Abteilung ausgew&auml;hlt<br>
- Keine &Auml;nderung!";
- }
-
- if ( $dhcpoffer != "off" && $dhcpoffer != $olddhcpoffer ){
- $entryoffer ['dhcpofferdn'] = $dhcpoffer;
- if ($olddhcpoffer == ""){
- # Offer anlegen
- if(ldap_mod_add($ds,$dhcpDN,$entryoffer)){
- $mesg = "DHCP Service Offer erfolgreich angelegt<br><br>";
- }
- else{
- $mesg = "Fehler beim &auml;ndern des DHCP Service Offers!<br><br>";
- }
- }
- else{
- # Offer ändern
- if(ldap_mod_replace($ds,$dhcpDN,$entryoffer)){
- $mesg = "DHCP Service Offer erfolgreich ge&auml;ndert<br><br>";
- }
- else{
- $mesg = "Fehler beim &auml;ndern des DHCP Service Offers!<br><br>";
- }
- }
- }
-
- if ( $dhcpoffer == "off" && $olddhcpoffer != "" ){
- $entryoffer ['dhcpofferdn'] = array();
- if(ldap_mod_del($ds,$dhcpDN,$entryoffer)){
- $mesg = "DHCP Service Offer erfolgreich gel&ouml;scht<br><br>";
- cleanup_del_dhcpservice ($dhcpDN);
- }
- else{
- $mesg = "Fehler beim &auml;ndern des DHCP Service Offers!<br><br>";
- }
- }
-
-}
-
-#####################################
-# Selbstdefinierte Optionen
-
-if ( $adddhcpoptdefinition != "" ){
- echo "Selbst-definierte DHCP Option hinzuf&uuml;gen.<br>";
- $entryadd['optiondefinition'] = $adddhcpoptdefinition;
- if(ldap_mod_add($ds,$dhcpDN,$entryadd)){
- $mesg = "Selbst-definierte DHCP Option erfolgreich eingetragen<br><br>";
- update_dhcpmtime(array());
- }else{
- $mesg = "Fehler beim eintragen Selbst-definierte DHCP Option<br><br>";
- }
-}
-
-#todo: array_vergleich -> Änderung -> ldap_modify
-#print_r($dhcpoptdefinition);echo "<br>";
-#print_r($olddhcpoptdefinition);echo "<br>";
-
-#####################################
-# Restliche Attribute
-
-$entryadd = array();
-$entrymod = array();
-$entrydel = array();
-
-foreach (array_keys($atts) as $key){
-
- if ( $oldatts[$key] == $atts[$key] ){
-
- }
- if ( $oldatts[$key] == "" && $atts[$key] != "" ){
- # hier noch Syntaxcheck
- $entryadd[$key] = $atts[$key];
- }
- if ( $oldatts[$key] != "" && $atts[$key] != "" && $oldatts[$key] != $atts[$key] ){
- # hier noch Syntaxcheck
- $entrymod[$key] = $atts[$key];
- }
- if ( $oldatts[$key] != "" && $atts[$key] == "" ){
- # hier noch Syntaxcheck
- $entrydel[$key] = $oldatts[$key];
- }
-}
-
-
-if (count($entryadd) != 0 ){
- foreach (array_keys($entryadd) as $key){
- $addatts .= "<b>".$key."</b>,";
- }
- if(ldap_mod_add($ds,$dhcpDN,$entryadd)){
- $mesg = "Attribute ".$addatts." erfolgreich eingetragen<br><br>";
- update_dhcpmtime(array());
- }else{
- $mesg = "Fehler beim eintragen der Attribute ".$addatts."<br><br>";
- }
-}
-
-if (count($entrymod) != 0 ){
- foreach (array_keys($entrymod) as $key){
- $modatts .= "<b>".$key."</b>,";
- }
- if(ldap_mod_replace($ds,$dhcpDN,$entrymod)){
- $mesg = "Attribute ".$modatts." erfolgreich geaendert<br><br>";
- update_dhcpmtime(array());
- }else{
- $mesg = "Fehler beim aendern der Attribute ".$modatts."<br><br>";
- }
-}
-
-if (count($entrydel) != 0 ){
- foreach (array_keys($entrydel) as $key){
- $delatts .= "<b>".$key."</b>,";
- }
- if(ldap_mod_del($ds,$dhcpDN,$entrydel)){
- $mesg = "Attribute ".$delatts." erfolgreich geloescht<br><br>";
- update_dhcpmtime(array());
- }else{
- $mesg = "Fehler beim loeschen der Attribute ".$delatts."<br><br>";
- }
-}
-
-
-$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
- Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>";
-redirect($seconds, $url, $mesg, $addSessionId = TRUE);
-
-echo "</td></tr></table></body>
-</html>";
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpservice_delete.php b/ldap-site-mngmt/webinterface/dhcp/dhcpservice_delete.php
deleted file mode 100644
index 3d121397..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpservice_delete.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-include('../standard_header.inc.php');
-
-$dhcpDN = $_POST['dn'];
-$dhcpcn = $_POST['name'];
-
-$seconds = 2;
-$url = "dhcpservice.php?mnr=1";
-
-echo "
-<html>
-<head>
- <title>Computers Management</title>
- <link rel='stylesheet' href='../styles.css' type='text/css'>
-</head>
-<body>
-<table border='0' cellpadding='30' cellspacing='0'>
-<tr><td>";
-
-if ( $dhcpDN != ""){
- if ( dive_into_tree_del($dhcpDN,"") ){
- cleanup_del_dhcpservice($dhcpDN);
- $mesg = "DHCP Service <b>".$dhcpcn."</b> erfolgreich gel&ouml;scht!<br><br>";
- }
- else{
- $mesg = "Fehler beim l&ouml;schen des DHCP Services <b>".$dhcpcn."</b> !<br><br>";
- }
-}
-
-
-$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
- Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>";
-redirect($seconds, $url, $mesg, $addSessionId = TRUE);
-
-echo "</td></tr></table></body>
-</html>";
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.dwt b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.dwt
deleted file mode 100644
index 9160219c..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.dwt
+++ /dev/null
@@ -1,219 +0,0 @@
-<table border='0' cellpadding='5' cellspacing='0' width='100%'>
-
- <tr>
- <td colspan='4' height='20'><h4><a href='dhcpsubnets.php?mnr={MNR}' class='headerlink'><< Zur&uuml;ck zur &Uuml;bersicht </a></h4></td>
- </tr>
-
- <tr>
- <td colspan='2'><h3>DHCP Subnet &nbsp;<code class='font_object'> {CN} / {NETMASK} </code> </h3></td>
- </tr>
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <form action='dhcpsubnet_change.php' method='post'>
-
- <tr>
- <td width='40%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Attribut</b></td>
- <td width='60%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert</b></td>
- </tr>
-
- <!-- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>DHCP Subnet (cn):</b><br>(Teil des dn, ohne Leerzeichen eingeben) &nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='cn' value='{CN}' size='15' maxlength='15' class='medium_form_field'>
- <input type='hidden' name='oldcn' value='{CN}'> &nbsp;
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Netmask:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='netmask' value='{NETMASK}' size='15' maxlength='15' class='medium_form_field'>
- <input type='hidden' name='oldnetmask' value='{NETMASK}'> &nbsp;
- </td>
- </tr> -->
- <tr valign='top'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Eingebunden in DHCP Dienst: <b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>{DHCPSVNOW}&nbsp;
- </td>
- </tr>
- <tr height='50' valign='top'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>DHCP Dienst &auml;ndern:</b> </td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <select name='dhcpservice' size='5' class='medium_form_selectbox'>
- <option selected value='none'>----------</option>
-
- <!-- BEGIN DYNAMIC BLOCK: Dhcpservices -->
- <option value='{DHCPSVDN}'>{DHCPSVCN}{DHCPSVAU}</option>
- <!-- END DYNAMIC BLOCK: Dhcpservices -->
-
- <option value='off'>-- keine DHCP Dienstzurordnung --</option>
-
- </select>
- <input type='hidden' name='olddhcpservice' value='{DHCPOFFERNOWDN}'> &nbsp;
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Beschreibung:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[description]' value='{DESCRIPTION}' size='50' class='medium_form_field'>
- <input type='hidden' name='oldattribs[description]' value='{DESCRIPTION}'>
- </td>
- </tr>
- </table></td>
- </tr>
-
- <!--<tr>
- <td height='40'></td>
- </tr>
- <tr>
- <td colspan='2'><h4>Subnet Ranges / Pools:</h4></td>
- </tr>
- <tr>
- <td height='10'></td>
- </tr>
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <tr valign='top'>
- <td width='50%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>IP Range</b></td>
- <td width='50%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Pool Declaration Options</b></td>
- </tr>
-
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='range1' value='{RANGE1}' size='15' maxlength='15' class='medium_form_field'>
- &nbsp;&nbsp; - &nbsp;&nbsp;
- <input type='Text' name='range2' value='{RANGE2}' size='15' maxlength='15' class='medium_form_field'>
- <input type='hidden' name='oldrange1' value='{RANGE1}'>
- <input type='hidden' name='oldrange2' value='{RANGE2}'>
- </td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>&nbsp;</td>
- </tr>
- </table></td>
- </tr>-->
-
- <tr>
- <td height='40'></td>
- </tr>
- <tr>
- <td colspan='2'><h4>DHCP Optionen des Subnets (Subnet Scope):</h4></td>
- </tr>
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <tr valign='top'>
- <td width='30%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Option</b></td>
- <td width='70%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert(e)</b></td>
- </tr>
-
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Routers:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptrouters]' value='{ROUTERS}' size='40' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptrouters]' value='{ROUTERS}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Broadcast Address:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptbroadcast-address]' value='{BROADCAST}' size='40' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptbroadcast-address]' value='{BROADCAST}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Domain Name:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptdomain-name]' value='{DOMAINNAME}' size='60' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptdomain-name]' value='{DOMAINNAME}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Domain Name Servers:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdomain-name-servers]' value='{DOMAINNAMESERVERS}' size='60' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptdomain-name-servers]' value='{DOMAINNAMESERVERS}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Default Lease Time:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptdefault-lease-time]' value='{DEFAULTLEASE}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptdefault-lease-time]' value='{DEFAULTLEASE}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Max Lease Time:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptmax-lease-time]' value='{MAXLEASE}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptmax-lease-time]' value='{MAXLEASE}'> &nbsp;
- </td>
- </tr>
- <!-- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>NTP Servers:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptntp-servers]' value='{NTPSERVERS}' size='40' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptntp-servers]' value='{NTPSERVERS}'> &nbsp;
- </td>
- </tr> -->
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Allow:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- <input type='Text' name='attribs[dhcpoptallow]' value='{ALLOW}' size='40' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptallow]' value='{ALLOW}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Deny:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdeny]' value='{DENY}' size='40' class='medium_form_field'>
- <input type='hidden' name='oldattribs[dhcpoptdeny]' value='{DENY}'> &nbsp;
- </td>
- </tr>
-
- <input type='hidden' name='subnetdn' value='{SUBNETDN}'>
- <input type='hidden' name='mnr' value='{MNR}'>
- <input type='hidden' name='sbmnr' value='{SBMNR}'>
-
- </table></td>
- </tr>
- <tr>
- <td><input type='Submit' name='apply' value='anwenden' class='small_loginform_button'>
- </form></td>
- </tr>
-
-
- <tr>
- <td height='60'></td>
- </tr>
-
- <tr>
- <td colspan='2'><h4>DHCP Subnet &nbsp;<code class='font_object'>{CN}</code>&nbsp; l&ouml;schen:</h4></td>
- </tr>
- <tr>
- <td>
- <table cellpadding='7' cellspacing='0' border='0' align='left' width='90%' style='border-width: 0 0 0 0;'>
- <form action='delete_confirm.php' method='post'>
-
-
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
- Das DHCP Subnet wird gel&ouml;scht, <br>
- </tr>
-
- <input type='hidden' name='dn' value='{SUBNETDN}'>
- <input type='hidden' name='name' value='{CN}'>
- <input type='hidden' name='mnr' value='{MNR}'>
- <input type='hidden' name='type' value='dhcp'>
- <input type='hidden' name='delurl' value='dhcpsubnet_delete.php'>
- <input type='hidden' name='backurl' value='dhcpsubnet.php?dn={SUBNETDN}&mnr={MNR}&sbmnr{SBMNR}'>
-
- </table></td>
- </tr>
- <tr>
- <td>
- <input type='Submit' name='apply' value='l&ouml;schen' class='small_loginform_button'>
- </form></td>
- </tr>
-
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.php b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.php
deleted file mode 100644
index a7da175d..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.php
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "dhcpsubnet.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = -1;
-$sbmnr = -1;
-
-###################################################################################
-
-$mnr = $_GET['mnr'];
-#$sbmnr = $_GET['sbmnr'];
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-###################################################################################
-
-$template->assign(array("SUBNETDN" => "",
- "CN" => "",
- "NETMASK" => "",
- "RANGE1" => "",
- "RANGE2" => "",
- "DESCRIPTION" => "",
- "STATEMENTS" => "",
- "ALLOW" => "",
- "DENY" => "",
- "IGNORE" => "",
- "DDNSUPDATE" => "",
- "DEFAULTLEASE" => "",
- "MAXLEASE" => "",
- "USEHOSTDCL" => "",
- "BROADCAST" => "",
- "ROUTERS" => "",
- "DOMAINNAME" => "",
- "DOMAINNAMESERVERS" => "",
- "NEXTSERVER" => "",
- "FILENAME" => "",
- "SRVIDENT" => "",
- "NTPSERVERS" => "",
- "OPTGENERIC" => "",
- "DHCPOFFERNOWDN" => "",
- "DHCPSVNOW" => "",
- "MNR" => $mnr,
- "SBMNR" => $sbmnr,
- "MCNR" => $mcnr));
-
-# DHCP Subnet Daten
-$dhcpsubnetDN = $_GET['dn'];
-$attributes = array("dn","cn","dhcpoptnetmask","dhcphlpcont","dhcprange","description","dhcpstatements","dhcpoptallow",
- "dhcpoptddns-update-style","dhcpoptdefault-lease-time","dhcpoptdeny","dhcpoptfilename",
- "dhcpoptignore","dhcpoptmax-lease-time","dhcpoptnext-server","dhcpoptserver-identifier",
- "dhcpoptuse-host-decl-names","dhcpoptbroadcast-address","dhcpoptdhcp-max-message-size",
- "dhcpoptdomain-name","dhcpoptdomain-name-servers","dhcpoptgeneric","dhcpoptntp-servers",
- "dhcpoptroot-path","dhcpoptrouters");
-$subnet_data = get_node_data($dhcpsubnetDN, $attributes);
-#print_r($subnet_data);
-
-# momentane DHCP Service Zuordnung
-if ($subnet_data['dhcphlpcont'] != ""){
- $dhcpsvnowdn = ldap_explode_dn($subnet_data['dhcphlpcont'], 1);
- $dhcpsvnow = "<b>".$dhcpsvnowdn[0]."</b> &nbsp;[AU: ".$dhcpsvnowdn[2]."]";
-}else{
- $dhcpsvnow = "<b>&#8211;</b>";
-}
-
-# DHCP Range
-$iprange = explode('_',$subnet_data['dhcprange']);
-
-$template->assign(array("SUBNETDN" => $dhcpsubnetDN,
- "CN" => $subnet_data['cn'],
- "NETMASK" => $subnet_data['dhcpoptnetmask'],
- "RANGE1" => $iprange[0],
- "RANGE2" => $iprange[1],
- "DESCRIPTION" => $subnet_data['description'],
- "STATEMENTS" => $subnet_data['dhcpstatements'],
- "ALLOW" => $subnet_data['dhcpoptallow'],
- "DENY" => $subnet_data['dhcpoptdeny'],
- "IGNORE" => $subnet_data['dhcpoptignore'],
- "DDNSUPDATE" => $subnet_data['dhcpoptddns-update-style'],
- "DEFAULTLEASE" => $subnet_data['dhcpoptdefault-lease-time'],
- "MAXLEASE" => $subnet_data['dhcpoptmax-lease-time'],
- "USEHOSTDCL" => $subnet_data['dhcpoptuse-host-decl-names'],
- "BROADCAST" => $subnet_data['dhcpoptbroadcast-address'],
- "ROUTERS" => $subnet_data['dhcpoptrouters'],
- "DOMAINNAME" => $subnet_data['dhcpoptdomain-name'],
- "DOMAINNAMESERVERS" => $subnet_data['dhcpoptdomain-name-servers'],
- "NEXTSERVER" => $subnet_data['dhcpoptnext-server'],
- "FILENAME" => $subnet_data['dhcpoptfilename'],
- "SRVIDENT" => $subnet_data['dhcpoptserver-identifier'],
- "NTPSERVERS" => $subnet_data['dhcpoptntp-servers'],
- "OPTGENERIC" => $subnet_data['dhcpoptgeneric'],
- "DHCPOFFERNOWDN" => $subnet_data['dhcphlpcont'],
- "DHCPSVNOW" => $dhcpsvnow,
- "MNR" => $mnr,
- "SBMNR" => $sbmnr,
- "MCNR" => $mcnr));
-
-
-# alternative DHCP Services
-$altdhcp = alternative_dhcpservices($subnet_data['dhcphlpcont']);
-
-$template->assign(array("DHCPSVDN" => "",
- "DHCPSVCN" => "",
- "DHCPSVAU" => ""));
-if (count($altdhcp) != 0){
- $template->define_dynamic("Dhcpservices", "Webseite");
- foreach ($altdhcp as $item){
- $template->assign(array("DHCPSVDN" => $item['dn'],
- "DHCPSVCN" => $item['cn'],
- "DHCPSVAU" => $item['au']));
- $template->parse("DHCPSERVICES_LIST", ".Dhcpservices");
- }
-}
-
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_add.php b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_add.php
deleted file mode 100644
index 5fdc0dec..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_add.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-include('../standard_header.inc.php');
-
-$syntax = new Syntaxcheck;
-
-$subnet = $_POST['dhcpsubnet'];
-$subnetexp = explode("|",$subnet);
-$cn = $subnetexp[0];
-$netmask = $subnetexp[1];
-#print_r($subnet); echo "<br><br>";
-#print_r($cn); echo "<br><br>";
-#print_r($netmask); echo "<br><br>";
-
-$dhcpservice = $_POST['dhcpservice'];
-#$range1 = $_POST['range1'];
-#$range2 = $_POST['range2'];
-# sonstige Attribute
-$attribs = $_POST['attribs'];
-if (count($attribs) != 0){
- foreach (array_keys($attribs) as $key){
- $atts[$key] = htmlentities($attribs[$key]);
- }
-}
-#print_r($atts); echo "<br><br>";
-
-$nodeDN = "cn=dhcp,".$auDN;
-$mnr = $_POST['mnr'];
-$sbmnr = $_POST['sbmnr'];
-
-$get_dhcpcn = str_replace ( " ", "_", $cn );
-$seconds = 2;
-$url = "new_dhcpsubnet.php?&mnr=2";
-
-echo "
-<html>
-<head>
- <title>Computers Management</title>
- <link rel='stylesheet' href='../styles.css' type='text/css'>
-</head>
-<body>
-<table border='0' cellpadding='30' cellspacing='0'>
-<tr><td>";
-
-if ( $cn != "" && $cn != "Hier_Subnetz_eintragen" && $netmask != "" && $netmask != "Hier_Netzmaske_eintragen" ){
-
- if ( $syntax->check_netip_syntax($cn) && $syntax->check_ip_syntax($netmask) ){
-
- if (add_dhcpsubnet ($cn,$dhcpservice,$netmask,$atts)){
- $mesg .= "<br>DHCP Subnet erfolgreich angelegt<br>";
- $url = "dhcpsubnets.php?mnr=".$mnr;
- }else{
- $mesg .= "<br>Fehler beim anlegen des DHCP Subnets!<br>";
- }
-
- }else{
- $mesg .= "Falsche IP Syntax! Geben Sie eine korrekte IP Adresse als Subnet Name oder Netzmaske ein.";
- $url = "new_dhcpsubnet.php?subnetcn=Hier_Subnetz_eintragen&netmask=".$netmask."&mnr=".$mnr;
- }
-}
-
-elseif ( $cn == "" || $cn == "Hier_Subnetz_eintragen" || $netmask == "" || $netmask == "Hier_Netzmaske_eintragen" ){
-
- if ( $cn == ""){ $cn = "Hier_Subnetz_eintragen";}
- if ( $netmask == ""){ $netmask = "Hier_Netzmaske_eintragen";}
- $mesg = "Sie haben die notwendigen Attribute: Name (IP) und Netzmaske des neuen DHCP Subnets nicht angegeben.<br>
- Bitte geben Sie fehlende ein.<br><br>";
- $url = "new_dhcpsubnet.php?subnetcn=".$cn."&netmask=".$netmask."&mnr=".$mnr;
-}
-
-$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
- Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>";
-redirect($seconds, $url, $mesg, $addSessionId = TRUE);
-
-echo "</td></tr></table></body>
-</html>";
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_change.php b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_change.php
deleted file mode 100644
index 875f464b..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_change.php
+++ /dev/null
@@ -1,294 +0,0 @@
-<?php
-include('../standard_header.inc.php');
-
-$syntax = new Syntaxcheck;
-
-$cn = $_POST['cn'];
-$oldcn = $_POST['oldcn'];
-$netmask = $_POST['netmask'];
-$oldnetmask = $_POST['oldnetmask'];
-$dhcpservice = $_POST['dhcpservice'];
-$olddhcpservice = $_POST['olddhcpservice'];
-$newrange1 = $_POST['range1'];
-$oldrange1 = $_POST['oldrange1'];
-$newrange2 = $_POST['range2'];
-$oldrange2 = $_POST['oldrange2'];
-
-$subnetDN = $_POST['subnetdn'];
-
-# sonstige Attribute
-$attribs = $_POST['attribs'];
-if (count($attribs) != 0){
- foreach (array_keys($attribs) as $key){
- $atts[$key] = htmlentities($attribs[$key]);
- }
-}
-#print_r($atts); echo "<br><br>";
-$oldattribs = $_POST['oldattribs'];
-if (count($oldattribs) != 0){
- foreach (array_keys($oldattribs) as $key){
- $oldatts[$key] = htmlentities($oldattribs[$key]);
- }
-}
-#print_r($oldatts); echo "<br><br>";
-
-$nodeDN = "cn=dhcp,".$auDN;
-$mnr = $_POST['mnr'];
-$sbmnr = $_POST['sbmnr'];
-$mcnr = $_POST['mcnr'];
-
-$seconds = 2;
-$url = "dhcpsubnet.php?dn=".$subnetDN."&mnr=".$mnr."&sbmnr=".$sbmnr;
-
-echo "
-<html>
-<head>
- <title>Computers Management</title>
- <link rel='stylesheet' href='../styles.css' type='text/css'>
-</head>
-<body>
-<table border='0' cellpadding='30' cellspacing='0'>
-<tr><td>";
-
-##############################################
-# DHCP Subnet CN (DN)
-
-if ( $oldcn == $cn ){
- # $mesg = "keine Aenderung<br>";
-}
-
-if ( $oldcn != "" && $cn != "" && $oldcn != $cn ){
-
- if ( $syntax->check_netip_syntax($cn) ){
- echo "Subnetz aendern<br>";
- $newsubnetDN = "cn=".$cn.",".$nodeDN;
- print_r($newsubnetDN); echo "<br><br>";
-
- if(modify_subnet_dn($subnetDN,$newsubnetDN)){
- $subnetDN = $newsubnetDN;
- $mesg = "DHCP Subnet erfolgreich ge&auml;ndert<br><br>";
- $url = "dhcpsubnet.php?dn=".$subnetDN."&mnr=".$mnr."&sbmnr=".$sbmnr;
- }else{
- $mesg = "Fehler beim &auml;ndern des DHCP Subnets!<br><br>";
- }
-
- }else{
- $mesg = "falsche IP Syntax<br>";
- }
-}
-
-if ( $oldcn != "" && $cn == "" ){
- echo "DHCP Subnet loeschen!<br>
- Dieser ist Teil des DN, Sie werden den DHCP Subnet komplett l&ouml;schen<br><br>";
- echo "Wollen Sie den DHCP Subnet <b>".$oldcn."</b> wirklich l&ouml;schen?<br><br>
- <form action='dhcpsubnet_delete.php' method='post'>
- Falls ja:<br><br>
- <input type='hidden' name='dn' value='".$subnetDN."'>
- <input type='hidden' name='name' value='".$oldcn."'>
- <input type='Submit' name='apply' value='l&ouml;schen' class='small_loginform_button'><br><br>
- </form>
- <form action='".$url."' method='post'>
- Falls, nein:<br><br>
- <input type='Submit' name='apply' value='zur&uuml;ck' class='small_loginform_button'>
- </form>";
- $seconds = 600;
-}
-
-
-#####################################
-# Netmask
-
-if ( $netmask != $oldnetmask ){
-
- if ( $netmask == ""){
- echo "Die Subnetzmaske ist ein notwendiges Attribut.<br>
- Keine &Auml;nderung!<br>";
- }
-
- if ( $netmask != "" ){
- if ( $syntax->check_ip_syntax($netmask) ){
- $entry ['dhcpoptnetmask'] = $netmask;
- if(ldap_mod_replace($ds,$subnetDN,$entry)){
- $mesg = "Netzmaske erfolgreich ge&auml;ndert<br><br>";
- }else{
- $mesg = "Fehler beim &auml;ndern der Netzmaske!<br><br>";
- }
- }else{
- $mesg = "falsche IP Syntax<br>";
- }
- }
-
-}
-
-
-#####################################
-# DHCP Dienstzuordnung ändern
-
-if ( $dhcpservice != "none" ){
-
- if ( $dhcpservice != "off" && $dhcpservice == $olddhcpservice ){
- $mesg = "Sie haben die gleiche Abteilung ausgew&auml;hlt<br>
- Keine &Auml;nderung!";
- }
-
- if ( $dhcpservice != "off" && $dhcpservice != $olddhcpservice ){
- $entrysv ['dhcphlpcont'] = $dhcpservice;
- if(ldap_mod_replace($ds,$subnetDN,$entrysv)){
- $mesg = "DHCP Dienstzuordnung erfolgreich ge&auml;ndert<br><br>";
- }
- else{
- $mesg = "Fehler beim &auml;ndern der DHCP Dienstzuordnung!<br><br>";
- }
- }
-
- if ( $dhcpservice == "off" && $olddhcpservice != "" ){
- $entrysv ['dhcphlpcont'] = array();
- if(ldap_mod_del($ds,$subnetDN,$entrysv)){
- $mesg = "DHCP Dienstzuordnung erfolgreich ge&auml;ndert<br><br>";
- }
- else{
- $mesg = "Fehler beim &auml;ndern der DHCP Dienstzuordnung!<br><br>";
- }
- }
-
-}
-
-
-#####################################
-# DHCP Range
-
-if ( $newrange1 == $oldrange1 && $newrange2 == $oldrange2 ){
- # $mesg = "keine Aenderung<br>";
-}else{
-
- if ( $newrange1 == "" xor $newrange2 == "" ){
- $mesg = "Bitte beide DHCP Range Felder ausf&uuml;llen, keine Aenderung<br>";
- }
-
- if ( $oldrange1 == "" && $oldrange2 == "" && $newrange1 != "" && $newrange2 != "" ){
- if ( $syntax->check_ip_syntax($newrange1) && $syntax->check_ip_syntax($newrange2) ){
- if ( check_ip_in_subnet($newrange1,$cn) && check_ip_in_subnet($newrange2,$cn)){
- $dhcprange = implode('_',array($newrange1,$newrange2));
- if ( new_ip_dhcprange($dhcprange,$subnetDN,$auDN) ){
- $mesg = "DHCP Range erfolgreich eingetragen";
- }else{
- $mesg = "Fehler beim eintragen der DHCP Range";
- }
- }else{
- $mesg = "DHCP Range nicht in Subnetz ".$cn." enthalten";
- }
- }else{
- $mesg = "falsche IP Syntax<br>";
- }
- }
-
- if ( $oldrange1 != "" && $oldrange2 != "" && $newrange1 != "" && $newrange2 != "" ){
- if ( $syntax->check_ip_syntax($newrange1) && $syntax->check_ip_syntax($newrange2) ){
- if ( check_ip_in_subnet($newrange1,$cn) && check_ip_in_subnet($newrange2,$cn)){
- $dhcprange = implode('_',array($newrange1,$newrange2));
- $olddhcprange = implode('_',array($oldrange1,$oldrange2));
- if ( modify_ip_dhcprange($dhcprange,$subnetDN,$auDN) ){
- $mesg = "DHCP Range erfolgreich ge&auml;ndert";
- }else{
- $mesg = "Fehler beim &auml;ndern der DHCP Range";
- # alte Range wiederherstellen
- new_ip_dhcprange($olddhcprange,$subnetDN,$auDN);
- }
- }else{
- $mesg = "DHCP Range nicht in Subnetz ".$cn." enthalten";
- }
- }else{
- $mesg = "falsche IP Syntax<br>";
- }
- }
-
- if ( $newrange1 == "" && $newrange2 == "" ){
- if ( delete_ip_dhcprange($subnetDN,$auDN) ){
- $mesg = "DHCP Range erfolgreich gel&ouml;scht";
- }else{
- $mesg = "Fehler beim l&ouml;schen der DHCP Range";
- }
- }
-
-}
-
-#####################################
-# Restliche Attribute (u.a. Description)
-
-$entryadd = array();
-$entrymod = array();
-$entrydel = array();
-
-foreach (array_keys($atts) as $key){
-
- if ( $oldatts[$key] == $atts[$key] ){
-
- }
- if ( $oldatts[$key] == "" && $atts[$key] != "" ){
- # hier noch Syntaxcheck
- $entryadd[$key] = $atts[$key];
- }
- if ( $oldatts[$key] != "" && $atts[$key] != "" && $oldatts[$key] != $atts[$key] ){
- # hier noch Syntaxcheck
- $entrymod[$key] = $atts[$key];
- }
- if ( $oldatts[$key] != "" && $atts[$key] == "" ){
- # hier noch Syntaxcheck
- $entrydel[$key] = $oldatts[$key];
- }
-}
-
-#print_r($entryadd); echo "<br>";
-#print_r($entrymod); echo "<br>";
-#print_r($entrydel); echo "<br>";
-
-
-if (count($entryadd) != 0 ){
- #print_r($entryadd); echo "<br>";
- #echo "neu anlegen<br>";
- foreach (array_keys($entryadd) as $key){
- $addatts .= "<b>".$key."</b>,";
- }
- if(ldap_mod_add($ds,$subnetDN,$entryadd)){
- $mesg = "Attribute ".$addatts." erfolgreich eingetragen<br><br>";
- }else{
- $mesg = "Fehler beim eintragen der Attribute ".$addatts."<br><br>";
- }
-}
-
-if (count($entrymod) != 0 ){
- #print_r($entrymod); echo "<br>";
- #echo "&auml;ndern<br>";
- foreach (array_keys($entrymod) as $key){
- $modatts .= "<b>".$key."</b>,";
- }
- if(ldap_mod_replace($ds,$subnetDN,$entrymod)){
- $mesg = "Attribute ".$modatts." erfolgreich geaendert<br><br>";
- }else{
- $mesg = "Fehler beim aendern der Attribute ".$modatts."<br><br>";
- }
-}
-
-if (count($entrydel) != 0 ){
- #print_r($entrydel); echo "<br>";
- #echo "l&ouml;schen<br>";
- foreach (array_keys($entrydel) as $key){
- $delatts .= "<b>".$key."</b>,";
- }
- if(ldap_mod_del($ds,$subnetDN,$entrydel)){
- $mesg = "Attribute ".$delatts." erfolgreich geloescht<br><br>";
- }else{
- $mesg = "Fehler beim loeschen der Attribute ".$delatts."<br><br>";
- }
-}
-
-
-update_dhcpmtime(array());
-
-$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
- Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>";
-redirect($seconds, $url, $mesg, $addSessionId = TRUE);
-
-echo "</td></tr></table></body>
-</html>";
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_delete.php b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_delete.php
deleted file mode 100644
index 28c8277b..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet_delete.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-include('../standard_header.inc.php');
-
-$subnetDN = $_POST['dn'];
-$cn = $_POST['name'];
-$mnr = $_POST['mnr'];
-
-$seconds = 1;
-$url = "dhcpsubnets.php?mnr=".$mnr;
-
-echo "
-<html>
-<head>
- <title>Computers Management</title>
- <link rel='stylesheet' href='../styles.css' type='text/css'>
-</head>
-<body>
-<table border='0' cellpadding='30' cellspacing='0'>
-<tr><td>";
-
-if ( $subnetDN != ""){
- if( delete_dhcpsubnet($subnetDN,$cn)){
- $mesg = "Subnet <b>".$cn."</b> erfolgreich gel&ouml;scht!<br><br>";
- update_dhcpmtime(array());
- }else{
- $mesg = "Fehler beim l&ouml;schen des Subnets <b>".$cn."</b> !<br><br>";
- }
-}
-
-$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
- Falls nicht, klicken Sie hier <a href=".$url." style='publink'>back</a>";
-redirect($seconds, $url, $mesg, $addSessionId = TRUE);
-
-echo "</td></tr></table></body>
-</html>";
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.dwt b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.dwt
deleted file mode 100644
index 514f5b72..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.dwt
+++ /dev/null
@@ -1,36 +0,0 @@
-<table border='0' cellpadding='5' cellspacing='0' width='100%'>
- <tr>
- <td width='80%'>
- <h3>DHCP Subnets</h3>
- &Uuml;bersicht der in <b>{AU}</b> angelegten <b>DHCP Subnets</b>:<br>
- Subnetz (-maske), Status der Einbindung in den zentralen DHCP Dienst, sowie Informationen zu angelegten dynamischen DHCP Pools des Subnetzes.<br><br>
- Zur <b>Verwaltungsmaske</b> eines bestimmten Subnetzes gelangen Sie durch klicken auf entsprechendes Subnetz.<br><br>
- DHCP Subnets k&ouml;nnen nur f&uuml;r Ihnen <b>komplett zugewiesene Subnetze</b> angelegt werden.<br>
- &Uuml;ber die <b>Eingabemaske</b> k&ouml;nnen Sie noch nicht als DHCP Subnets anlegte komplette Subnetze eintragen (Men&uuml;punkt links "Neues DHCP Subnet anlegen").
- </td>
- <td>&nbsp;</td>
- </tr>
-
- <tr><td colspan='2'>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
- <tr>
- <td width='15%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Subnet</b></td>
- <td width='15%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Netmask</b></td>
- <td width='20%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>DHCP Service</b></td>
- <td width='50%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Dynamic Pools (IP Ranges)</b></td>
- </tr>
-
- <!-- BEGIN DYNAMIC BLOCK: Subnets -->
- <tr height='45' valign='top'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>{SUBNETCN} &nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>{NETMASK}&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>{DHCP}&nbsp</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>{POOLS}&nbsp;</td>
- </tr>
- <!-- END DYNAMIC BLOCK: Subnets -->
-
- </table></td>
- </tr>
-
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php
deleted file mode 100644
index 88e10576..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "dhcpsubnets.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = -1;
-$sbmnr = -1;
-$mcnr = -1;
-
-###################################################################################
-
-$mnr = $_GET['mnr'];
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-###################################################################################
-
-$template->assign(array("SUBNETDN" => "",
- "SUBNETCN" => "Noch keine Subnets angelegt",
- "NETMASK" => "",
- "DHCP" => "",
- "POOLS" => ""));
-
-# rbservice und pxe daten (voerst nur ein rbs)
-$subnet_array = get_dhcpsubnets($auDN,array("dn","cn","dhcpoptnetmask","dhcprange","dhcphlpcont"));
-
-$template->define_dynamic("Subnets", "Webseite");
-$template->define_dynamic("Pools", "Webseite");
-
-foreach ($subnet_array as $subnet){
- # Pools des Subnetzes
- $pools = get_dhcppools_subnet($subnet['dn'],array("dhcprange","dhcpoptallow","dhcpoptdeny","dhcpoptignore"));
- #print_r($pools); echo "<br><br>";
- $poollist = "<ul>";
- foreach ($pools as $pool){
- $poollist .= "<li>";
- if (count($pool['dhcprange']) >1){
- for ($i=0; $i<count($pool['dhcprange']); $i++){
- $range = explode('_',$pool['dhcprange'][$i]);
- $poollist .= $range[0]." - ".$range[1];
- if ($i+1 != count($pool['dhcprange'])){
- $poollist .= "<br>";
- }
- }
- }else{
- $range = explode('_',$pool['dhcprange']);
- $poollist .= $range[0]." - ".$range[1];
- }
- if ($pool['dhcpoptallow'] != ""){
- $poollist .= "<br>ALLOW ".$pool['dhcpoptallow'];
- }
- if ($pool['dhcpoptignore'] != ""){
- $poollist .= "<br>IGNORE ".$pool['dhcpoptignore'];
- }
- if ($pool['dhcpoptdeny'] != ""){
- $poollist .= "<br>DENY ".$pool['dhcpoptdeny'];
- }
- $poollist .= " &nbsp;[Abt.: ".$pool['poolAU']."]</li><br>";
- }
- $poollist .= "</ul>";
-
- # Dienstzuordnung des Subnetzes
- $dhcpservice = "";
- if ($subnet['dhcphlpcont'] != ""){
- $exp = ldap_explode_dn($subnet['dhcphlpcont'],1);
- $dhcpservice = $exp[0]."<br>[".$exp[2]."]";
- }
-
- $subnetcn = "<a href='dhcpsubnet.php?dn=".$subnet['dn']."&mnr=".$mnr."' class='headerlink'><b>".$subnet['cn']."</b></a>";
- $template->assign(array("SUBNETDN" => $subnet['dn'],
- "SUBNETCN" => $subnetcn,
- "NETMASK" => $subnet['dhcpoptnetmask'],
- "DHCP" => $dhcpservice,
- "POOLS" => $poollist));
- $template->parse("SUBNETS_LIST", ".Subnets");
-}
-
-
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?>
diff --git a/ldap-site-mngmt/webinterface/dhcp/menu.dwt b/ldap-site-mngmt/webinterface/dhcp/menu.dwt
deleted file mode 100644
index 24e68a3c..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/menu.dwt
+++ /dev/null
@@ -1,32 +0,0 @@
-
-<table cellpadding='0' cellspacing='0' border='0' width='100%'>
-
-
-
- <!-- BEGIN DYNAMIC BLOCK: Hauptmenu -->
-
- <tr valign='middle' align='left'>
-
- <td width='8%' align='right' style="border-style=none;">{ICON}</td>
- <td width="8%" align="left" style="border-width:1 0 1 1;border-color:#000000;border-style:solid;padding:5;background-color:{FARBE}">&nbsp;</td>
- <td width="74%" align="left" style="border-width:1 1 1 0;border-color:#000000;border-style:solid;padding:5;background-color:{FARBE}">
- <a href="{LINK_M}" style="text-decoration:none">
- <code class="submenue_schrift">{TEXT_M}</code>
- </a>
- </td>
- <td width='10%'>&nbsp;</td>
-
- </tr>
-
- <!-- BEGIN DYNAMIC BLOCK: Submenu -->
-
- {SUB}
-
- <!-- END DYNAMIC BLOCK: Submenu -->
-
- <tr height='5'></tr>
- <!-- END DYNAMIC BLOCK: Hauptmenu -->
-
-
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.dwt b/ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.dwt
deleted file mode 100644
index 7d964715..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.dwt
+++ /dev/null
@@ -1,151 +0,0 @@
-<table border='0' cellpadding='5' cellspacing='0' width='100%'>
- <tr>
- <td colspan='2'><h3>DHCP Service anlegen</td>
- </tr>
- <tr>
- <td height='20'></td>
- </tr>
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <form action='dhcpservice_add.php' method='post'>
-
- <tr>
- <td width='40%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Attribut</b></td>
- <td width='60%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert</b></td>
- </tr>
-
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Eindeutiger DHCP Service Name (cn):</b><br>(Teil des dn, ohne Leerzeichen eingeben) &nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <font size='+2'><b>DHCP_</b></font><input type='Text' name='cn' value='{CN}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Beschreibung:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[description]' value='{DESCRIPTION}' size='50' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50' valign='top'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <b>Wer soll Dienst nutzen d&uuml;rfen:</b><br>(W&auml;hlen Sie eine Abteilung,<br>
- impliziert alle Unterabteilungen)
- </td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <select name='dhcpoffer' size='5' class='medium_form_selectbox'>
- <option selected value='{OFFERSELF}'>{SELFOU}</option>
-
- <!-- BEGIN DYNAMIC BLOCK: Dhcpoffers -->
- <option value='{DHCPOFFER}'>{DHCPOFFEROU}</option>
- <!-- END DYNAMIC BLOCK: Dhcpoffers -->
-
- </select>
- </td>
- </tr>
- <!-- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>PRIMARY DN:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[primary]' value='{PRIMARY}' size='50' class='medium_form_field'>
- </td>
- </tr> -->
-
- </table></td>
- </tr>
-
- <tr>
- <td height='40'></td>
- </tr>
- <tr>
- <td colspan='2'><h4>DHCP Optionen des Dienstes (Globaler Scope):</h4></td>
- </tr>
- <tr>
- <td height='10'></td>
- </tr>
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <tr valign='top'>
- <td width='40%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Option</b></td>
- <td width='60%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert(e)</b></td>
- </tr>
-
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Server Identifier:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptserver-identifier]' value='{SRVIDENT}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Default Lease Time:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdefault-lease-time]' value='{DEFAULTLEASE}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Max Lease Time:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptmax-lease-time]' value='{MAXLEASE}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Use Host DCL Names:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptuse-host-decl-names]' value='{USEHOSTDCL}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>DHCP Max Message Size:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdhcp-max-message-size]' value='{MAXMESSIZE}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>DDNS Update Style:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptddns-update-style]' value='{DDNSUPDATE}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Domain Name:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdomain-name]' value='{DOMAINNAME}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Domain Name Servers:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdomain-name-servers]' value='{DOMAINNAMESERVERS}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>NTP Servers:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptntp-servers]' value='{NTPSERVERS}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Allow:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptallow]' value='{ALLOW}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Deny:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdeny]' value='{DENY}' size='40' class='medium_form_field'>
- </td>
- </tr>
-
- <input type='hidden' name='mnr' value='{MNR}'>
- <input type='hidden' name='sbmnr' value='{SBMNR}'>
-
- </table></td>
- </tr>
- <tr>
- <td><input type='Submit' name='apply' value='anlegen' class='small_loginform_button'>
- </form></td>
- </tr>
-
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.php b/ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.php
deleted file mode 100644
index 622bff20..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "new_dhcpservice.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = 0;
-$sbmnr = -1;
-
-###################################################################################
-
-$mnr = $_GET['mnr'];
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-###################################################################################
-
-$dhcpcn = str_replace ( "_", " ", $_GET['dhcpcn']);
-$template->assign(array("CN" => $dhcpcn,
- "PRIMARY" => "",
- "SECONDARY" => "",
- "DESCRIPTION" => "",
- "STATEMENTS" => "",
- "ALLOW" => "",
- "DENY" => "",
- "IGNORE" => "",
- "DDNSUPDATE" => "",
- "DEFAULTLEASE" => "",
- "MAXLEASE" => "",
- "USEHOSTDCL" => "",
- "DOMAINNAME" => "",
- "DOMAINNAMESERVERS" => "",
- "MAXMESSIZE" => "",
- "SRVIDENT" => "",
- "NTPSERVERS" => "",
- "OPTGENERIC" => "",
- "OFFERSELF" => $auDN,
- "SELFOU" => $au_ou,
- "MNR" => $mnr,
- "SBMNR" => $sbmnr));
-
-
-# DHCP Service Anbieten (ausser eigene AU)
-$expdn = ldap_explode_dn($auDN, 0); # Mit Merkmalen
-$expdn = array_slice($expdn, 2);
-$expou = ldap_explode_dn($auDN, 1); # nur Werte
-$expou = array_slice($expou, 2, -3);
-#print_r($expou); echo "<br>";
-#print_r($expdn); echo "<br>";
-for ($i=0; $i<count($expou); $i++){
- $dhcpoffers[$i]['ou'] = $expou[$i];
- $dhcpoffers[$i]['dn'] = implode(',',$expdn);
- $expdn = array_slice($expdn, 1);
-}
-#print_r($dhcpoffers);
-
-$template->define_dynamic("Dhcpoffers", "Webseite");
-if ( count($dhcpoffers) != 0 ){
- foreach ($dhcpoffers as $offer){
- $template->assign(array("DHCPOFFER" => $offer['dn'],
- "DHCPOFFEROU" => $offer['ou'],));
- $template->parse("DHCPOFFERS_LIST", ".Dhcpoffers");
- }
-}
-
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.dwt b/ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.dwt
deleted file mode 100644
index 61d052b1..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.dwt
+++ /dev/null
@@ -1,144 +0,0 @@
-<table border='0' cellpadding='5' cellspacing='0' width='100%'>
- <tr>
- <td colspan='2'><h3>DHCP Subnet anlegen </h3></td>
- </tr>
- <tr>
- <td height='20'></td>
- </tr>
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <form action='dhcpsubnet_add.php' method='post'>
-
- <tr>
- <td width='30%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Attribut</b></td>
- <td width='70%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert</b></td>
- </tr>
-
- <tr height='50' valign='top'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>DHCP Subnet (+ Netmask):</b><br>
- (Noch freie verf&uuml;gbare Netze) &nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <select name='dhcpsubnet' size='{SUBLIST}' class='medium_form_selectbox'>
-
- <!-- BEGIN DYNAMIC BLOCK: Dhcpsubnets -->
- <option value='{SUBNET}'>{CN} / {NETMASK}</option>
- <!-- END DYNAMIC BLOCK: Dhcpsubnets -->
-
- </select>
- </td>
- </tr>
- <tr height='50' valign='top'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>DHCP Dienst w&auml;hlen:</b> </td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <select name='dhcpservice' size='{SRVLIST}' class='medium_form_selectbox'>
- <option selected value='none'>----------</option>
-
- <!-- BEGIN DYNAMIC BLOCK: Dhcpservices -->
- <option value='{DHCPSVDN}'>{DHCPSVCN} / {DHCPSVAU}</option>
- <!-- END DYNAMIC BLOCK: Dhcpservices -->
-
- </select>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Beschreibung:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[description]' value='{DESCRIPTION}' size='50' class='medium_form_field'>
- </td>
- </tr>
- <!--<tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>IP Range:</b><br>(Zur dynamischen Vergabe)</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='range1' value='{RANGE1}' size='15' maxlength='15' class='medium_form_field'>
- &nbsp;&nbsp; - &nbsp;&nbsp;
- <input type='Text' name='range2' value='{RANGE2}' size='15' maxlength='15' class='medium_form_field'>
- </td>
- </tr>-->
-
- </table></td>
- </tr>
-
- <tr>
- <td height='40'></td>
- </tr>
- <tr>
- <td colspan='2'><h4>DHCP Optionen des Subnets (Subnet Scope):</h4></td>
- </tr>
- <tr>
- <td height='10'></td>
- </tr>
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <tr valign='top'>
- <td width='30%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Option</b></td>
- <td width='70%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert(e)</b></td>
- </tr>
-
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Routers:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptrouters]' value='{ROUTERS}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Broadcast Address:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptbroadcast-address]' value='{BROADCAST}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Domain Name:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdomain-name]' value='{DOMAINNAME}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Domain Name Servers:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdomain-name-servers]' value='{DOMAINNAMESERVERS}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Default Lease Time:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptdefault-lease-time]' value='{DEFAULTLEASE}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Max Lease Time:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptmax-lease-time]' value='{MAXLEASE}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <!-- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Next Server:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptnext-server]' value='{NEXTSERVER}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Filename:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptfilename]' value='{FILENAME}' size='40' class='medium_form_field'>
- </td>
- </tr>
- <tr height='50'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>NTP Servers:</b></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[dhcpoptntp-servers]' value='{NTPSERVERS}' size='40' class='medium_form_field'>
- </td>
- </tr>-->
-
- <input type='hidden' name='mnr' value='{MNR}'>
- <input type='hidden' name='sbmnr' value='{SBMNR}'>
-
- </table></td>
- </tr>
- <tr>
- <td><input type='Submit' name='apply' value='anlegen' class='small_loginform_button'>
- </form></td>
- </tr>
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.php b/ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.php
deleted file mode 100644
index 2d2835ec..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.php
+++ /dev/null
@@ -1,109 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "new_dhcpsubnet.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = 0;
-$sbmnr = -1;
-
-###################################################################################
-
-$mnr = $_GET['mnr'];
-$sbmnr = $_GET['sbmnr'];
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-###################################################################################
-
-$subnetcn = str_replace ( "_", " ", $_GET['subnetcn']);
-$netmask = str_replace ( "_", " ", $_GET['netmask']);
-$template->assign(array("CN" => $subnetcn,
- "NETMASK" => $netmask,
- "DESCRIPTION" => "",
- "STATEMENTS" => "",
- "ALLOW" => "",
- "DENY" => "",
- "IGNORE" => "",
- "DDNSUPDATE" => "",
- "DEFAULTLEASE" => "",
- "MAXLEASE" => "",
- "USEHOSTDCL" => "",
- "BROADCAST" => "",
- "ROUTERS" => "",
- "DOMAINNAME" => "",
- "DOMAINNAMESERVERS" => "",
- "NEXTSERVER" => "",
- "FILENAME" => "",
- "SRVIDENT" => "",
- "NTPSERVERS" => "",
- "OPTGENERIC" => "",
- "DHCPSVNOW" => "",
- "DHCPSVNOWAU" => "",
- "MNR" => $mnr,
- "SBMNR" => $sbmnr,
- "MCNR" => $mcnr));
-
-
-
-$freenets = get_networks();
-#print_r($freenets);
-$subnets = array();
-if (count($freenets) != 0){
- $template->define_dynamic("Dhcpsubnets", "Webseite");
-
- foreach ($freenets as $subnet){
- $netexp = explode(".",$subnet);
- $mask = array(255,255,255,255);
- for ($i=0; $i<count($netexp); $i++){
- if ($netexp[$i] == "0"){
- $mask[$i] = "0";
- }
- }
- $netmask = implode(".", $mask);
- $subnets[] = $subnet."|".$netmask;
-
- $template->assign(array("SUBNET" => $subnet."|".$netmask,
- "CN" => $subnet,
- "NETMASK" => $netmask));
- $template->parse("DHCPSUBNETS_LIST", ".Dhcpsubnets");
- }
- #print_r($subnets);
-
-# DHCP Services
-$dhcpservices = get_dhcpoffers($auDN);
-#print_r($dhcpservices); echo "<br>";
-
-$template->assign(array("DHCPSVDN" => "",
- "DHCPSVCN" => "",
- "DHCPSVAU" => ""));
-if (count($dhcpservices) != 0){
-$template->define_dynamic("Dhcpservices", "Webseite");
- foreach ($dhcpservices as $item){
- $exp = ldap_explode_dn($item,1);
-
- $template->assign(array("DHCPSVDN" => $item,
- "DHCPSVCN" => $exp[0],
- "DHCPSVAU" => $exp[2]));
- $template->parse("DHCPSERVICES_LIST", ".Dhcpservices");
- }
-}
-
-$template->assign(array("SUBLIST" => count($freenets)+1,
- "SRVLIST" => count($dhcpservices)+1));
-
-}else{
- # keine freie Netze mehr zur Verfügung
- # wird schon über das DHCP Menu abgefangen ...
-}
-
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/no_dhcp.dwt b/ldap-site-mngmt/webinterface/dhcp/no_dhcp.dwt
deleted file mode 100644
index 4e83f948..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/no_dhcp.dwt
+++ /dev/null
@@ -1,27 +0,0 @@
-<table border='0' cellpadding='5' cellspacing='0' width='90%'>
- <tr>
- <td colspan='2'><h3>Modul - DHCP Management: </h3></td>
- </tr>
- <tr>
- <td height='10'></td>
- </tr>
- <tr>
- <td>
- <p>Verwaltung von DHCP Subnets, Pools (und Classes).<br>
- <br>
- <b>Sie verf&uuml;gen &uuml;ber keine IP Adressen, so dass Sie keine dieser Objekte
- anlegen bzw. verwalten k&ouml;nnen.</b><br>
- <!--<b>Sie verf&uuml;gen &uuml;ber keine kompletten Netzwerke!</b> <br>
- x.x.x.0/24<br>
- x.x.0.0/16<br>
- x.0.0.0/8<br>
- <br>
- Sie k&ouml;nnen daher keine DHCP Dienst- bzw. DHCP Subnetz-Objekte anlegen. <br>-->
- <br>
- Sie k&ouml;nnen jedoch ihre Rechner im zentralen DHCP Dienst eintragen, &uuml;ber das<br>
- Modul <a class='headerlink' href='../computers/computers.php' >Rechner Management</a>.
-
- </td>
- </tr>
-
-</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/dhcp/no_dhcp.php b/ldap-site-mngmt/webinterface/dhcp/no_dhcp.php
deleted file mode 100644
index 06fd226e..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/no_dhcp.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "no_dhcp.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = 0;
-$sbmnr = -1;
-
-###################################################################################
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?> \ No newline at end of file