summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt
diff options
context:
space:
mode:
authorTarik Gasmi2007-06-07 19:49:06 +0200
committerTarik Gasmi2007-06-07 19:49:06 +0200
commitb9d2bd338f68aace2eb9e999896a787014ac7e46 (patch)
treec17514d270e5e01c22f1ffdb54bed6789efaba4b /ldap-site-mngmt
parent* fixed incorrectly generated exportURI (still used the export-name instead (diff)
downloadcore-b9d2bd338f68aace2eb9e999896a787014ac7e46.tar.gz
core-b9d2bd338f68aace2eb9e999896a787014ac7e46.tar.xz
core-b9d2bd338f68aace2eb9e999896a787014ac7e46.zip
Aktuelle Version LDAP-Site-Mngmt Webinterface
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1156 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'ldap-site-mngmt')
-rw-r--r--ldap-site-mngmt/webinterface/computers/computers_menu.php155
-rw-r--r--ldap-site-mngmt/webinterface/computers/dhcphost.dwt54
-rw-r--r--ldap-site-mngmt/webinterface/computers/dhcphost.php134
-rw-r--r--ldap-site-mngmt/webinterface/computers/dhcphost_change.php56
-rw-r--r--ldap-site-mngmt/webinterface/computers/host.dwt317
-rw-r--r--ldap-site-mngmt/webinterface/computers/host.php1
-rw-r--r--ldap-site-mngmt/webinterface/computers/host_change.php12
-rw-r--r--ldap-site-mngmt/webinterface/computers/hwhost.dwt16
-rw-r--r--ldap-site-mngmt/webinterface/computers/hwhost.php1
-rw-r--r--ldap-site-mngmt/webinterface/computers/menu.dwt11
-rw-r--r--ldap-site-mngmt/webinterface/computers/menuentry.dwt2
-rw-r--r--ldap-site-mngmt/webinterface/computers/new_host.dwt25
-rw-r--r--ldap-site-mngmt/webinterface/computers/new_host.php3
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe.dwt287
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe.php72
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe_add.php13
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe_bootmenue.dwt176
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe_bootmenue.php199
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe_change.php95
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe_copy.php6
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe_globals.dwt128
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe_globals.php218
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe_globals_change.php126
-rw-r--r--ldap-site-mngmt/webinterface/computers/pxe_wochenplan.php262
-rw-r--r--ldap-site-mngmt/webinterface/computers/rbshost.dwt382
-rw-r--r--ldap-site-mngmt/webinterface/computers/rbshost.php248
-rw-r--r--ldap-site-mngmt/webinterface/computers/rbshost_change.php95
-rw-r--r--ldap-site-mngmt/webinterface/computers/showpxe.dwt57
-rw-r--r--ldap-site-mngmt/webinterface/computers/showpxe.php95
29 files changed, 2141 insertions, 1105 deletions
diff --git a/ldap-site-mngmt/webinterface/computers/computers_menu.php b/ldap-site-mngmt/webinterface/computers/computers_menu.php
index 9b681bee..977c8492 100644
--- a/ldap-site-mngmt/webinterface/computers/computers_menu.php
+++ b/ldap-site-mngmt/webinterface/computers/computers_menu.php
@@ -25,39 +25,17 @@ function createComputersMenu($rollen , $mnr, $auDN, $sbmnr, $mcnr) {
"text" => "Neues PXE Bootmenü",
"zugriff" => array("MainAdmin","HostAdmin","DhcpAdmin")));
- # Submenu
+ # Submenus
#$comps = array();
$computers_array = get_hosts($auDN,array("dn","hostname","ou"));
#if (count($computers_array) != 0){
for($n=0;$n<count($computers_array);$n++){
- $machineconfigs = get_machineconfigs($computers_array[$n]['dn'],array("dn","cn"));
- $pxeconfigs = get_pxeconfigs($computers_array[$n]['dn'], array("dn","cn"));
- if (count($machineconfigs) != 0){
- $mcc = array();
- for ($m=0;$m<count($machineconfigs);$m++){
- $mcc[] = array("link" => "mcdef.php?dn=".$machineconfigs[$m]['dn']."&mnr=1&sbmnr=".$n."&mcnr=".$m,
- "text" => $machineconfigs[$m]['cn'],
- "zugriff" => array("MainAdmin","HostAdmin","DhcpAdmin"));
- }
- }else{$mcc = array();}
-
- if (count($pxeconfigs) != 0){
- $pxec = array();
- for ($p=0;$p<count($pxeconfigs);$p++){
- $z=$m+$p;
- $pxec[] = array("link" => "pxe.php?dn=".$pxeconfigs[$p]['dn']."&mnr=1&sbmnr=".$n."&mcnr=".$z,
- "text" => $pxeconfigs[$p]['cn'],
- "zugriff" => array("MainAdmin","HostAdmin","DhcpAdmin"));
- }
- }else{$pxec = array();}
-
$comps[] = array("link" => "host.php?dn=".$computers_array[$n]['dn']."&sbmnr=".$n,
"text" => $computers_array[$n]['hostname'],
"zugriff" => array("MainAdmin","HostAdmin","DhcpAdmin"));
# print_r($comps); echo "<br>";
- $mccpxec = array_merge($mcc,$pxec);
- $compmc[] = $mccpxec;
+
}
#}
@@ -67,39 +45,16 @@ function createComputersMenu($rollen , $mnr, $auDN, $sbmnr, $mcnr) {
$groups_array = get_groups($auDN,array("dn","cn"));
for($n=0;$n<count($groups_array);$n++){
- $machineconfigs = get_machineconfigs($groups_array[$n]['dn'],array("dn","cn"));
- $pxeconfigs = get_pxeconfigs($groups_array[$n]['dn'],array("dn","cn"));
- if (count($machineconfigs) != 0){
- $mcg = array();
- for ($m=0;$m<count($machineconfigs);$m++){
- $mcg[] = array("link" => "mcdef.php?dn=".$machineconfigs[$m]['dn']."&mnr=2&sbmnr=".$n."&mcnr=".$m,
- "text" => $machineconfigs[$m]['cn'],
- "zugriff" => array("MainAdmin","HostAdmin","DhcpAdmin"));
- }
- }else{$mcg = array();}
- if (count($pxeconfigs) != 0){
- $pxeg = array();
- for ($p=0;$p<count($pxeconfigs);$p++){
- $z=$m+$p;
- $pxeg[] = array("link" => "pxe.php?dn=".$pxeconfigs[$p]['dn']."&mnr=2&sbmnr=".$n."&mcnr=".$z,
- "text" => $pxeconfigs[$p]['cn'],
- "zugriff" => array("MainAdmin","HostAdmin","DhcpAdmin"));
- }
- }else{$pxeg = array();}
$groups = array();
$groups[] = array("link" => "group.php?dn=".$groups_array[$n]['dn']."&sbmnr=".$n,
"text" => $groups_array[$n]['cn'],
"zugriff" => array("MainAdmin","HostAdmin","DhcpAdmin"));
- $mcgpxeg = array_merge($mcg,$pxeg);
- $groupmc[] = $mcgpxeg;
}
$groups[] = array("link" => "new_group.php?sbmnr=".$n,
"text" => "Neue Gruppe",
"zugriff" => array("MainAdmin","HostAdmin"));
- # print_r($compmc); echo "<br><br>";
- # print_r($groupmc); echo "<br><br>";
# default machine-configs
$mcdef_array = get_machineconfigs("cn=computers,".$auDN,array("dn","cn","timerange"));
@@ -116,17 +71,9 @@ function createComputersMenu($rollen , $mnr, $auDN, $sbmnr, $mcnr) {
array());
#echo "submenu: ";print_r($submenu);echo "<br><br>";
- $subsubmenu = array(array(array(array())),
- $compmc,
- $groupmc,
- array(array(array())),
- array(array(array())));
- #echo "subsubmenu: ";print_r($subsubmenu);echo "<br><br>";
-
- # Zusammenstellen der Menuleiste
+ # Zusammenstellen der Menuleiste
$template->define_dynamic("Hauptmenu", "Menu");
$template->define_dynamic("Submenu", "Menu");
- $template->define_dynamic("Subsubmenu", "Menu");
$i=0;
$maxmenu = count($hauptmenu);
@@ -144,105 +91,10 @@ function createComputersMenu($rollen , $mnr, $auDN, $sbmnr, $mcnr) {
#echo "_"; print_r($maxsub); echo "_";
if($maxsub > 0){
foreach($submenu[$mnr] as $item2) {
-
- $template->clear_parse("SUBSUBMENU_LIST");
-
if($item2['zugriff'] === "alle" || vergleicheArrays($rollen, $item2['zugriff'])) {
- ########################################################################
- # SUBSUBMENU
- $subsubempty = 0;
- $k=0;
- $maxsubsub = count($subsubmenu[$mnr][$sbmnr]);
- #print_r($maxsubsub);
- if ($maxsubsub > 0){
- if($sbmnr >= 0){
- foreach($subsubmenu[$mnr][$sbmnr] as $item3) {
-
- if($item3['zugriff'] === "alle" || vergleicheArrays($rollen, $item3['zugriff'])) {
-
- if($j != $sbmnr || $i != $mnr){
-
- $template->assign(array("SUBSUB" => ""));
- # "LINK_S" => "",
- # "TEXT_S" => ""));
- $template->parse("SUBSUBMENU_LIST", ".Subsubmenu");
- $template->clear_dynamic("Subsubmenu");
- $template->clear_parse("SUBSUBMENU_LIST");
- }
- else{
- if ($k==0) {
- if ($mcnr==0) {
- if($maxsubsub == 1){$zwisch="branchbottom2";}
- else {$zwisch="branch2";}
- $lastaktive=true;
- $farb="#505050";
- }
- else{
- if($maxsubsub == 1){$zwisch="branchbottom2";}
- else {$zwisch="branch2";}
- $farb="#A0A0A0";
- $lastaktive=false;
- }
- }
- else {
- if ($mcnr==$k) {
- if($maxsubsub == $k+1){$zwisch="branchbottom2";}
- else {$zwisch="branch2";}
- $lastaktive=true;
- $farb="#505050";
- }
- else {
- $farb="#A0A0A0";
- if($maxsubsub == $k+1){$zwisch="branchbottom2";}
- else {$zwisch="branch2";}
- # if ($lastaktive) {$zwisch="branch";}
- # else {$zwisch="branch";}
- $lastaktive=false;
- }
- }
- $htmlcode= "
- <tr height='4'>
- <td></td><td></td><td align='right'><img src='../pics/line2.gif' height='4'></td><td></td><td></td>
- </tr>
- <tr>
- <td width='8%'>&nbsp;</td>
- <td width='8%'>&nbsp;</td>
- <td width='5%' align='right'><img src='../pics/".$zwisch.".gif'></td>
- <td width='69%' align='left' style='border-width:1 1 1 1;border-color:#000000;border-style:solid;padding:2;padding-left:30px;background-color:{FARBE_MC}'>
- <a href='".$item3['link']."' style='text-decoration:none'><b class='standard_schrift'>".$item3['text']."</b></a></td>
- <td width='10%'>&nbsp;</td>
- </tr>
- ";
- $template->assign(array("SUBSUB" => $htmlcode));
- $template->assign(array("FARBE_MC" => $farb));
- $template->parse("SUBSUBMENU_LIST", ".Subsubmenu");
- $template->clear_dynamic("Subsubmenu");
-
- }
- }
- else {
- $subsubempty++;
- }
- $k=$k+1;
- }
- }
-
- if($subsubempty == count($subsubmenu[$mnr][$sbmnr])) {
- $template->assign(array("SUBSUB" => ""));
- # "LINK_S" => "",
- # "TEXT_S" => ""));
- $template->parse("SUBSUBMENU_LIST", ".Subsubmenu");
- $template->clear_dynamic("Subsubmenu");
- $template->clear_parse("SUBSUBMENU_LIST");
- }
-
- }
- $template->assign(array("SUBSUB" => ""));
- # SUBSUBMENU
- ########################################################################
if($i != $mnr){
$template->assign(array("SUB" => ""));
# "LINK_S" => "",
@@ -320,7 +172,6 @@ function createComputersMenu($rollen , $mnr, $auDN, $sbmnr, $mcnr) {
$template->clear_dynamic("Submenu");
}
- $template->assign(array("SUBSUB" => ""));
# SUBMENU
#####################################################################
diff --git a/ldap-site-mngmt/webinterface/computers/dhcphost.dwt b/ldap-site-mngmt/webinterface/computers/dhcphost.dwt
index 8ab5c7af..a9d18707 100644
--- a/ldap-site-mngmt/webinterface/computers/dhcphost.dwt
+++ b/ldap-site-mngmt/webinterface/computers/dhcphost.dwt
@@ -1,46 +1,34 @@
<table border='0' cellpadding='5' cellspacing='0' width='100%'>
- <tr>
- <td colspan='4'><h3>Rechner &nbsp;<code class='font_object'> {HOSTNAME} </code> </h3></td>
- </tr>
- <tr>
- <td height='20'></td>
- </tr>
+
<tr>
<td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 1;'><h4>{HOSTLINK} Allgemein </a></h4></td>
- <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4><code class='font_object'>DHCP/RBS</code></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4><code class='font_object'>DHCP</code></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{RBSLINK} RBS/PXE </a></h4></td>
<td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{HWLINK} Hardware </a></h4></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height='20'></td>
</tr>
- <tr><td colspan='4'>
+ <tr>
+ <td colspan='5'><h3>DHCP Setup - Rechner &nbsp;<code class='font_object'> {HOSTNAME} </code> </h3></td>
+ </tr>
+
+ <tr><td colspan='5'>
<table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
<form action='dhcphost_change.php' method='post'>
<tr>
- <td width='25%' class='tab_h'><h4><b>DHCP Setup</b></h4></td>
+ <td width='25%' class='tab_h'><b>DHCP Administration - Diensteinbindung, Optionen</b></td>
<td width='25%' class='tab_h'><b>&nbsp;</b></td>
<td width='50%' class='tab_h'><b>&nbsp;</b></td>
</tr>
<tr valign='top'>
- <td class='tab_d_ohne' colspan='2'><b>Eingebunden in DHCP Dienst: </b>&nbsp;</td>
- <td class='tab_d_ohne'>
- {DHCPCONT} <br></td>
- <td class='tab_d'>
- <select name='dhcpcont' size='4' class='medium_form_selectbox'>
- <option selected value='none'>----------</option>
-
- <!-- BEGIN DYNAMIC BLOCK: Altdhcp -->
- <option value='{ALTDN}'>{ALTCN}{ALTAU}</option>
- <!-- END DYNAMIC BLOCK: Altdhcp -->
-
- <option value=''>Kein DHCP</option>
-
- </select>
- </td>
+
+ {DHCPCONT}
+
</tr>
{HOST_DHCPOPT}
@@ -50,23 +38,7 @@
<tr>
<td height='20'></td>
</tr>
- <tr><td colspan='4'>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <tr>
- <td width='35%' class='tab_h'><h4><b>PXE/TFTP Setup</b></h4></td>
- <td width='65%' class='tab_h'><b>&nbsp;</b></td>
- </tr>
-
- <tr valign='top'>
-
- {RBS}
-
- </tr>
- {RBS_DHCPOPT}
-
- </table></td>
- </tr>
+
<input type='hidden' name='olddhcp' value='{OLDDHCP}'>
<input type='hidden' name='oldfixadd' value='{OLDFIXADD}'>
diff --git a/ldap-site-mngmt/webinterface/computers/dhcphost.php b/ldap-site-mngmt/webinterface/computers/dhcphost.php
index 6a934202..3eb07d19 100644
--- a/ldap-site-mngmt/webinterface/computers/dhcphost.php
+++ b/ldap-site-mngmt/webinterface/computers/dhcphost.php
@@ -41,20 +41,42 @@ $rbsDN = $host['hlprbservice'];
$rbs_dhcpopt = "";
$host_dhcpopt = "";
+$dhcp_selectbox = "";
+
+##########################################################
+# DHCP Setup
# DHCP Daten
if ($dhcphlpcont == ""){
- $dhcp = "Rechner ist in keinem DHCP Dienst angemeldet<br></td></tr>
+ $objecttype = "nodhcp";
+
+ # DHCP Selectbox
+ $altdhcp = alternative_dhcpobjects($objecttype,$objectDN,$hostip[0]);
+ $dhcp_selectbox .= "<td class='tab_d'>
+ <select name='dhcpcont' size='4' class='medium_form_selectbox'>
+ <option selected value='none'>----------</option>";
+ if (count($altdhcp) != 0){
+ foreach ($altdhcp as $item){
+ $dhcp_selectbox .= "
+ <option value='".$item['dn']."'>".$item['cn']." ".$item['au']."</option>";
+ }
+ }
+ $dhcp_selectbox .= "<option value=''>Kein DHCP</option>
+ </select></td>";
+
+ $dhcp = "<td class='tab_d_ohne' colspan='2'><b>Eingebunden in DHCP Dienst: </b>&nbsp;</td>
+ <td class='tab_d_ohne'>
+ Rechner ist in keinem DHCP Dienst angemeldet<br></td></tr>
<tr valign='top'><td class='tab_d' colspan='2'>
- DHCP Dienst ausw&auml;hlen: ";
- $objecttype = "nodhcp";
+ DHCP Dienst ausw&auml;hlen: <br></td>".$dhcp_selectbox;
+
$rbs = "<td class='tab_d_ohne' colspan='2'>
Sie m&uuml;ssen den Rechner zuerst in einem DHCP Dienst anmelden, bevor Sie ihn
einem Remote Boot Dienst zuordnen k&ouml;nnen <br>(DHCP Optionen!!).<br></td>
</tr>
<input type='hidden' name='rbs' value='".$rbsDN."'>";
}else{
- # Subnet?
+ # Host in Service oder Subnet?
$objecttype = "service";
$dhcp = "";
$ocarray = get_node_data($dhcphlpcont,array("objectclass","dhcphlpcont"));
@@ -71,9 +93,26 @@ if ($dhcphlpcont == ""){
$exp1 = explode(',',$dhcphlpcont);
$expdhcp = explode('=',$exp1[0]); $dhcpserv = $expdhcp[1];
$expdhcpau = explode('=',$exp1[2]); $dhcpau = $expdhcpau[1];
- $dhcp .= "Service <b>".$dhcpserv."</b> / AU <b>".$dhcpau."</b><br></td></tr>
+
+ # DHCP Selectbox
+ $altdhcp = alternative_dhcpobjects($objecttype,$objectDN,$hostip[0]);
+ $dhcp_selectbox .= "<td class='tab_d'>
+ <select name='dhcpcont' size='4' class='medium_form_selectbox'>
+ <option selected value='none'>----------</option>";
+ if (count($altdhcp) != 0){
+ foreach ($altdhcp as $item){
+ $dhcp_selectbox .= "
+ <option value='".$item['dn']."'>".$item['cn']." ".$item['au']."</option>";
+ }
+ }
+ $dhcp_selectbox .= "<option value=''>Kein DHCP</option>
+ </select></td>";
+
+ $dhcp .= "<td class='tab_d_ohne' colspan='2'><b>Eingebunden in DHCP Dienst: </b>&nbsp;</td>
+ <td class='tab_d_ohne'>
+ Service <b>".$dhcpserv."</b> / AU <b>".$dhcpau."</b><br></td></tr>
<tr valign='top'><td class='tab_d' colspan='2'>
- DHCP Dienst &auml;ndern: ";
+ DHCP Dienst &auml;ndern: <br></td>".$dhcp_selectbox;
$fixedaddselopt = "<option selected value='none'>------------</option>";
@@ -91,7 +130,7 @@ if ($dhcphlpcont == ""){
<option value=''>kein Eintrag &nbsp;(dynamische IP Vergabe)</option>";
break;
case "hostname":
- $fixedaddress = "<b>".$host['hostname']."</b><br>(Fixe IP Adresse &uuml;ber Hostnamen aufgel&ouml;st)";
+ $fixedaddress = "<b>".$host['hostname']."</b><br>(Fixe IP Adresse &uuml;ber DNS aufgel&ouml;st)";
if ( $hostip[0] != "" ){
$fixedaddselopt .= "<option value='ip'>".$hostip[0]." &nbsp;(IP Adresse)</option>";
}
@@ -115,59 +154,6 @@ if ($dhcphlpcont == ""){
</select>
</td>
</tr>";
-
- ###########################################################
- # RBS Setup
- $rbs_selectbox = "";
- $rbs_dhcpopt = "";
- $altrbs = alternative_rbservices($rbsDN);
-
-
- $rbs_selectbox .= "<td class='tab_d'>
- <select name='rbs' size='4' class='medium_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_selectbox .= "<option value=''>Kein RBS</option>
- </select></td>";
-
- # RBS Daten
- if ($rbsDN == ""){
-
- $rbs = "<td class='tab_d_ohne'><b>Remote Boot Dienst: </b>&nbsp;</td>
- <td class='tab_d_ohne'>
- Rechner ist in keinem Remote Boot Dienst angemeldet<br></td></tr>
- <tr valign='top'><td class='tab_d'>
- RBS ausw&auml;hlen: <br></td>".$rbs_selectbox;
- }else{
-
- $rbs = "";
- $rbsdata = get_node_data($rbsDN,array("tftpserverip"));
- #print_r($rbsdata); echo "<br>";
- $exp2 = explode(',',$host['hlprbservice']);
- $exprbs = explode('=',$exp2[0]); $rbserv = $exprbs[1];
- $exprbsau = explode('=',$exp2[2]); $rbsau = $exprbsau[1];
- $rbs .= "<td class='tab_d_ohne'><b>Remote Boot Dienst: </b>&nbsp;</td>
- <td class='tab_d_ohne'>
- Remote Boot Service <b>".$rbserv."</b> / AU <b>".$rbsau."</b><br>
- TFTP (Boot) Server: <b>".$rbsdata['tftpserverip']."</b><br></td></tr>
- <tr valign='top'><td class='tab_d'>
- RBS &auml;ndern: <br></td>".$rbs_selectbox;
-
- $rbs_dhcpopt = "<tr><td class='tab_d_ohne' colspan='2'><b>DHCP Optionen:</b></td></tr>
- <tr>
- <td class='tab_d_ohne'><b>next-server</b> &nbsp;(TFTP Server):</td>
- <td class='tab_d_ohne'>".$host['dhcpoptnext-server']."&nbsp;</td>
- </tr>
- <tr>
- <td class='tab_d'><b>filename</b> &nbsp;(initiale remote Bootdatei):</td>
- <td class='tab_d'>".$host['dhcpoptfilename']."&nbsp;</td>
- </tr>";
- }
}
@@ -181,12 +167,11 @@ $template->assign(array("HOSTDN" => $hostDN,
"OLDFIXADD" => $host['dhcpoptfixed-address'],
"OLDRBS" => $rbsDN,
"DHCPCONT" => $dhcp,
- "HOST_DHCPOPT" => $host_dhcpopt,
- "RBS" => $rbs,
- "RBS_DHCPOPT" => $rbs_dhcpopt,
+ "HOST_DHCPOPT" => $host_dhcpopt,
"NEXTSERVER" => $host['dhcpoptnext-server'],
"FILENAME" => $host['dhcpoptfilename'],
"HOSTLINK" => "<a href='host.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "RBSLINK" => "<a href='rbshost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
"HWLINK" => "<a href='hwhost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
"AUDN" => $auDN,
"SBMNR" => $sbmnr));
@@ -195,23 +180,22 @@ $template->assign(array("HOSTDN" => $hostDN,
##########################################################
# DHCP Setup
+/*$dhcp_selectbox = "";
$altdhcp = alternative_dhcpobjects($objecttype,$objectDN,$hostip[0]);
-#echo "<br><br>";print_r($altdhcp);
+echo "<br><br>";print_r($altdhcp);
+
+$dhcp_selectbox .= "<td class='tab_d'>
+ <select name='dhcpcont' size='4' class='medium_form_selectbox'>
+ <option selected value='none'>----------</option>";
-$template->assign(array("ALTDN" => "",
- "ALTCN" => "",
- "ALTAU" => ""));
if (count($altdhcp) != 0){
-$template->define_dynamic("Altdhcp", "Webseite");
foreach ($altdhcp as $item){
-
- $template->assign(array("ALTDN" => $item['dn'],
- "ALTCN" => $item['cn'],
- "ALTAU" => $item['au'],));
- $template->parse("ALTDHCP_LIST", ".Altdhcp");
- }
+ $dhcp_selectbox .= "
+ <option value='".$item['dn']."'>".$item['cn']." ".$item['au']."</option>";
+ }
}
-
+$dhcp_selectbox .= "<option value=''>Kein DHCP</option>
+ </select></td>";*/
###########################################################
# RBS Setup
diff --git a/ldap-site-mngmt/webinterface/computers/dhcphost_change.php b/ldap-site-mngmt/webinterface/computers/dhcphost_change.php
index 907fae8f..2a78f109 100644
--- a/ldap-site-mngmt/webinterface/computers/dhcphost_change.php
+++ b/ldap-site-mngmt/webinterface/computers/dhcphost_change.php
@@ -5,20 +5,17 @@ $syntax = new Syntaxcheck;
$dhcp = $_POST['dhcpcont'];
$olddhcp = $_POST['olddhcp'];
+
$hostip = $_POST['hostip'];
$fixedaddress = $_POST['fixadd'];
$oldfixedaddress = $_POST['oldfixadd'];
-$rbs = $_POST['rbs'];
-$oldrbs = $_POST['oldrbs'];
-
$hostDN = $_POST['hostdn'];
$sbmnr = $_POST['sbmnr'];
$dhcp = htmlentities($dhcp);
$olddhcp = htmlentities($olddhcp);
-$rbs = htmlentities($rbs);
-$oldrbs = htmlentities($oldrbs);
+
/*echo "new dhcp:"; print_r($dhcp); echo "<br>";
@@ -72,7 +69,7 @@ if ($dhcp != "none" && $dhcp != $olddhcp){
}
}else{
$entrydhcp ['dhcphlpcont'] = array();
- if ( $fixedaddress != "" ){
+ if ( $oldfixedaddress != "" ){
$entrydhcp ['dhcpoptfixed-address'] = array();
}
echo "DHCP delete "; echo "<br>";
@@ -119,53 +116,6 @@ if ($fixedaddress != "none" && $fixedaddress != $oldfixedaddress){
}
-##########################################
-# RBS
-
-if ($rbs != "none" && $rbs != $oldrbs){
- if ($rbs != ""){
- $exp = ldap_explode_dn($rbs, 1);
- $rbscn = $exp[0];
- $rbsau = $exp[2];
-
- $dhcpdata = get_node_data($rbs,array("tftpserverip","initbootfile"));
- $entryrbs ['hlprbservice'] = $rbs;
- $entryrbs ['dhcpoptnext-server'] = $dhcpdata['tftpserverip'];
- $entryrbs ['dhcpoptfilename'] = $dhcpdata['initbootfile'];
- if ($oldrbs != ""){
- echo "RBS replace "; print_r($oldrbs); echo " with "; print_r($entryrbs); echo "<br>";
- if ($result = ldap_mod_replace($ds,$hostDN,$entryrbs)){
- rbs_adjust_host($hostDN, $rbs);
- $mesg = "Remote Boot Service erfolgreich zu <b>".$rbscn." [Abt.: ".$rbsau."]</b> ge&auml;ndert<br><br>";
- }else{
- $mesg = "Fehler beim &auml;ndern des Remote Boot Services zu <b>".$rbscn."</b>!<br><br>";
- }
- }else{
- echo "RBS add "; print_r($entryrbs); echo "<br>";
- if ($result = ldap_mod_add($ds,$hostDN,$entryrbs)){
- rbs_adjust_host($hostDN, $rbs);
- $mesg = "Remote Boot Service erfolgreich zu <b>".$rbscn." [Abt.: ".$rbsau."]</b> ge&auml;ndert<br><br>";
- }else{
- $mesg = "Fehler beim &auml;ndern des Remote Boot Services zu <b>".$rbscn."</b>!<br><br>";
- }
- }
- }else{
- $entryrbs ['hlprbservice'] = array();
- $entryrbs ['dhcpoptnext-server'] = array();
- $entryrbs ['dhcpoptfilename'] = array();
- echo "RBS delete "; echo "<br>";
- if ($result = ldap_mod_del($ds,$hostDN,$entryrbs)){
- $mesg = "Rechner erfolgreich aus RBS gel&ouml;scht<br><br>";
- }else{
- $mesg = "Fehler beim l&ouml;schen aus RBS!<br><br>";
- }
- }
-}
-if ($rbs == "none"){
- echo "RBS none <br>";
-}
-
-
#####################
$mesg .= "<br>Sie werden automatisch auf die vorherige Seite zur&uuml;ckgeleitet. <br>
diff --git a/ldap-site-mngmt/webinterface/computers/host.dwt b/ldap-site-mngmt/webinterface/computers/host.dwt
index 13d1da11..8eedca62 100644
--- a/ldap-site-mngmt/webinterface/computers/host.dwt
+++ b/ldap-site-mngmt/webinterface/computers/host.dwt
@@ -1,20 +1,21 @@
<table border='0' cellpadding='5' cellspacing='0' width='100%'>
- <tr>
- <td colspan='4'><h3>Rechner &nbsp;<code class='font_object'> {HOSTNAME} </code> </h3></td>
- </tr>
- <tr>
- <td height='20'></td>
- </tr>
+
<tr>
<td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 1;'><h4><code class='font_object'>Allgemein</code></h4></td>
- <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{DHCPLINK} DHCP/RBS </a></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{DHCPLINK} DHCP </a></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{RBSLINK} RBS/PXE </a></h4></td>
<td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{HWLINK} Hardware </a></h4></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height='20'></td>
</tr>
- <tr><td colspan='4'>
+
+ <tr>
+ <td colspan='5'><h3>Administration Rechner &nbsp;<code class='font_object'> {HOSTNAME} </code> </h3></td>
+ </tr>
+
+ <tr><td colspan='5'>
<table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
<form action='host_change.php' method='post'>
@@ -89,7 +90,7 @@
<tr>-->
<tr>
- <td height='40'></td>
+ <td height='50'></td>
</tr>
<tr>
@@ -100,7 +101,6 @@
<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 Rechner wird komplett gel&ouml;scht, <br>d.h. inklusive aller spezifisch f&uuml;r ihn angelegten
@@ -120,302 +120,5 @@
</form></td>
</tr>
-
- <tr>
- <td height='50'></td>
- </tr>
-
- <tr>
- <td colspan='4'><h4>Wochen &Uuml;bersicht Machine Configs Rechner &nbsp;<code class='font_object'>{HOSTNAME}</code>&nbsp; :</h4></td>
- </tr>
- <tr>
- <td height='10'></td>
- </tr>
- <tr><td colspan='4'>
- <table cellpadding='0' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
- <tr align='center'>
- <td width='9%' style='border-color: black; border-style: solid; border-width: 2 0 2 2;'><b>Uhrzeit</b></td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Montag</b></td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Dienstag</b></td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Mittwoch</b></td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Donnerstag</b></td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Freitag</b></td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Samstag</b></td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 2 2 2 1;'><b>Sonntag</b></td>
- </tr>
- <tr heigth='2' align='center'>
- <td width='9%' style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>0</td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A0}'>&nbsp;</td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B0}'>&nbsp;</td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C0}'>&nbsp;</td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D0}'>&nbsp;</td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E0}'>&nbsp;</td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F0}'>&nbsp;</td>
- <td width='13%' style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G0}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A1}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B1}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C1}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D1}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E1}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F1}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G1}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>2</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A2}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B2}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C2}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D2}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E2}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F2}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G2}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A3}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B3}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C3}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D3}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E3}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F3}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G3}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>4</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A4}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B4}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C4}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D4}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E4}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F4}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G4}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A5}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B5}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C5}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D5}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E5}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F5}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G5}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>6</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A6}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B6}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C6}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D6}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E6}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F6}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G6}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A7}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B7}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C7}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D7}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E7}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F7}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G7}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>8</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A8}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B8}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C8}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D8}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E8}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F8}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G8}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A9}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B9}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C9}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D9}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E9}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F9}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G9}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>10</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A10}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B10}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C10}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D10}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E10}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F10}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G10}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A11}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B11}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C11}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D11}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E11}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F11}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G11}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>12</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A12}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B12}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C12}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D12}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E12}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F12}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G12}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A13}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B13}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C13}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D13}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E13}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F13}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G13}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>14</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A14}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B14}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C14}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D14}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E14}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F14}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G14}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A15}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B15}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C15}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D15}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E15}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F15}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G15}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>16</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A16}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B16}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C16}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D16}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E16}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F16}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G16}'>&nbsp;&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A17}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B17}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C17}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D17}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E17}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F17}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G17}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>18</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A18}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B18}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C18}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D18}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E18}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F18}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G18}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A19}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B19}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C19}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D19}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E19}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F19}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G19}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>20</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A20}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B20}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C20}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D20}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E20}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F20}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G20}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A21}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B21}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C21}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D21}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E21}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F21}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G21}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>22</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A22}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B22}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C22}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D22}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E22}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F22}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G22}'>&nbsp;</td>
- </tr>
- <tr heigth='2' align='center'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 2 2;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{A23}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{B23}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{C23}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{D23}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{E23}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{F23}'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 2 2 1;{G23}'>&nbsp;</td>
- </tr>
-
- </table></td>
- </tr>
-
- <tr>
- <td height='10'></td>
- </tr>
- <tr>
- <td colspan='4'><h4>Legende:</h4></td>
- </tr>
- <tr><td colspan='4'>
- <table cellpadding='3' cellspacing='3' border='1' align='left' width='50%' style='border-width: 0 0 0 0;'>
- <tr>
- <td width='65%' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Machine Config</b></td>
- <td width='5%' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>&nbsp;</td>
- <td width='30%' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Farbe</b></td>
- </tr>
-
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>Keine Konfiguration &nbsp;</td>
- <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: 1 1 1 1;'>&nbsp;</td>
- </tr>
-
- <!-- BEGIN DYNAMIC BLOCK: Legende -->
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>{MCDESC} &nbsp;</td>
- <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: 1 1 1 1;background-color:{COLOR};'>&nbsp;</td>
- </tr>
- <!-- END DYNAMIC BLOCK: Legende -->
- </table></td>
- </tr>
-
</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/computers/host.php b/ldap-site-mngmt/webinterface/computers/host.php
index 928df62c..2c522181 100644
--- a/ldap-site-mngmt/webinterface/computers/host.php
+++ b/ldap-site-mngmt/webinterface/computers/host.php
@@ -61,6 +61,7 @@ $template->assign(array("HOSTDN" => $hostDN,
"GRAPHIC" => $host['hw-graphic'],
"MONITOR" => $host['hw-monitor'],
"DHCPLINK" => "<a href='dhcphost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "RBSLINK" => "<a href='rbshost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
"HWLINK" => "<a href='hwhost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
"AUDN" => $auDN,
"SBMNR" => $sbmnr));
diff --git a/ldap-site-mngmt/webinterface/computers/host_change.php b/ldap-site-mngmt/webinterface/computers/host_change.php
index 71c005fa..f54e149d 100644
--- a/ldap-site-mngmt/webinterface/computers/host_change.php
+++ b/ldap-site-mngmt/webinterface/computers/host_change.php
@@ -146,13 +146,15 @@ if ( $oldmac != "" && $mac != "" && $oldmac != $mac ){
echo "MAC aendern<br>";
# hier noch Syntaxcheck
$entry['hwaddress'] = $mac;
+ $pxemac = str_replace (":","-",$mac);
+ $pxeoldmac = str_replace (":","-",$oldmac);
$result = ldap_mod_replace($ds,$hostDN,$entry);
if($result){
# in den PXEs auch ändern
$pxes = get_pxeconfigs($hostDN,array("dn","filename"));
if ( count($pxes) != 0 ){
foreach ($pxes as $pxe){
- $entrynewmac ['filename'] = "01-".$mac;
+ $entrynewmac ['filename'] = "01-".$pxemac;
ldap_mod_replace($ds,$pxe['dn'],$entrynewmac);
}
}
@@ -164,15 +166,15 @@ if ( $oldmac != "" && $mac != "" && $oldmac != $mac ){
foreach ($pxes as $pxe){
if (count($pxe['filename']) > 1){
for ($i=0; $i<count($pxe['filename']); $i++){
- if ($pxe['filename'][$i] == $oldmac){
- $entrynewmac ['filename'][$i] = "01-".$mac;
+ if ($pxe['filename'][$i] == $pxeoldmac){
+ $entrynewmac ['filename'][$i] = "01-".$pxemac;
}else{
$entrynewmac ['filename'][$i] = $pxe['filename'][$i];
}
}
}
- if (count($pxe['filename']) == 1 && $pxe['filename'][$i] == $oldmac){
- $entrynewmac ['filename'] = "01-".$mac;
+ if (count($pxe['filename']) == 1 && $pxe['filename'][$i] == $pxeoldmac){
+ $entrynewmac ['filename'] = "01-".$pxemac;
}
ldap_mod_replace($ds,$pxe['dn'],$entrynewmac);
}
diff --git a/ldap-site-mngmt/webinterface/computers/hwhost.dwt b/ldap-site-mngmt/webinterface/computers/hwhost.dwt
index 472b2f3e..c32c70c4 100644
--- a/ldap-site-mngmt/webinterface/computers/hwhost.dwt
+++ b/ldap-site-mngmt/webinterface/computers/hwhost.dwt
@@ -1,20 +1,20 @@
<table border='0' cellpadding='5' cellspacing='0' width='100%'>
- <tr>
- <td colspan='4'><h3>Rechner &nbsp;<code class='font_object'> {HOSTNAME} </code> </h3></td>
- </tr>
- <tr>
- <td height='20'></td>
- </tr>
+
<tr>
<td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 1;'><h4>{HOSTLINK} Allgemein </a></h4></td>
- <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{DHCPLINK} DHCP/RBS </a></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{DHCPLINK} DHCP </a></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{RBSLINK} RBS/PXE </a></h4></td>
<td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4><code class='font_object'>Hardware</code></h4></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height='20'></td>
</tr>
- <tr><td colspan='4'>
+ <tr>
+ <td colspan='5'><h3>Hardware Optionen - Rechner &nbsp;<code class='font_object'> {HOSTNAME} </code> </h3></td>
+ </tr>
+
+ <tr><td colspan='5'>
<table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
<form action='hwhost_change.php' method='post'>
diff --git a/ldap-site-mngmt/webinterface/computers/hwhost.php b/ldap-site-mngmt/webinterface/computers/hwhost.php
index e401d5ce..7a766266 100644
--- a/ldap-site-mngmt/webinterface/computers/hwhost.php
+++ b/ldap-site-mngmt/webinterface/computers/hwhost.php
@@ -45,6 +45,7 @@ $template->assign(array("HOSTDN" => $hostDN,
"MONITOR" => $host['hw-monitor'],
"DHCPLINK" => "<a href='dhcphost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
"HOSTLINK" => "<a href='host.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "RBSLINK" => "<a href='rbshost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
"AUDN" => $auDN,
"SBMNR" => $sbmnr));
diff --git a/ldap-site-mngmt/webinterface/computers/menu.dwt b/ldap-site-mngmt/webinterface/computers/menu.dwt
index 34e02572..6cb4e63e 100644
--- a/ldap-site-mngmt/webinterface/computers/menu.dwt
+++ b/ldap-site-mngmt/webinterface/computers/menu.dwt
@@ -14,21 +14,10 @@
<td width='10%'>&nbsp;</td>
</tr>
-
-
-
<!-- BEGIN DYNAMIC BLOCK: Submenu -->
{SUB}
-
- <!-- BEGIN DYNAMIC BLOCK: Subsubmenu -->
-
- {SUBSUB}
-
-
- <!-- END DYNAMIC BLOCK: Subsubmenu -->
-
<!-- END DYNAMIC BLOCK: Submenu -->
diff --git a/ldap-site-mngmt/webinterface/computers/menuentry.dwt b/ldap-site-mngmt/webinterface/computers/menuentry.dwt
index 2ad75b93..57c1e0d7 100644
--- a/ldap-site-mngmt/webinterface/computers/menuentry.dwt
+++ b/ldap-site-mngmt/webinterface/computers/menuentry.dwt
@@ -1,6 +1,6 @@
<table border='0' cellpadding='5' cellspacing='0' width='100%'>
<tr>
- <td height='20'><h4>Zur&uuml;ck zu &nbsp;<a href='pxe.php?dn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}' class='headerlink'>{PXECN}</a></h4></td>
+ <td height='20'><h4><a href='pxe.php?dn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}' class='headerlink'><< Zur&uuml;ck zu PXE Config &nbsp;{PXECN}</a></h4></td>
</tr>
<tr>
<td height='20'>&nbsp;</td>
diff --git a/ldap-site-mngmt/webinterface/computers/new_host.dwt b/ldap-site-mngmt/webinterface/computers/new_host.dwt
index 32366a42..b9bccec4 100644
--- a/ldap-site-mngmt/webinterface/computers/new_host.dwt
+++ b/ldap-site-mngmt/webinterface/computers/new_host.dwt
@@ -5,9 +5,6 @@
<tr>
<td height='20'></td>
</tr>
- <tr>
- <td colspan='2'><h4>Notwendige Attribute (m&uuml;ssen angegeben werden):</h3></td>
- </tr>
<tr><td>
<table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
@@ -15,7 +12,7 @@
<form action='host_add.php' method='post'>
<tr>
- <td width='45%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Attribut</b></td>
+ <td width='45%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Notwendiges Attribut</b></td>
<td width='55%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert</b></td>
</tr>
@@ -52,7 +49,7 @@
<td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>MAC Adresse (HWAddress) :</b> &nbsp;</td>
<td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
<input type='Text' name='mac' value='{MAC}' size='17' maxlength='17' class='medium_form_field'>
- Bsp.: 00-12-03-aa-54-e6 &nbsp;
+ Bsp.: 00:12:03:aa:54:e6 &nbsp;
</td>
</tr>
<tr height='50'>
@@ -84,24 +81,6 @@
</tr>
<tr>
- <td height='25'></td>
- </tr>
- <tr>
- <td><h4>Rechner als Host-Objekt in den DHCP Dienst aufnehmen (optional):</h3></td>
- </tr>
-
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <tr>
- <td width='45%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>DHCP Objekt</b></td>
- <td width='55%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Auswahl</b></td>
- </tr>
-
- </table></td>
- </tr>
-
- <tr>
<td height='5'></td>
</tr>
<tr>
diff --git a/ldap-site-mngmt/webinterface/computers/new_host.php b/ldap-site-mngmt/webinterface/computers/new_host.php
index 9be7b46e..92184308 100644
--- a/ldap-site-mngmt/webinterface/computers/new_host.php
+++ b/ldap-site-mngmt/webinterface/computers/new_host.php
@@ -41,9 +41,6 @@ $template->assign(array("HOSTNAME" => $hostname,
"GRAPHIC" => "",
"MONITOR" => "",
"AUDN" => $auDN));
-
-
-# DHCP Stuff
###################################################################################
diff --git a/ldap-site-mngmt/webinterface/computers/pxe.dwt b/ldap-site-mngmt/webinterface/computers/pxe.dwt
index 0dff23eb..e20f8711 100644
--- a/ldap-site-mngmt/webinterface/computers/pxe.dwt
+++ b/ldap-site-mngmt/webinterface/computers/pxe.dwt
@@ -1,166 +1,33 @@
<table border='0' cellpadding='5' cellspacing='0' width='100%'>
+
<tr>
- <td colspan='2'><h3>PXE Boot Men&uuml; &nbsp;<code class='font_object'> {PXECN} </code> </h3></td>
- </tr>
- <tr>
- <td height='10'></td>
- </tr>
-
- <tr>
- <td colspan='2'>Klicken Sie auf einen Men&uuml;eintrag um zur Detailansicht zu gelangen und den Eintrag bearbeiten zu k&ouml;nnen</td>
- </tr>
- <tr>
- <td>
- <table cellpadding='7' cellspacing='0' border='0' align='left' width='80%' style='border-color: black; border-style: solid; border-width: 2 2 2 2;'>
-
- <tr>
- <td width='8%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>#</td>
- <td width='8%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>Flags</td>
- <td width='64%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>Menu Label&nbsp;</td>
- <td width='5%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>&nbsp;</td>
- <td width='15%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>&nbsp;</td>
- </tr>
-
- <!-- BEGIN DYNAMIC BLOCK: Bootmenu -->
- <form action='delete_confirm.php' method='post'>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'>{POSITION}&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'>{MEDEF} {MEPWD} {MEHIDE}&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'><font size='+1'>{ANZEIGE}&nbsp;</font></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'>
- <a href='menuposition_up.php?dn={MENDN}&pos={POSITION}&pxedn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}'><img style='border-width:0;border-style=none;' src='../pics/up2.gif' height='15'></a> <br>
- <a href='menuposition_down.php?dn={MENDN}&pos={POSITION}&pxedn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}'><img style='border-width:0;border-style=none;' src='../pics/down2.gif' height='15'></a></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'>
- <input type='hidden' name='dn' value='{MENDN}'>
- <input type='hidden' name='name' value='{ANZEIGENAME}'>
- <input type='hidden' name='pxedn' value='{PXEDN}'>
- <input type='hidden' name='delurl' value='menuentry_delete.php'>
- <input type='hidden' name='successurl' value='pxe.php?dn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}'>
- <input type='hidden' name='backurl' value='pxe.php?dn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}'>
-
- <input type='Submit' name='apply' value='l&ouml;schen' class='small_loginform_button'>
- </tr>
- </form>
- <!-- END DYNAMIC BLOCK: Bootmenu -->
-
- </table></td>
- </tr>
- <tr>
- <td><h4>Flags:</h4></font>
- <ul>
- <li><b>D</b> -> Default Men&uuml;eintrag</li>
- <li><b>P</b> -> Passwort gesch&uuml;tzt</li>
- <li><b>H</b> -> Hidden</li>
- </ul>
- </td>
+ <td colspan='4' height='20'><h4><a href='{NODETYP}.php?dn={NODEDN}&mnr=1&sbmnr={SBMNR}&mcnr=-1' class='headerlink'><< Zur&uuml;ck zu Rechner &nbsp;{NODE}</a></h4></td>
</tr>
<tr>
- <td height='20'></td>
+ <td height='20'>&nbsp;</td>
</tr>
+
<tr>
- <td colspan='2'><h4>Neuen Men&uuml;eintrag anlegen: &nbsp;&nbsp;</h4>
- <a href='new_menuentry.php?dn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}' style='color:#FFFFFF;' class='small_loginform_button'>&nbsp; zur Eingabemaske &nbsp;</a> </td>
+ <td colspan='4'><h3>PXE Konfiguration &nbsp;<code class='font_object'> {PXECN} </code> </h3></td>
</tr>
<tr>
<td height='10'></td>
</tr>
- <tr>
- <td colspan='2'><h4>Standard Men&uuml;eintr&auml;ge anlegen:</h4></td>
+ <tr>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 1;'><h4><code class='font_object'>Allgemein</code></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{OPTLINK} Global Options </a></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{BMLINK} Bootmenue </a></h4></td>
+ <td>&nbsp;</td>
</tr>
<tr>
- <td>
- <table cellpadding='7' cellspacing='0' border='0' align='left' width='90%' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
-
- <tr>
- <td width='20%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>Typ &nbsp;</td>
- <td width='25%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>&nbsp;</td>
- <td width='25%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>&nbsp;</td>
- <td width='10%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>Position</td>
- <td width='10%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>&nbsp;</td>
- </tr>
- <tr valign='top'>
- <form action='menuentry_add.php' method='post'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Localboot</b> &nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- Menu Label<br><input type='Text' name='locallabel' value='' size='20' class='medium_form_field'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- Passwort (optional)<br><input type='Text' name='localpasswd' value='' size='20' class='medium_form_field'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Text' name='localpos' value='{MAXPOS}' size='2' class='medium_form_field'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Submit' name='apply' value='anlegen' class='small_loginform_button'></td>
- <input type='hidden' name='typ' value='local'>
- <input type='hidden' name='maxpos' value='{MAXPOS}'>
- <input type='hidden' name='pxedn' value='{PXEDN}'>
- <input type='hidden' name='timerange' value='{TIMERANGE}'>
- <input type='hidden' name='mnr' value='{MNR}'>
- <input type='hidden' name='sbmnr' value='{SBMNR}'>
- <input type='hidden' name='mcnr' value='{MCNR}'>
- </form>
- </tr>
- <tr valign='top'>
- <form action='menuentry_add.php' method='post'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Textzeile</b> &nbsp;</td>
- <td colspan='2' style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Text' name='text' value='TEXT' size='50' class='medium_form_field'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Text' name='textpos' value='{MAXPOS}' size='2' class='medium_form_field'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Submit' name='apply' value='anlegen' class='small_loginform_button'></td>
- <input type='hidden' name='typ' value='text'>
- <input type='hidden' name='maxpos' value='{MAXPOS}'>
- <input type='hidden' name='pxedn' value='{PXEDN}'>
- <input type='hidden' name='timerange' value='{TIMERANGE}'>
- <input type='hidden' name='mnr' value='{MNR}'>
- <input type='hidden' name='sbmnr' value='{SBMNR}'>
- <input type='hidden' name='mcnr' value='{MCNR}'>
- </form>
- </tr>
- <tr valign='top'>
- <form action='menuentry_add.php' method='post'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Leerzeile</b> &nbsp;</td>
- <td colspan='2' style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Text' name='leerpos' value='{MAXPOS}' size='2' class='medium_form_field'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Submit' name='apply' value='anlegen' class='small_loginform_button'></td>
- <input type='hidden' name='typ' value='leer'>
- <input type='hidden' name='maxpos' value='{MAXPOS}'>
- <input type='hidden' name='pxedn' value='{PXEDN}'>
- <input type='hidden' name='timerange' value='{TIMERANGE}'>
- <input type='hidden' name='mnr' value='{MNR}'>
- <input type='hidden' name='sbmnr' value='{SBMNR}'>
- <input type='hidden' name='mcnr' value='{MCNR}'>
- </form>
- </tr>
- <tr valign='top'>
- <form action='menuentry_add.php' method='post'>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Verweis zu Submen&uuml;</b> &nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>Submen&uuml; Name<br>
- <input type='Text' name='submenu' value='' size='20' class='medium_form_field'></td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>Remote Boot Service
- <select name='subrbs' size='3' class='small_form_selectbox'>
- <option selected value='none'>----------</option>
- <!-- BEGIN DYNAMIC BLOCK: Subrbs -->
- <option value='{SUBRBSDN}'>{SUBRBSCN} {SUBRBSAU}</option>
- <!-- END DYNAMIC BLOCK: Subrbs -->
- </select>
- </td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Text' name='submenupos' value='{MAXPOS}' size='2' class='medium_form_field'>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Submit' name='apply' value='anlegen' class='small_loginform_button'></td>
- <input type='hidden' name='typ' value='submenu'>
- <input type='hidden' name='maxpos' value='{MAXPOS}'>
- <input type='hidden' name='pxedn' value='{PXEDN}'>
- <input type='hidden' name='timerange' value='{TIMERANGE}'>
- <input type='hidden' name='mnr' value='{MNR}'>
- <input type='hidden' name='sbmnr' value='{SBMNR}'>
- <input type='hidden' name='mcnr' value='{MCNR}'>
- </form>
- </tr>
-
- </table></td>
+ <td height='20'></td>
</tr>
+
<tr>
- <td height='40'></td>
- </tr>
- <tr>
- <td colspan='2'><h4>Allgemeine Parameter:</h4></td>
+ <td colspan='4'><h4>Allgemeine Parameter der PXE Konfiguration:</h4></td>
</tr>
- <tr><td>
+ <tr><td colspan='4'>
<table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
<form action='pxe_change.php' method='post'>
@@ -174,26 +41,6 @@
</tr>
<tr valign='top'>
- <td width='25%' style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Remote Boot Dienst: </b>&nbsp;</td>
- <td width='5%' style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>&nbsp;</td>
- <td width='35%' style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <b>{RBS}</b> [Abteilung: <b>{RBSAU}</b>] </h4><br>
- Von diesem Dienst verwendete Bootserver: <br>
- <b>-</b> &nbsp;NFS Server &nbsp;{NFS}{NFSROOT}<br>
- <b>-</b> &nbsp;TFTP Server {TFTP}{TFTPROOT}</td>
- <td width='35%' style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <b>Alternativen Dienst verwenden:</b><br>
- <select name='rbs' size='3' class='small_form_selectbox'>
- <option selected value='none'>----------</option>
-
- <!-- BEGIN DYNAMIC BLOCK: Altrbs -->
- <option value='{ALTRBSDN}'>{ALTRBSCN} {ALTRBSAU}</option>
- <!-- END DYNAMIC BLOCK: Altrbs -->
-
- </select>
- </td>
- </tr>
- <tr valign='top'>
<td width='25%' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>G&uuml;ltigkeitsdauer <br>(Time Range(s)): </b><br>
Zum L&ouml;schen einer Time Range<br>H&auml;kchen setzen&nbsp;</td>
<td width='5%' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>&nbsp;</td>
@@ -250,111 +97,19 @@
</table></td>
</tr>
-
-
- <tr>
- <td height='40'></td>
- </tr>
- <tr>
- <td colspan='2'><h4>Globale PXE Parameter:</h4></td>
- </tr>
-
- <tr><td>
- <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
-
- <tr>
- <td width='20%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Attribut</b></td>
- <td width='80%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert</b></td>
- </tr>
-
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Default: </b>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[default]' value='{DEFAULT}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[default]' value='{DEFAULT}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Menu Title: </b>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[menutitle]' value='{MENTIT}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[menutitle]' value='{MENTIT}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Menu Master Passwd: </b>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[menumasterpasswd]' value='{MENMPW}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[menumasterpasswd]' value='{MENMPW}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Timeout: </b>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[timeout]' value='{TIMEOUT}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[timeout]' value='{TIMEOUT}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>No Escape: </b>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[noescape]' value='{NOESC}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[noescape]' value='{NOESC}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Prompt: </b>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[prompt]' value='{PROMPT}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[prompt]' value='{PROMPT}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Allow Options: </b>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[allowoptions]' value='{ALLOW}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[allowoptions]' value='{ALLOW}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>On Error: </b>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[onerror]' value='{ONERR}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[onerror]' value='{ONERR}'> &nbsp;
- </td>
- </tr>
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>ON Timeout: </b>&nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <input type='Text' name='attribs[ontimeout]' value='{ONTIME}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[ontimeout]' value='{ONTIME}'> &nbsp;
- </td>
- </tr>
-
- <tr>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>File URI: &nbsp;</td>
- <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
- <font size='+1'>tftp://{TFTP}/{TFTPFILE}</font><input type='Text' name='attribs[fileuri]' value='{FILEURI}' size='30' class='medium_form_field'>
- <input type='hidden' name='oldattribs[fileuri]' value='{FILEURI}'>
- &nbsp;
- </td>
- </tr>
-
- </table></td>
- </tr>
<tr>
<td height='20'></td>
</tr>
<tr>
- <td colspan='2'><h4>PXE Dateiname:</h4>
+ <td colspan='4'><h4>PXE Dateiname:</h4>
Achtung: &Auml;nderungen hier k&ouml;nnen zu nicht verwendeten PXE Dateien f&uuml;hren!<br>
Sie sollten hier nur &Auml;nderungen vornehmen, wenn der PXE Datei offensichtlich ein falscher Name zugewiesen ist.<br>
Wird z.B. vom betroffenen Rechner die MAC Adresse ge&auml;ndert, so wird dies vom System automatisch an dieser Stelle nachvollzogen.
Diese Feld dient daher prim&auml;r der Kontrolle.</td>
</tr>
<tr>
- <td>
+ <td colspan='4'>
<table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
<tr valign='top'>
@@ -393,13 +148,13 @@
</tr>
<tr>
- <td colspan='2'><h4>PXE Boot Men&uuml; &nbsp;<code class='font_object'>{PXECN}</code>&nbsp; kopieren:</h4>
+ <td colspan='4'><h4>PXE Boot Men&uuml; &nbsp;<code class='font_object'>{PXECN}</code>&nbsp; kopieren:</h4>
Beachten Sie, dass die Time Ranges des PXE Boot Men&uuml;s nicht kopiert werden. Sie m&uuml;ssen diese anschlie&szlig;end
neu setzen. <br>
Geben Sie bitte den eindeutigen Namen des neuen PXE Boot Men&uuml;s an.</td>
</tr>
<tr>
- <td>
+ <td colspan='4'>
<table cellpadding='7' cellspacing='0' border='0' align='left' width='90%' style='border-width: 0 0 0 0;'>
<form action='pxe_copy.php' method='post'>
@@ -449,17 +204,17 @@
</tr>
<tr>
- <td colspan='2'><h4>PXE Boot Men&uuml; &nbsp;<code class='font_object'>{PXECN}</code>&nbsp; l&ouml;schen:</h4></td>
+ <td colspan='4'><h4>PXE Boot Men&uuml; &nbsp;<code class='font_object'>{PXECN}</code>&nbsp; l&ouml;schen:</h4></td>
</tr>
<tr>
- <td>
+ <td colspan='4'>
<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;'>
- Die MachineConfig wird komplett gel&ouml;scht.
+ Die PXE Config wird komplett gel&ouml;scht.
</tr>
<input type='hidden' name='dn' value='{PXEDN}'>
diff --git a/ldap-site-mngmt/webinterface/computers/pxe.php b/ldap-site-mngmt/webinterface/computers/pxe.php
index bbc2e5e1..26712077 100644
--- a/ldap-site-mngmt/webinterface/computers/pxe.php
+++ b/ldap-site-mngmt/webinterface/computers/pxe.php
@@ -29,22 +29,20 @@ createComputersMenu($rollen, $mnr, $auDN, $sbmnr, $mcnr);
###################################################################################
$pxeDN = $_GET['dn'];
+# DN, CN des übergeordneten Nodes (Host oder Group)
+$pxednarray = ldap_explode_dn($pxeDN, 0);
+$nodeDN = implode(',',array_slice($pxednarray,2));
+#$nodeDN = $_GET['nodedn'];
+$nodednarray = ldap_explode_dn($nodeDN, 1);
$attributes = array("dn","cn","rbservicedn","filename","timerange","allowoptions","console","default",
"display","font","implicit","kbdmap","menumasterpasswd","menutitle",
"noescape","onerror","ontimeout","prompt","say","serial","timeout","ldapuri","fileuri");
$pxe = get_node_data($pxeDN,$attributes);
-#print_r($pxe);
-
-$exp = explode(',',$pxeDN);
-$node = array_slice($exp,1);
-$nodeDN = implode(',',$node);
# RBS Daten
$rbsDN = $pxe['rbservicedn'];
-$exp = explode(',',$rbsDN);
-$exprbsau = explode('=',$exp[2]); $rbsau = $exprbsau[1];
-$rbsdata = get_node_data($rbsDN,array("cn","nfsserverip","exportpath","tftpserverip","tftppath","tftpclientconfpath"));
+$rbsdata = get_node_data($rbsDN,array("cn","tftpserverip","tftppath","tftpclientconfpath"));
# Timerange Komponenten
$template->define_dynamic("TRanges", "Webseite");
@@ -90,67 +88,19 @@ $maxpos = count($menuentries)+1;
$template->assign(array("PXEDN" => $pxeDN,
"PXECN" => $pxecn,
"TIMERANGE" => $pxe['timerange'],
- "RBS" => $rbsdata['cn'],
- "RBSAU" => $rbsau,
- "NFS" => $rbsdata['nfsserverip'],
- "NFSROOT" => $rbsdata['exportpath'],
"TFTP" => $rbsdata['tftpserverip'],
- "TFTPROOT" => $rbsdata['tftppath'],
"TFTPFILE" => $rbsdata['tftpclientconfpath'],
#"LDAPURI" => $pxe['ldapuri'],
- "FILEURI" => $pxe['fileuri'],
- "ALLOW" => $pxe['allowoptions'],
- "CONSOLE" => $pxe['console'],
- "DEFAULT" => $pxe['default'],
- "DISPLAY" => $pxe['display'],
- "FONT" => $pxe['font'],
- "IMPLICIT" => $pxe['implicit'],
- "KBDMAP" => $pxe['kbdmap'],
- "MENMPW" => $pxe['menumasterpasswd'],
- "MENTIT" => $pxe['menutitle'],
- "NOESC" => $pxe['noescape'],
- "ONERR" => $pxe['onerror'],
- "ONTIME" => $pxe['ontimeout'],
- "PROMPT" => $pxe['prompt'],
- "SAY" => $pxe['say'],
- "SERIAL" => $pxe['serial'],
- "TIMEOUT" => $pxe['timeout'],
- "MAXPOS" => $maxpos,
+ "FILEURI" => $pxe['fileuri'],
"NODEDN" => $nodeDN,
+ "NODE" => $nodednarray[0],
"DEFDN" => "cn=rbs,".$auDN,
+ "OPTLINK" => "<a href='pxe_globals.php?dn=".$pxeDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "BMLINK" => "<a href='pxe_bootmenue.php?dn=".$pxeDN."&sbmnr=".$sbmnr."' class='headerlink'>",
"MNR" => $mnr,
"SBMNR" => $sbmnr,
"MCNR" => $mcnr));
-# Alternative RB Dienste holen
-$altrbs = get_rbsoffers($auDN);
-
-# $altrbs = get_rbservices($auDN,array("dn","cn"));
-$subrbs = $altrbs;
-if (count($altrbs) != 0){
- for ($i=0; $i < count($altrbs); $i++){
- if ($rbsDN == $altrbs[$i]){
- array_splice($altrbs, $i, 1);
- }
- }
-}
-$template->assign(array("ALTRBSDN" => "",
- "ALTRBSCN" => "",
- "ALTRBSAU" => ""));
-if (count($altrbs) != 0){
-$template->define_dynamic("Altrbs", "Webseite");
- foreach ($altrbs as $item){
- $rbsdnexp = ldap_explode_dn($item,1);
- $rbsoffcn = $rbsdnexp[0];
- $rbsoffau = $rbsdnexp[2];
- #$altrbsexp = explode(',',$item['dn']);
- #$altrbsau = explode('=',$altrbsexp[2]);
- $template->assign(array("ALTRBSDN" => $item,
- "ALTRBSCN" => $rbsoffcn,
- "ALTRBSAU" => " &nbsp;&nbsp;[ Abt.: ".$rbsoffau." ]"));
- $template->parse("ALTRBS_LIST", ".Altrbs");
- }
-}
# Für Submenü Einträge
$template->assign(array("SUBRBSDN" => "",
@@ -230,7 +180,7 @@ foreach ($groups_array as $item){
$dnexp = ldap_explode_dn($pxeDN, 1);
if ($dnexp[2] == "computers"){
- $nodetyp = "host";
+ $nodetyp = "rbshost";
}
if ($dnexp[2] == "groups"){
$nodetyp = "group";
diff --git a/ldap-site-mngmt/webinterface/computers/pxe_add.php b/ldap-site-mngmt/webinterface/computers/pxe_add.php
index 8aa54c31..ef245f4d 100644
--- a/ldap-site-mngmt/webinterface/computers/pxe_add.php
+++ b/ldap-site-mngmt/webinterface/computers/pxe_add.php
@@ -164,19 +164,22 @@ if ( $pxecn != "" && $pxecn != "Hier_PXE_NAME_eintragen" && $rbsDN != "none" ){
$filenames = array();
if ($targettype == "computers"){
$macdata = get_node_data($targetDN, array("hwaddress"));
- $filenames[] = "01-".$macdata['hwaddress'];
+ $pxemac = str_replace (":","-",$macdata['hwaddress']);
+ $filenames[] = "01-".$pxemac;
}
if ($targettype == "groups"){
$members = get_node_data($targetDN, array("member"));
if (count($members) > 1){
foreach ($members['member'] as $hostDN){
$macdata = get_node_data($hostDN, array("hwaddress"));
- $filenames[] = "01-".$macdata['hwaddress'];
+ $pxemac = str_replace (":","-",$macdata['hwaddress']);
+ $filenames[] = "01-".$pxemac;
}
}
if (count($members) == 1){
$macdata = get_node_data($members['member'], array("hwaddress"));
- $filenames[] = "01-".$macdata['hwaddress'];
+ $pxemac = str_replace (":","-",$macdata['hwaddress']);
+ $filenames[] = "01-".$pxemac;
}
}
echo "filenames: ";print_r($filenames); echo "<br>";
@@ -187,7 +190,7 @@ if ( $pxecn != "" && $pxecn != "Hier_PXE_NAME_eintragen" && $rbsDN != "none" ){
$rbsDN = $rbs['hlprbservice'];
print_r($rbsDN);
- /*if (add_pxe($pxeDN,$pxecn,$rbsDN,$pxetimerange,$pxeattribs,$filenames,$conffile)){
+ if (add_pxe($pxeDN,$pxecn,$rbsDN,$pxetimerange,$pxeattribs,$filenames,$conffile)){
$mesg .= "<br>Neues PXE Boot Men&uuml; erfolgreich angelegt<br>";
if ($targettype == "computers"){
$mnr=1;
@@ -199,7 +202,7 @@ if ( $pxecn != "" && $pxecn != "Hier_PXE_NAME_eintragen" && $rbsDN != "none" ){
}
else{
$mesg .= "<br>Fehler beim anlegen des PXE Boot Men&uuml;s!<br>";
- }*/
+ }
}
}
}
diff --git a/ldap-site-mngmt/webinterface/computers/pxe_bootmenue.dwt b/ldap-site-mngmt/webinterface/computers/pxe_bootmenue.dwt
new file mode 100644
index 00000000..305baf9f
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/pxe_bootmenue.dwt
@@ -0,0 +1,176 @@
+<table border='0' cellpadding='5' cellspacing='0' width='100%'>
+
+ <tr>
+ <td colspan='4' height='20'><h4><a href='{NODETYP}.php?dn={NODEDN}&mnr=1&sbmnr={SBMNR}&mcnr=-1' class='headerlink'><< Zur&uuml;ck zu Rechner &nbsp;{NODE}</a></h4></td>
+ </tr>
+ <tr>
+ <td height='20'>&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td colspan='4'><h3>PXE Konfiguration &nbsp;<code class='font_object'> {PXECN} </code> </h3></td>
+ </tr>
+ <tr>
+ <td height='10'></td>
+ </tr>
+ <tr>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 1;'><h4>{PXELINK} Allgemein</code></a></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{OPTLINK} Global Options </a></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4><code class='font_object'> Bootmenue </h4></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td height='20'></td>
+ </tr>
+
+ <tr>
+ <td colspan='4'><h4>PXE Bootmen&uuml;:</h4>
+ Klicken Sie auf einen Men&uuml;eintrag um zur Detailansicht zu gelangen und den Eintrag bearbeiten zu k&ouml;nnen</td>
+ </tr>
+ <tr>
+ <td colspan='4'>
+ <table cellpadding='7' cellspacing='0' border='0' align='left' width='80%' style='border-color: black; border-style: solid; border-width: 2 2 2 2;'>
+
+ <tr>
+ <td width='8%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>#</td>
+ <td width='8%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>Flags</td>
+ <td width='64%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>Menu Label&nbsp;</td>
+ <td width='5%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>&nbsp;</td>
+ <td width='15%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>&nbsp;</td>
+ </tr>
+
+ <!-- BEGIN DYNAMIC BLOCK: Bootmenu -->
+ <form action='delete_confirm.php' method='post'>
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'>{POSITION}&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'>{MEDEF} {MEPWD} {MEHIDE}&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'><font size='+1'>{ANZEIGE}&nbsp;</font></td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'>
+ <a href='menuposition_up.php?dn={MENDN}&pos={POSITION}&pxedn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}'><img style='border-width:0;border-style=none;' src='../pics/up2.gif' height='15'></a> <br>
+ <a href='menuposition_down.php?dn={MENDN}&pos={POSITION}&pxedn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}'><img style='border-width:0;border-style=none;' src='../pics/down2.gif' height='15'></a></td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'>
+ <input type='hidden' name='dn' value='{MENDN}'>
+ <input type='hidden' name='name' value='{ANZEIGENAME}'>
+ <input type='hidden' name='pxedn' value='{PXEDN}'>
+ <input type='hidden' name='delurl' value='menuentry_delete.php'>
+ <input type='hidden' name='successurl' value='pxe.php?dn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}'>
+ <input type='hidden' name='backurl' value='pxe.php?dn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}'>
+
+ <input type='Submit' name='apply' value='l&ouml;schen' class='small_loginform_button'>
+ </tr>
+ </form>
+ <!-- END DYNAMIC BLOCK: Bootmenu -->
+
+ </table></td>
+ </tr>
+ <tr>
+ <td colspan='4'><h4>Flags:</h4></font>
+ <ul>
+ <li><b>D</b> -> Default Men&uuml;eintrag</li>
+ <li><b>P</b> -> Passwort gesch&uuml;tzt</li>
+ <li><b>H</b> -> Hidden</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td height='20'></td>
+ </tr>
+ <tr>
+ <td colspan='4'><h4>Neuen Men&uuml;eintrag anlegen: &nbsp;&nbsp;</h4>
+ <a href='new_menuentry.php?dn={PXEDN}&mnr={MNR}&sbmnr={SBMNR}&mcnr={MCNR}' style='color:#FFFFFF;' class='small_loginform_button'>&nbsp; zur Eingabemaske &nbsp;</a> </td>
+ </tr>
+ <tr>
+ <td height='10'></td>
+ </tr>
+ <tr>
+ <td colspan='4'><h4>Standard Men&uuml;eintr&auml;ge anlegen:</h4></td>
+ </tr>
+ <tr>
+ <td colspan='4'>
+ <table cellpadding='7' cellspacing='0' border='0' align='left' width='90%' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>
+
+ <tr>
+ <td width='20%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>Typ &nbsp;</td>
+ <td width='25%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>&nbsp;</td>
+ <td width='25%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>&nbsp;</td>
+ <td width='10%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>Position</td>
+ <td width='10%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>&nbsp;</td>
+ </tr>
+ <tr valign='top'>
+ <form action='menuentry_add.php' method='post'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Localboot</b> &nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ Menu Label<br><input type='Text' name='locallabel' value='' size='20' class='medium_form_field'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ Passwort (optional)<br><input type='Text' name='localpasswd' value='' size='20' class='medium_form_field'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Text' name='localpos' value='{MAXPOS}' size='2' class='medium_form_field'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Submit' name='apply' value='anlegen' class='small_loginform_button'></td>
+ <input type='hidden' name='typ' value='local'>
+ <input type='hidden' name='maxpos' value='{MAXPOS}'>
+ <input type='hidden' name='pxedn' value='{PXEDN}'>
+ <input type='hidden' name='timerange' value='{TIMERANGE}'>
+ <input type='hidden' name='mnr' value='{MNR}'>
+ <input type='hidden' name='sbmnr' value='{SBMNR}'>
+ <input type='hidden' name='mcnr' value='{MCNR}'>
+ </form>
+ </tr>
+ <tr valign='top'>
+ <form action='menuentry_add.php' method='post'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Textzeile</b> &nbsp;</td>
+ <td colspan='2' style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Text' name='text' value='TEXT' size='50' class='medium_form_field'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Text' name='textpos' value='{MAXPOS}' size='2' class='medium_form_field'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Submit' name='apply' value='anlegen' class='small_loginform_button'></td>
+ <input type='hidden' name='typ' value='text'>
+ <input type='hidden' name='maxpos' value='{MAXPOS}'>
+ <input type='hidden' name='pxedn' value='{PXEDN}'>
+ <input type='hidden' name='timerange' value='{TIMERANGE}'>
+ <input type='hidden' name='mnr' value='{MNR}'>
+ <input type='hidden' name='sbmnr' value='{SBMNR}'>
+ <input type='hidden' name='mcnr' value='{MCNR}'>
+ </form>
+ </tr>
+ <tr valign='top'>
+ <form action='menuentry_add.php' method='post'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Leerzeile</b> &nbsp;</td>
+ <td colspan='2' style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Text' name='leerpos' value='{MAXPOS}' size='2' class='medium_form_field'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Submit' name='apply' value='anlegen' class='small_loginform_button'></td>
+ <input type='hidden' name='typ' value='leer'>
+ <input type='hidden' name='maxpos' value='{MAXPOS}'>
+ <input type='hidden' name='pxedn' value='{PXEDN}'>
+ <input type='hidden' name='timerange' value='{TIMERANGE}'>
+ <input type='hidden' name='mnr' value='{MNR}'>
+ <input type='hidden' name='sbmnr' value='{SBMNR}'>
+ <input type='hidden' name='mcnr' value='{MCNR}'>
+ </form>
+ </tr>
+ <tr valign='top'>
+ <form action='menuentry_add.php' method='post'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Verweis zu Submen&uuml;</b> &nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>Submen&uuml; Name<br>
+ <input type='Text' name='submenu' value='' size='20' class='medium_form_field'></td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>Remote Boot Service
+ <select name='subrbs' size='3' class='small_form_selectbox'>
+ <option selected value='none'>----------</option>
+ <!-- BEGIN DYNAMIC BLOCK: Subrbs -->
+ <option value='{SUBRBSDN}'>{SUBRBSCN} {SUBRBSAU}</option>
+ <!-- END DYNAMIC BLOCK: Subrbs -->
+ </select>
+ </td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Text' name='submenupos' value='{MAXPOS}' size='2' class='medium_form_field'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><input type='Submit' name='apply' value='anlegen' class='small_loginform_button'></td>
+ <input type='hidden' name='typ' value='submenu'>
+ <input type='hidden' name='maxpos' value='{MAXPOS}'>
+ <input type='hidden' name='pxedn' value='{PXEDN}'>
+ <input type='hidden' name='timerange' value='{TIMERANGE}'>
+ <input type='hidden' name='mnr' value='{MNR}'>
+ <input type='hidden' name='sbmnr' value='{SBMNR}'>
+ <input type='hidden' name='mcnr' value='{MCNR}'>
+ </form>
+ </tr>
+
+ </table></td>
+ </tr>
+
+
+</table>
diff --git a/ldap-site-mngmt/webinterface/computers/pxe_bootmenue.php b/ldap-site-mngmt/webinterface/computers/pxe_bootmenue.php
new file mode 100644
index 00000000..c6b62011
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/pxe_bootmenue.php
@@ -0,0 +1,199 @@
+<?php
+
+include('../standard_header.inc.php');
+
+# 1. Seitentitel - wird in der Titelleiste des Browser angezeigt.
+$titel = "Computers Management";
+# 2. Nummer des zugehörigen Hauptmenus (Registerkarte) beginnend bei 0, siehe Dokumentation.doc.
+$mainnr = 3;
+$mnr = -1;
+$sbmnr = -1;
+$mcnr = -1;
+# 3. Dateiname und evtl. Pfad des Templates für die Webseite
+$webseite = "pxe_bootmenue.dwt";
+
+include("../class.FastTemplate.php");
+
+include('computers_header.inc.php');
+
+###################################################################################
+
+$mnr = $_GET['mnr'];
+$sbmnr = $_GET['sbmnr'];
+$mcnr = $_GET['mcnr'];
+
+# Menuleisten erstellen
+createMainMenu($rollen, $mainnr);
+createComputersMenu($rollen, $mnr, $auDN, $sbmnr, $mcnr);
+
+###################################################################################
+
+$pxeDN = $_GET['dn'];
+# DN, CN des übergeordneten Nodes (Host oder Group)
+$pxednarray = ldap_explode_dn($pxeDN, 0);
+$nodeDN = implode(',',array_slice($pxednarray,2));
+#$nodeDN = $_GET['nodedn'];
+$nodednarray = ldap_explode_dn($nodeDN, 1);
+
+$attributes = array("dn","cn","rbservicedn","filename","timerange","allowoptions","console","default",
+ "display","font","implicit","kbdmap","menumasterpasswd","menutitle",
+ "noescape","onerror","ontimeout","prompt","say","serial","timeout","ldapuri","fileuri");
+$pxe = get_node_data($pxeDN,$attributes);
+
+# RBS Daten
+$rbsDN = $pxe['rbservicedn'];
+$rbsdata = get_node_data($rbsDN,array("cn","tftpserverip","tftppath","tftpclientconfpath"));
+
+# Timerange Komponenten
+$template->define_dynamic("TRanges", "Webseite");
+if (count($pxe['timerange']) > 1){
+ foreach($pxe['timerange'] as $tr){
+ $exptime = explode('_',$tr);
+ $template->assign(array("PXEDAY" => $exptime[0],
+ "PXEBEG" => $exptime[1],
+ "PXEEND" => $exptime[2]));
+ $template->parse("TRANGES_LIST", ".TRanges");
+ }
+}else{
+ $exptime = explode('_',$pxe['timerange']);
+ $template->assign(array("PXEDAY" => $exptime[0],
+ "PXEBEG" => $exptime[1],
+ "PXEEND" => $exptime[2]));
+ $template->parse("TRANGES_LIST", ".TRanges");
+}
+
+# Filenames
+$template->define_dynamic("Filenames", "Webseite");
+if (count($pxe['filename']) > 1){
+ foreach($pxe['filename'] as $fi){
+ $template->assign(array("FILE" => $fi));
+ $template->parse("FILENAMES_LIST", ".Filenames");
+ }
+}else{
+ $exptime = explode('_',$pxe['filename']);
+ $template->assign(array("FILE" => $pxe['filename']));
+ $template->parse("FILENAMES_LIST", ".Filenames");
+}
+
+$expcn = explode('_',$pxe['cn']);
+$name = array_slice($expcn,1);
+$pxecn = implode('_',$name);
+
+# Bootmenü Einträge
+$menuentries = get_menuentries($pxeDN,array("dn","menuposition","label","menulabel","menudefault","menupasswd","menuhide"));
+# print_r($menuentries); echo "<br>";
+$maxpos = count($menuentries)+1;
+
+# Globale Parameter
+$template->assign(array("PXEDN" => $pxeDN,
+ "PXECN" => $pxecn,
+ "TIMERANGE" => $pxe['timerange'],
+ "MAXPOS" => $maxpos,
+ "NODEDN" => $nodeDN,
+ "NODE" => $nodednarray[0],
+ "DEFDN" => "cn=rbs,".$auDN,
+ "PXELINK" => "<a href='pxe.php?dn=".$pxeDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "OPTLINK" => "<a href='pxe_globals.php?dn=".$pxeDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "MNR" => $mnr,
+ "SBMNR" => $sbmnr,
+ "MCNR" => $mcnr));
+
+
+# Für Submenü Einträge
+$template->assign(array("SUBRBSDN" => "",
+ "SUBRBSCN" => "",
+ "SUBRBSAU" => ""));
+if (count($subrbs) != 0){
+$template->define_dynamic("Subrbs", "Webseite");
+ foreach ($subrbs as $item){
+ $rbsdnexp = ldap_explode_dn($item,1);
+ $subrbscn = $rbsdnexp[0];
+ $subrbsau = $rbsdnexp[2];
+ #$subrbsexp = explode(',',$item['dn']);
+ #$subrbsau = explode('=',$subrbsexp[2]);
+ $template->assign(array("SUBRBSDN" => $item,
+ "SUBRBSCN" => $subrbscn,
+ "SUBRBSAU" => "[ ".$subrbsau." ]"));
+ $template->parse("SUBRBS_LIST", ".Subrbs");
+ }
+}
+
+################################################
+# Bootmenü Einträge
+
+$template->define_dynamic("Bootmenu", "Webseite");
+$template->assign(array("MENDN" => "",
+ "MENULABEL" => "",
+ "ANZEIGE" => "Noch kein Bootmen&uuml; Eintrag angelegt",
+ "MEDEF" => "",
+ "MEPWD" => "",
+ "MEHIDE" => "",
+ "BGCDEF" => "",
+ "POSITION" => ""));
+foreach ($menuentries as $me){
+ $anzeige = "";
+ if ($me['label'] != "" && $me['menulabel'] == ""){$anzeige .= $me['label'];}
+ if ($me['menulabel'] != ""){$anzeige .= $me['menulabel'];}
+ if ($me['menudefault'] == 1){$medef = "<b>D</b>"; $bgcdef = "background-color:#EEDD82;";}
+ if ($me['menupasswd'] != ""){$mepwd = "<b>P</b>";}
+ if ($me['menuhide'] == 1){$mehide = "<b>H</b>"; $bgcdef = "background-color:#A0A0A0;";}
+ $template->assign(array("MENDN" => $me['dn'],
+ "ANZEIGE" => "<a href='menuentry.php?dn=".$me['dn']."&mnr=".$mnr."&sbmnr=".$sbmnr."&mcnr=".$mcnr."' class='headerlink'>".$anzeige."</a>",
+ "ANZEIGENAME" => $anzeige,
+ "POSITION" => $me['menuposition'],
+ "MEDEF" => $medef,
+ "MEPWD" => $mepwd,
+ "MEHIDE" => $mehide,
+ "BGCDEF" => $bgcdef,
+ "AUDN" => $auDN));
+ $template->parse("BOOTMENU_LIST", ".Bootmenu");
+ $medef = "";
+ $bgcdef = "";
+}
+
+
+################################################
+# PXE kopieren
+
+$hostorgroup = $exp[0];
+$hgexp = explode('=',$exp[0]);
+
+
+$hosts_array = get_hosts($auDN,array("dn","hostname"));
+$groups_array = get_groups($auDN,array("dn","cn"));
+
+$template->define_dynamic("Hosts", "Webseite");
+foreach ($hosts_array as $item){
+ $template->assign(array("HDN" => $item['dn'],
+ "HN" => $item['hostname']));
+ $template->parse("HOSTS_LIST", ".Hosts");
+}
+$template->define_dynamic("Groups", "Webseite");
+foreach ($groups_array as $item){
+ $template->assign(array("GDN" => $item['dn'],
+ "GN" => $item['cn']));
+ $template->parse("GROUPS_LIST", ".Groups");
+}
+
+$dnexp = ldap_explode_dn($pxeDN, 1);
+if ($dnexp[2] == "computers"){
+ $nodetyp = "rbshost";
+}
+if ($dnexp[2] == "groups"){
+ $nodetyp = "group";
+}
+# falls TR vorhanden dann soll sie gelöscht werden (flag deltr setzen)
+if (count($pxe['timerange']) != 0){
+ $template->assign(array("DELTR" => "1",
+ "NODETYP" => $nodetyp));
+}
+else{
+ $template->assign(array("DELTR" => "0",
+ "NODETYP" => $nodetyp));
+}
+
+###################################################################################
+
+include("computers_footer.inc.php");
+
+?>
diff --git a/ldap-site-mngmt/webinterface/computers/pxe_change.php b/ldap-site-mngmt/webinterface/computers/pxe_change.php
index b3fcd4fa..07af7ed5 100644
--- a/ldap-site-mngmt/webinterface/computers/pxe_change.php
+++ b/ldap-site-mngmt/webinterface/computers/pxe_change.php
@@ -1,6 +1,8 @@
<?php
include('../standard_header.inc.php');
+$pxeDN = $_POST['pxedn'];
+$oldpxecn = "PXE_".$_POST['oldpxecn'];
$pxecn = "PXE_".$_POST['pxecn'];
$pxeday = $_POST['pxeday'];
@@ -21,13 +23,10 @@ $deltr = $_POST['deltr'];
$newpxeday = $_POST['newpxeday']; $newpxeday = htmlentities($newpxeday);
$newpxebeg = $_POST['newpxebeg']; $newpxebeg = htmlentities($newpxebeg);
$newpxeend = $_POST['newpxeend']; $newpxeend = htmlentities($newpxeend);
-
$oldpxeday = $_POST['oldpxeday'];
$oldpxebeg = $_POST['oldpxebeg'];
$oldpxeend = $_POST['oldpxeend'];
-$pxeDN = $_POST['pxedn'];
-$oldpxecn = "PXE_".$_POST['oldpxecn'];
$rbs = $_POST['rbs'];
$filename = $_POST['filename'];
@@ -50,22 +49,6 @@ $mnr = $_POST['mnr'];
$sbmnr = $_POST['sbmnr'];
$mcnr = $_POST['mcnr'];
-# 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>";
-
$seconds = 2;
$url = "pxe.php?dn=".$pxeDN."&mnr=".$mnr."&sbmnr=".$sbmnr."&mcnr=".$mcnr;
@@ -354,79 +337,7 @@ if ($newfilename != ""){
}
-
-##################################################################
-# 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];
- }
-}
-
-#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,$pxeDN,$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,$pxeDN,$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,$pxeDN,$entrydel)){
- $mesg = "Attribute ".$delatts." erfolgreich geloescht<br><br>";
- }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>";
diff --git a/ldap-site-mngmt/webinterface/computers/pxe_copy.php b/ldap-site-mngmt/webinterface/computers/pxe_copy.php
index eb75ea44..61760a8e 100644
--- a/ldap-site-mngmt/webinterface/computers/pxe_copy.php
+++ b/ldap-site-mngmt/webinterface/computers/pxe_copy.php
@@ -119,7 +119,8 @@ if ( $pxecn != ""){
# Filename anpassen
if ($targettype == "computers"){
$macdata = get_node_data($targetDN, array("hwaddress"));
- $entrymod ['filename'] = "01-".$macdata['hwaddress'];
+ $pxemac = str_replace (":","-",$macdata['hwaddress']);
+ $entrymod ['filename'] = "01-".$pxemac;
#$entrymod ['fileuri'] = "01-".$macdata['hwaddress'].".tgz";
}
if ($targettype == "groups"){
@@ -127,7 +128,8 @@ if ( $pxecn != ""){
if (count($members) != 0){
foreach ($members['member'] as $hostDN){
$macdata = get_node_data($hostDN, array("hwaddress"));
- $entrymod ['filename'][] = "01-".$macdata['hwaddress'];
+ $pxemac = str_replace (":","-",$macdata['hwaddress']);
+ $entrymod ['filename'][] = "01-".$pxemac;
#$entrymod ['fileuri'] = $target.".tgz";
}
}
diff --git a/ldap-site-mngmt/webinterface/computers/pxe_globals.dwt b/ldap-site-mngmt/webinterface/computers/pxe_globals.dwt
new file mode 100644
index 00000000..78b89481
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/pxe_globals.dwt
@@ -0,0 +1,128 @@
+<table border='0' cellpadding='5' cellspacing='0' width='100%'>
+
+ <tr>
+ <td colspan='4' height='20'><h4><a href='{NODETYP}.php?dn={NODEDN}&mnr=1&sbmnr={SBMNR}&mcnr=-1' class='headerlink'><< Zur&uuml;ck zu Rechner &nbsp;{NODE}</a></h4></td>
+ </tr>
+ <tr>
+ <td height='20'>&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td colspan='4'><h3>PXE Konfiguration &nbsp;<code class='font_object'> {PXECN} </code> </h3></td>
+ </tr>
+ <tr>
+ <td height='10'></td>
+ </tr>
+ <tr>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 1;'><h4>{PXELINK} Allgemein</code></a></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4><code class='font_object'> Global Options </h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{BMLINK} Bootmenue </a></h4></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td height='20'></td>
+ </tr>
+
+
+ <tr>
+ <td colspan='4'><h4>Globale Optionen der PXE Konfiguration:</h4></td>
+ </tr>
+
+ <tr><td colspan='4'>
+ <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
+
+ <form action='pxe_globals_change.php' method='post'>
+
+ <tr>
+ <td width='20%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Attribut</b></td>
+ <td width='80%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'><b>Wert</b></td>
+ </tr>
+
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Default: </b>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ <input type='Text' name='attribs[default]' value='{DEFAULT}' size='30' class='medium_form_field'>
+ <input type='hidden' name='oldattribs[default]' value='{DEFAULT}'> &nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Menu Title: </b>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ <input type='Text' name='attribs[menutitle]' value='{MENTIT}' size='30' class='medium_form_field'>
+ <input type='hidden' name='oldattribs[menutitle]' value='{MENTIT}'> &nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Menu Master Passwd: </b>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ <input type='Text' name='attribs[menumasterpasswd]' value='{MENMPW}' size='30' class='medium_form_field'>
+ <input type='hidden' name='oldattribs[menumasterpasswd]' value='{MENMPW}'> &nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Timeout: </b>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ <input type='Text' name='attribs[timeout]' value='{TIMEOUT}' size='30' class='medium_form_field'>
+ <input type='hidden' name='oldattribs[timeout]' value='{TIMEOUT}'> &nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>No Escape: </b>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ <input type='Text' name='attribs[noescape]' value='{NOESC}' size='30' class='medium_form_field'>
+ <input type='hidden' name='oldattribs[noescape]' value='{NOESC}'> &nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Prompt: </b>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ <input type='Text' name='attribs[prompt]' value='{PROMPT}' size='30' class='medium_form_field'>
+ <input type='hidden' name='oldattribs[prompt]' value='{PROMPT}'> &nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>Allow Options: </b>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ <input type='Text' name='attribs[allowoptions]' value='{ALLOW}' size='30' class='medium_form_field'>
+ <input type='hidden' name='oldattribs[allowoptions]' value='{ALLOW}'> &nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>On Error: </b>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ <input type='Text' name='attribs[onerror]' value='{ONERR}' size='30' class='medium_form_field'>
+ <input type='hidden' name='oldattribs[onerror]' value='{ONERR}'> &nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>ON Timeout: </b>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ <input type='Text' name='attribs[ontimeout]' value='{ONTIME}' size='30' class='medium_form_field'>
+ <input type='hidden' name='oldattribs[ontimeout]' value='{ONTIME}'> &nbsp;
+ </td>
+ </tr>
+
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'><b>File URI: &nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;'>
+ <font size='+1'>tftp://{TFTP}/{TFTPFILE}</font><input type='Text' name='attribs[fileuri]' value='{FILEURI}' size='30' class='medium_form_field'>
+ <input type='hidden' name='oldattribs[fileuri]' value='{FILEURI}'>
+ &nbsp;
+ </td>
+ </tr>
+
+ </table></td>
+ </tr>
+ <tr>
+ <td>
+ <input type='hidden' name='nodedn' value='{NODEDN}'>
+ <input type='hidden' name='pxedn' value='{PXEDN}'>
+ <input type='hidden' name='oldpxecn' value='{PXECN}'>
+ <input type='hidden' name='mnr' value='{MNR}'>
+ <input type='hidden' name='sbmnr' value='{SBMNR}'>
+ <input type='hidden' name='mcnr' value='{MCNR}'>
+ <input type='Submit' name='apply' value='anwenden' class='small_loginform_button'>
+ </form></td>
+ </tr>
+
+</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/computers/pxe_globals.php b/ldap-site-mngmt/webinterface/computers/pxe_globals.php
new file mode 100644
index 00000000..7ab7892f
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/pxe_globals.php
@@ -0,0 +1,218 @@
+<?php
+
+include('../standard_header.inc.php');
+
+# 1. Seitentitel - wird in der Titelleiste des Browser angezeigt.
+$titel = "Computers Management";
+# 2. Nummer des zugehörigen Hauptmenus (Registerkarte) beginnend bei 0, siehe Dokumentation.doc.
+$mainnr = 3;
+$mnr = -1;
+$sbmnr = -1;
+$mcnr = -1;
+# 3. Dateiname und evtl. Pfad des Templates für die Webseite
+$webseite = "pxe_globals.dwt";
+
+include("../class.FastTemplate.php");
+
+include('computers_header.inc.php');
+
+###################################################################################
+
+$mnr = $_GET['mnr'];
+$sbmnr = $_GET['sbmnr'];
+$mcnr = $_GET['mcnr'];
+
+# Menuleisten erstellen
+createMainMenu($rollen, $mainnr);
+createComputersMenu($rollen, $mnr, $auDN, $sbmnr, $mcnr);
+
+###################################################################################
+
+$pxeDN = $_GET['dn'];
+# DN, CN des übergeordneten Nodes (Host oder Group)
+$pxednarray = ldap_explode_dn($pxeDN, 0);
+$nodeDN = implode(',',array_slice($pxednarray,2));
+#$nodeDN = $_GET['nodedn'];
+$nodednarray = ldap_explode_dn($nodeDN, 1);
+
+$attributes = array("dn","cn","rbservicedn","filename","timerange","allowoptions","console","default",
+ "display","font","implicit","kbdmap","menumasterpasswd","menutitle",
+ "noescape","onerror","ontimeout","prompt","say","serial","timeout","ldapuri","fileuri");
+$pxe = get_node_data($pxeDN,$attributes);
+
+# RBS Daten
+$rbsDN = $pxe['rbservicedn'];
+$rbsdata = get_node_data($rbsDN,array("cn","nfsserverip","exportpath","tftpserverip","tftppath","tftpclientconfpath"));
+
+# Timerange Komponenten
+$template->define_dynamic("TRanges", "Webseite");
+if (count($pxe['timerange']) > 1){
+ foreach($pxe['timerange'] as $tr){
+ $exptime = explode('_',$tr);
+ $template->assign(array("PXEDAY" => $exptime[0],
+ "PXEBEG" => $exptime[1],
+ "PXEEND" => $exptime[2]));
+ $template->parse("TRANGES_LIST", ".TRanges");
+ }
+}else{
+ $exptime = explode('_',$pxe['timerange']);
+ $template->assign(array("PXEDAY" => $exptime[0],
+ "PXEBEG" => $exptime[1],
+ "PXEEND" => $exptime[2]));
+ $template->parse("TRANGES_LIST", ".TRanges");
+}
+
+# Filenames
+$template->define_dynamic("Filenames", "Webseite");
+if (count($pxe['filename']) > 1){
+ foreach($pxe['filename'] as $fi){
+ $template->assign(array("FILE" => $fi));
+ $template->parse("FILENAMES_LIST", ".Filenames");
+ }
+}else{
+ $exptime = explode('_',$pxe['filename']);
+ $template->assign(array("FILE" => $pxe['filename']));
+ $template->parse("FILENAMES_LIST", ".Filenames");
+}
+
+$expcn = explode('_',$pxe['cn']);
+$name = array_slice($expcn,1);
+$pxecn = implode('_',$name);
+
+# Bootmenü Einträge
+$menuentries = get_menuentries($pxeDN,array("dn","menuposition","label","menulabel","menudefault","menupasswd","menuhide"));
+# print_r($menuentries); echo "<br>";
+$maxpos = count($menuentries)+1;
+
+# Globale Parameter
+$template->assign(array("PXEDN" => $pxeDN,
+ "PXECN" => $pxecn,
+ "TIMERANGE" => $pxe['timerange'],
+ "TFTP" => $rbsdata['tftpserverip'],
+ "TFTPFILE" => $rbsdata['tftpclientconfpath'],
+ #"LDAPURI" => $pxe['ldapuri'],
+ "FILEURI" => $pxe['fileuri'],
+ "ALLOW" => $pxe['allowoptions'],
+ "CONSOLE" => $pxe['console'],
+ "DEFAULT" => $pxe['default'],
+ "DISPLAY" => $pxe['display'],
+ "FONT" => $pxe['font'],
+ "IMPLICIT" => $pxe['implicit'],
+ "KBDMAP" => $pxe['kbdmap'],
+ "MENMPW" => $pxe['menumasterpasswd'],
+ "MENTIT" => $pxe['menutitle'],
+ "NOESC" => $pxe['noescape'],
+ "ONERR" => $pxe['onerror'],
+ "ONTIME" => $pxe['ontimeout'],
+ "PROMPT" => $pxe['prompt'],
+ "SAY" => $pxe['say'],
+ "SERIAL" => $pxe['serial'],
+ "TIMEOUT" => $pxe['timeout'],
+ "NODEDN" => $nodeDN,
+ "NODE" => $nodednarray[0],
+ "DEFDN" => "cn=rbs,".$auDN,
+ "PXELINK" => "<a href='pxe.php?dn=".$pxeDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "BMLINK" => "<a href='pxe_bootmenue.php?dn=".$pxeDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "MNR" => $mnr,
+ "SBMNR" => $sbmnr,
+ "MCNR" => $mcnr));
+
+
+# Für Submenü Einträge
+$template->assign(array("SUBRBSDN" => "",
+ "SUBRBSCN" => "",
+ "SUBRBSAU" => ""));
+if (count($subrbs) != 0){
+$template->define_dynamic("Subrbs", "Webseite");
+ foreach ($subrbs as $item){
+ $rbsdnexp = ldap_explode_dn($item,1);
+ $subrbscn = $rbsdnexp[0];
+ $subrbsau = $rbsdnexp[2];
+ #$subrbsexp = explode(',',$item['dn']);
+ #$subrbsau = explode('=',$subrbsexp[2]);
+ $template->assign(array("SUBRBSDN" => $item,
+ "SUBRBSCN" => $subrbscn,
+ "SUBRBSAU" => "[ ".$subrbsau." ]"));
+ $template->parse("SUBRBS_LIST", ".Subrbs");
+ }
+}
+
+################################################
+# Bootmenü Einträge
+
+$template->define_dynamic("Bootmenu", "Webseite");
+$template->assign(array("MENDN" => "",
+ "MENULABEL" => "",
+ "ANZEIGE" => "Noch kein Bootmen&uuml; Eintrag angelegt",
+ "MEDEF" => "",
+ "MEPWD" => "",
+ "MEHIDE" => "",
+ "BGCDEF" => "",
+ "POSITION" => ""));
+foreach ($menuentries as $me){
+ $anzeige = "";
+ if ($me['label'] != "" && $me['menulabel'] == ""){$anzeige .= $me['label'];}
+ if ($me['menulabel'] != ""){$anzeige .= $me['menulabel'];}
+ if ($me['menudefault'] == 1){$medef = "<b>D</b>"; $bgcdef = "background-color:#EEDD82;";}
+ if ($me['menupasswd'] != ""){$mepwd = "<b>P</b>";}
+ if ($me['menuhide'] == 1){$mehide = "<b>H</b>"; $bgcdef = "background-color:#A0A0A0;";}
+ $template->assign(array("MENDN" => $me['dn'],
+ "ANZEIGE" => "<a href='menuentry.php?dn=".$me['dn']."&mnr=".$mnr."&sbmnr=".$sbmnr."&mcnr=".$mcnr."' class='headerlink'>".$anzeige."</a>",
+ "ANZEIGENAME" => $anzeige,
+ "POSITION" => $me['menuposition'],
+ "MEDEF" => $medef,
+ "MEPWD" => $mepwd,
+ "MEHIDE" => $mehide,
+ "BGCDEF" => $bgcdef,
+ "AUDN" => $auDN));
+ $template->parse("BOOTMENU_LIST", ".Bootmenu");
+ $medef = "";
+ $bgcdef = "";
+}
+
+
+################################################
+# PXE kopieren
+
+$hostorgroup = $exp[0];
+$hgexp = explode('=',$exp[0]);
+
+
+$hosts_array = get_hosts($auDN,array("dn","hostname"));
+$groups_array = get_groups($auDN,array("dn","cn"));
+
+$template->define_dynamic("Hosts", "Webseite");
+foreach ($hosts_array as $item){
+ $template->assign(array("HDN" => $item['dn'],
+ "HN" => $item['hostname']));
+ $template->parse("HOSTS_LIST", ".Hosts");
+}
+$template->define_dynamic("Groups", "Webseite");
+foreach ($groups_array as $item){
+ $template->assign(array("GDN" => $item['dn'],
+ "GN" => $item['cn']));
+ $template->parse("GROUPS_LIST", ".Groups");
+}
+
+$dnexp = ldap_explode_dn($pxeDN, 1);
+if ($dnexp[2] == "computers"){
+ $nodetyp = "rbshost";
+}
+if ($dnexp[2] == "groups"){
+ $nodetyp = "group";
+}
+# falls TR vorhanden dann soll sie gelöscht werden (flag deltr setzen)
+if (count($pxe['timerange']) != 0){
+ $template->assign(array("DELTR" => "1",
+ "NODETYP" => $nodetyp));
+}
+else{
+ $template->assign(array("DELTR" => "0",
+ "NODETYP" => $nodetyp));
+}
+
+###################################################################################
+
+include("computers_footer.inc.php");
+
+?>
diff --git a/ldap-site-mngmt/webinterface/computers/pxe_globals_change.php b/ldap-site-mngmt/webinterface/computers/pxe_globals_change.php
new file mode 100644
index 00000000..06f388bb
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/pxe_globals_change.php
@@ -0,0 +1,126 @@
+<?php
+include('../standard_header.inc.php');
+
+$pxeDN = $_POST['pxedn'];
+$oldpxecn = "PXE_".$_POST['oldpxecn'];
+$pxecn = "PXE_".$_POST['pxecn'];
+
+$nodeDN = $_POST['nodedn'];
+$mnr = $_POST['mnr'];
+$sbmnr = $_POST['sbmnr'];
+$mcnr = $_POST['mcnr'];
+
+# 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>";
+
+
+$seconds = 2;
+$url = "pxe_globals.php?dn=".$pxeDN."&mnr=".$mnr."&sbmnr=".$sbmnr."&mcnr=".$mcnr;
+
+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>";
+
+
+
+
+
+##################################################################
+# 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];
+ }
+}
+
+#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,$pxeDN,$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,$pxeDN,$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,$pxeDN,$entrydel)){
+ $mesg = "Attribute ".$delatts." erfolgreich geloescht<br><br>";
+ }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/computers/pxe_wochenplan.php b/ldap-site-mngmt/webinterface/computers/pxe_wochenplan.php
new file mode 100644
index 00000000..2e73db85
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/pxe_wochenplan.php
@@ -0,0 +1,262 @@
+<?php
+
+#####################################
+# Wochenübersicht
+
+$template->assign(array("A0" => "","B0" => "","C0" => "","D0" => "","E0" => "","F0" => "","G0" => "",
+ "A1" => "","B1" => "","C1" => "","D1" => "","E1" => "","F1" => "","G1" => "",
+ "A2" => "","B2" => "","C2" => "","D2" => "","E2" => "","F2" => "","G2" => "",
+ "A3" => "","B3" => "","C3" => "","D3" => "","E3" => "","F3" => "","G3" => "",
+ "A4" => "","B4" => "","C4" => "","D4" => "","E4" => "","F4" => "","G4" => "",
+ "A5" => "","B5" => "","C5" => "","D5" => "","E5" => "","F5" => "","G5" => "",
+ "A6" => "","B6" => "","C6" => "","D6" => "","E6" => "","F6" => "","G6" => "",
+ "A7" => "","B7" => "","C7" => "","D7" => "","E7" => "","F7" => "","G7" => "",
+ "A8" => "","B8" => "","C8" => "","D8" => "","E8" => "","F8" => "","G8" => "",
+ "A9" => "","B9" => "","C9" => "","D9" => "","E9" => "","F9" => "","G9" => "",
+ "A10" => "","B10" => "","C10" => "","D10" => "","E10" => "","F10" => "","G10" => "",
+ "A11" => "","B11" => "","C11" => "","D11" => "","E11" => "","F11" => "","G11" => "",
+ "A12" => "","B12" => "","C12" => "","D12" => "","E12" => "","F12" => "","G12" => "",
+ "A13" => "","B13" => "","C13" => "","D13" => "","E13" => "","F13" => "","G13" => "",
+ "A14" => "","B14" => "","C14" => "","D14" => "","E14" => "","F14" => "","G14" => "",
+ "A15" => "","B15" => "","C15" => "","D15" => "","E15" => "","F15" => "","G15" => "",
+ "A16" => "","B16" => "","C16" => "","D16" => "","E16" => "","F16" => "","G16" => "",
+ "A17" => "","B17" => "","C17" => "","D17" => "","E17" => "","F17" => "","G17" => "",
+ "A18" => "","B18" => "","C18" => "","D18" => "","E18" => "","F18" => "","G18" => "",
+ "A19" => "","B19" => "","C19" => "","D19" => "","E19" => "","F19" => "","G19" => "",
+ "A20" => "","B20" => "","C20" => "","D20" => "","E20" => "","F20" => "","G20" => "",
+ "A21" => "","B21" => "","C21" => "","D21" => "","E21" => "","F21" => "","G21" => "",
+ "A22" => "","B22" => "","C22" => "","D22" => "","E22" => "","F22" => "","G22" => "",
+ "A23" => "","B23" => "","C23" => "","D23" => "","E23" => "","F23" => "","G23" => ""));
+
+#print_r($timeranges); echo "<br>";
+
+############################################################################
+# Default-Dienst PXE Timeranges
+# vom spezifischsten zum unspezifischsten :
+# FR_0_7 -> FR_X_X -> X_0_7 -> X_X_X
+$daytime = array();
+$timex = array();
+$dayx = array();
+$allx = array();
+$legend = array();
+if(count($wopldeftranges) != 0){
+foreach ($wopldeftranges as $tr){
+ if (count($tr[0]) > 1){
+ foreach ($tr as $item){
+ if ($item[0] != "X" && $item[1] != "X" && $item[2] != "X" && ($item[0] == "MO" || $item[0] == "DI" || $item[0] == "MI" || $item[0] == "DO" || $item[0] == "FR" || $item[0] == "SA" || $item[0] == "SO")){
+ $daytime[] = $item;
+ }
+ if ($item[0] != "X" && $item[1] == "X" && $item[2] == "X"){
+ $timex[] = $item;
+ }
+ if ($item[0] == "X" && $item[1] != "X" && $item[2] != "X"){
+ $dayx[] = $item;
+ }
+ if ($item[0] == "X" && $item[1] == "X" && $item[2] == "X"){
+ $allx[] = $item;
+ }
+ }
+ }else{
+ if ($tr[0] != "X" && $tr[1] != "X" && $tr[2] != "X" && ($tr[0] == "MO" || $tr[0] == "DI" || $tr[0] == "MI" || $tr[0] == "DO" || $tr[0] == "FR" || $tr[0] == "SA" || $tr[0] == "SO")){
+ $daytime[] = $tr;
+ }
+ if ($tr[0] != "X" && $tr[1] == "X" && $tr[2] == "X"){
+ $timex[] = $tr;
+ }
+ if ($tr[0] == "X" && $tr[1] != "X" && $tr[2] != "X"){
+ $dayx[] = $tr;
+ }
+ if ($tr[0] == "X" && $tr[1] == "X" && $tr[2] == "X"){
+ $allx[] = $tr;
+ }
+ }
+}
+
+#print_r($daytime); echo "<br>";
+#print_r($timex); echo "<br>";
+#print_r($dayx); echo "<br>";
+#print_r($allx); echo "<br>";
+
+$daycode = array("MO" => "A", "DI" => "B", "MI" => "C", "DO" => "D", "FR" => "E", "SA" => "F", "SO" => "G");
+$allxcolors = array("#BEBEBE","A0A0A0","#696969","#EEDFCC","#D8BFD8","#505050");
+$dayxcolors = array("#483D8B","#7B68EE","#191970","#8470FF","#708090","#6A5ACD");
+$timexcolors = array("#CDC673","#A2CD5A","#BDB76B","#8B864E","#6B8E23","#CDBE70");
+$daytimecolors = array("880000","#CD6839","#CC3300","#CC6600","#993300","#8B4C39");
+
+
+if (count($allx) != 0){
+ $c = 0;
+ foreach ($allx as $range){
+ foreach ($daycode as $dc){
+ for ($i = 0; $i <= 23; $i++){
+ $template->assign(array($dc.$i => "background-color:".$allxcolors[$c].";"));
+ }
+ }
+ $legend[] = array($range ,$allxcolors[$c]);
+ $c++;
+ }
+}
+
+if (count($dayx) != 0){
+ $c = 0;
+ foreach ($dayx as $range){
+ foreach ($daycode as $dc){
+ for ($i = $range[1]; $i<= $range[2]; $i++){
+ $template->assign(array($dc.$i => "background-color:".$dayxcolors[$c].";"));
+ }
+ }
+ $legend[] = array($range ,$dayxcolors[$c]);
+ $c++;
+ }
+}
+
+if (count($timex) != 0){
+ $c = 0;
+ foreach ($timex as $range){
+ $dc = $daycode[$range[0]];
+ for ($i = 0; $i<= 23; $i++){
+ $template->assign(array($dc.$i => "background-color:".$timexcolors[$c].";"));
+ }
+ $legend[] = array($range ,$timexcolors[$c]);
+ $c++;
+ }
+}
+
+if (count($daytime) != 0){
+ $c = 0;
+ foreach ($daytime as $range){
+ $dc = $daycode[$range[0]];
+ for ($i = $range[1]; $i<= $range[2]; $i++){
+ $template->assign(array($dc.$i => "background-color:".$daytimecolors[$c].";"));
+ }
+ $legend[] = array($range ,$daytimecolors[$c]);
+ $c++;
+ }
+}
+
+}
+
+############################################################################
+# Rechner-spezifische PXE Timeranges
+# vom spezifischsten zum unspezifischsten :
+# FR_0_7 -> FR_X_X -> X_0_7 -> X_X_X
+$daytime = array();
+$timex = array();
+$dayx = array();
+$allx = array();
+
+if(count($wopltranges) != 0){
+foreach ($wopltranges as $tr){
+ if (count($tr[0]) > 1){
+ foreach ($tr as $item){
+ if ($item[0] != "X" && $item[1] != "X" && $item[2] != "X" && ($item[0] == "MO" || $item[0] == "DI" || $item[0] == "MI" || $item[0] == "DO" || $item[0] == "FR" || $item[0] == "SA" || $item[0] == "SO")){
+ $daytime[] = $item;
+ }
+ if ($item[0] != "X" && $item[1] == "X" && $item[2] == "X"){
+ $timex[] = $item;
+ }
+ if ($item[0] == "X" && $item[1] != "X" && $item[2] != "X"){
+ $dayx[] = $item;
+ }
+ if ($item[0] == "X" && $item[1] == "X" && $item[2] == "X"){
+ $allx[] = $item;
+ }
+ }
+ }else{
+ if ($tr[0] != "X" && $tr[1] != "X" && $tr[2] != "X" && ($tr[0] == "MO" || $tr[0] == "DI" || $tr[0] == "MI" || $tr[0] == "DO" || $tr[0] == "FR" || $tr[0] == "SA" || $tr[0] == "SO")){
+ $daytime[] = $tr;
+ }
+ if ($tr[0] != "X" && $tr[1] == "X" && $tr[2] == "X"){
+ $timex[] = $tr;
+ }
+ if ($tr[0] == "X" && $tr[1] != "X" && $tr[2] != "X"){
+ $dayx[] = $tr;
+ }
+ if ($tr[0] == "X" && $tr[1] == "X" && $tr[2] == "X"){
+ $allx[] = $tr;
+ }
+ }
+}
+
+#print_r($daytime); echo "<br>";
+#print_r($timex); echo "<br>";
+#print_r($dayx); echo "<br>";
+#print_r($allx); echo "<br>";
+
+$daycode = array("MO" => "A", "DI" => "B", "MI" => "C", "DO" => "D", "FR" => "E", "SA" => "F", "SO" => "G");
+$allxcolors = array("#BEBEBE","A0A0A0","#696969","#EEDFCC","#D8BFD8","#505050");
+$dayxcolors = array("#483D8B","#7B68EE","#191970","#8470FF","#708090","#6A5ACD");
+$timexcolors = array("#CDC673","#A2CD5A","#BDB76B","#8B864E","#6B8E23","#CDBE70");
+$daytimecolors = array("880000","#CD6839","#CC3300","#CC6600","#993300","#8B4C39");
+
+
+if (count($allx) != 0){
+ $c = 0;
+ foreach ($allx as $range){
+ foreach ($daycode as $dc){
+ for ($i = 0; $i <= 23; $i++){
+ $template->assign(array($dc.$i => "background-color:".$allxcolors[$c].";"));
+ }
+ }
+ $legend[] = array($range ,$allxcolors[$c]);
+ $c++;
+ }
+}
+
+if (count($dayx) != 0){
+ $c = 0;
+ foreach ($dayx as $range){
+ foreach ($daycode as $dc){
+ for ($i = $range[1]; $i<= $range[2]; $i++){
+ $template->assign(array($dc.$i => "background-color:".$dayxcolors[$c].";"));
+ }
+ }
+ $legend[] = array($range ,$dayxcolors[$c]);
+ $c++;
+ }
+}
+
+if (count($timex) != 0){
+ $c = 0;
+ foreach ($timex as $range){
+ $dc = $daycode[$range[0]];
+ for ($i = 0; $i<= 23; $i++){
+ $template->assign(array($dc.$i => "background-color:".$timexcolors[$c].";"));
+ }
+ $legend[] = array($range ,$timexcolors[$c]);
+ $c++;
+ }
+}
+
+if (count($daytime) != 0){
+ $c = 0;
+ foreach ($daytime as $range){
+ $dc = $daycode[$range[0]];
+ for ($i = $range[1]; $i<= $range[2]; $i++){
+ $template->assign(array($dc.$i => "background-color:".$daytimecolors[$c].";"));
+ }
+ $legend[] = array($range ,$daytimecolors[$c]);
+ $c++;
+ }
+}
+
+}
+
+$template->assign(array("PXEDESC" => ""));
+#print_r($legend);
+if (count($legend) != 0){
+ $template->define_dynamic("Legende", "Webseite");
+ foreach ($legend as $item){
+ # Timerange Komponente
+ $color = $item[1];
+ $template->assign(array("TR1" => $item[0][0],
+ "TR2" => $item[0][1],
+ "TR3" => $item[0][2],
+ "PXEDESC" => $item[0][3],
+ "COLOR" => $color));
+ $template->parse("LEGENDE_LIST", ".Legende");
+ }
+}
+
+
+?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/computers/rbshost.dwt b/ldap-site-mngmt/webinterface/computers/rbshost.dwt
new file mode 100644
index 00000000..6fd774cd
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/rbshost.dwt
@@ -0,0 +1,382 @@
+<table border='0' cellpadding='5' cellspacing='0' width='100%'>
+ <tr>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 1;'><h4>{HOSTLINK} Allgemein </a></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{DHCPLINK} DHCP </a></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4><code class='font_object'> RBS/PXE </code></h4></td>
+ <td align='center' width='15%' style='border-color: black; border-style: solid; border-width: 0 1 0 0;'><h4>{HWLINK} Hardware </a></h4></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td height='20'></td>
+ </tr>
+
+ <tr>
+ <td colspan='5'><h3>RBS/PXE Setup - Rechner &nbsp;<code class='font_object'> {HOSTNAME} </code> </h3></td>
+ </tr>
+
+ <tr><td colspan='5'>
+ <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
+
+ <form action='rbshost_change.php' method='post'>
+
+ <tr>
+ <td width='40%' class='tab_h'><b>Remote Boot Dienst Einbindung (DHCP/TFTP)</b></td>
+ <td width='60%' class='tab_h'><b>&nbsp;</b></td>
+ </tr>
+
+
+
+ {RBS}
+
+
+ </table></td>
+ </tr>
+
+ <input type='hidden' name='olddhcp' value='{OLDDHCP}'>
+ <input type='hidden' name='oldfixadd' value='{OLDFIXADD}'>
+ <input type='hidden' name='oldrbs' value='{OLDRBS}'>
+ <input type='hidden' name='hostip' value='{IPADDRESS}'>
+ <input type='hidden' name='hostdn' value='{HOSTDN}'>
+ <input type='hidden' name='sbmnr' value='{SBMNR}'>
+
+ <tr>
+ <td colspan='4'><input type='Submit' name='apply' value='anwenden' class='small_loginform_button'>
+ </form></td>
+ </tr>
+
+
+ <tr>
+ <td height='20'></td>
+ </tr>
+
+ <tr><td colspan='5'>
+ <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
+
+ <tr>
+ <td colspan='3' width='50%' class='tab_h'><b>Rechner-spezifische PXE Konfigurationen (Bootmen&uuml;s)</b></td>
+ </tr>
+
+ <!-- BEGIN DYNAMIC BLOCK: Rechnerpxes -->
+ <tr valign='top'>
+ <td width='20%' class='tab_d'>{PXECN} &nbsp;</td>
+ <td width='30%' class='tab_d'>{PXETR} &nbsp;</td>
+ <td class='tab_d'>{PXEDESC} &nbsp;</td>
+ </tr>
+ <!-- END DYNAMIC BLOCK: Rechnerpxes -->
+
+
+ </table></td>
+ </tr>
+
+ <tr>
+ <td height='20'></td>
+ </tr>
+
+ <tr><td colspan='5'>
+ <table cellpadding='7' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
+
+ <tr>
+ <td colspan='3' width='50%' class='tab_h'><b>Default PXE Konfigurationen des Remote Boot Dienstes</b></td>
+ </tr>
+
+ <!-- BEGIN DYNAMIC BLOCK: Defpxes -->
+ <tr valign='top'>
+ <td width='20%' class='tab_d'>{DEFPXECN} &nbsp;</td>
+ <td width='30%' class='tab_d'>{DEFPXETR} &nbsp;</td>
+ <td class='tab_d'>{DEFPXEDESC} &nbsp;</td>
+ </tr>
+ <!-- END DYNAMIC BLOCK: Defpxes -->
+
+
+ </table></td>
+ </tr>
+
+
+ <tr>
+ <td height='50'></td>
+ </tr>
+
+ <tr>
+ <td colspan='4'><h4>Wochen &Uuml;bersicht PXE Configs f&uuml;r Rechner &nbsp;<code class='font_object'>{HOSTNAME}</code>&nbsp; :</h4></td>
+ </tr>
+ <tr><td colspan='4'>
+ <table cellpadding='0' cellspacing='0' border='1' align='left' width='90%' style='border-width: 0 0 0 0;'>
+ <tr align='center'>
+ <td width='9%' style='border-color: black; border-style: solid; border-width: 2 0 2 2;'><b>Uhrzeit</b></td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Montag</b></td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Dienstag</b></td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Mittwoch</b></td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Donnerstag</b></td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Freitag</b></td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 2 0 2 1;'><b>Samstag</b></td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 2 2 2 1;'><b>Sonntag</b></td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td width='9%' style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>0</td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A0}'>&nbsp;</td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B0}'>&nbsp;</td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C0}'>&nbsp;</td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D0}'>&nbsp;</td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E0}'>&nbsp;</td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F0}'>&nbsp;</td>
+ <td width='13%' style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G0}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A1}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B1}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C1}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D1}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E1}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F1}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G1}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>2</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A2}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B2}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C2}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D2}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E2}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F2}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G2}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A3}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B3}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C3}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D3}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E3}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F3}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G3}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>4</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A4}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B4}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C4}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D4}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E4}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F4}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G4}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A5}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B5}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C5}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D5}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E5}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F5}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G5}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>6</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A6}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B6}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C6}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D6}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E6}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F6}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G6}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A7}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B7}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C7}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D7}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E7}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F7}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G7}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>8</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A8}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B8}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C8}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D8}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E8}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F8}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G8}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A9}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B9}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C9}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D9}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E9}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F9}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G9}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>10</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A10}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B10}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C10}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D10}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E10}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F10}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G10}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A11}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B11}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C11}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D11}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E11}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F11}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G11}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>12</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A12}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B12}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C12}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D12}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E12}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F12}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G12}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A13}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B13}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C13}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D13}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E13}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F13}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G13}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>14</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A14}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B14}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C14}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D14}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E14}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F14}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G14}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A15}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B15}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C15}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D15}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E15}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F15}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G15}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>16</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A16}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B16}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C16}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D16}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E16}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F16}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G16}'>&nbsp;&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A17}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B17}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C17}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D17}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E17}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F17}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G17}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>18</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A18}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B18}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C18}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D18}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E18}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F18}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G18}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A19}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B19}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C19}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D19}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E19}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F19}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G19}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>20</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A20}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B20}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C20}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D20}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E20}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F20}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G20}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{A21}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{B21}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{C21}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{D21}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{E21}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 1;{F21}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 0 1;{G21}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 2;'>22</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{A22}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{B22}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{C22}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{D22}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{E22}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 0 0 1;{F22}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 1 2 0 1;{G22}'>&nbsp;</td>
+ </tr>
+ <tr heigth='2' align='center'>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 2 2;'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{A23}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{B23}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{C23}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{D23}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{E23}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 2 1;{F23}'>&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 2 2 1;{G23}'>&nbsp;</td>
+ </tr>
+
+ </table></td>
+
+ <td colspan='2'>
+ <table cellpadding='3' cellspacing='3' border='1' align='left' width='50%' style='border-width: 0 0 0 0;'>
+ <tr>
+ <td width='65%' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>PXE Config</b></td>
+ <td width='5%' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>&nbsp;</td>
+ <td width='30%' style='border-color: black; border-style: solid; border-width: 0 0 0 0;'><b>Farbe</b></td>
+ </tr>
+
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>No Config &nbsp;</td>
+ <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: 1 1 1 1;'>&nbsp;</td>
+ </tr>
+
+ <!-- BEGIN DYNAMIC BLOCK: Legende -->
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 0 0;'>{PXEDESC} &nbsp;</td>
+ <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: 1 1 1 1;background-color:{COLOR};'>&nbsp;</td>
+ </tr>
+ <!-- END DYNAMIC BLOCK: Legende -->
+
+ </table></td>
+ </tr>
+
+</table> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/computers/rbshost.php b/ldap-site-mngmt/webinterface/computers/rbshost.php
new file mode 100644
index 00000000..83c2056d
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/rbshost.php
@@ -0,0 +1,248 @@
+<?php
+
+include('../standard_header.inc.php');
+
+# 1. Seitentitel - wird in der Titelleiste des Browser angezeigt.
+$titel = "Computers Management";
+# 2. Nummer des zugehörigen Hauptmenus (Registerkarte) beginnend bei 0, siehe Dokumentation.doc.
+$mainnr = 3;
+$mnr = 1;
+$sbmnr = -1;
+$mcnr = -1;
+# 3. Dateiname und evtl. Pfad des Templates für die Webseite
+$webseite = "rbshost.dwt";
+
+include("../class.FastTemplate.php");
+
+include('computers_header.inc.php');
+
+###################################################################################
+
+$sbmnr = $_GET['sbmnr'];
+
+# Menuleisten erstellen
+createMainMenu($rollen, $mainnr);
+createComputersMenu($rollen, $mnr, $auDN, $sbmnr, $mcnr);
+
+###################################################################################
+
+$hostDN = $_GET['dn'];
+
+# Rechner Daten
+$attributes = array("hostname","domainname","ipaddress","hwaddress","description","hlprbservice",
+ "dhcphlpcont","dhcpoptfixed-address","dhcpopthardware","dhcpoptfilename",
+ "dhcpoptnext-server","hw-mouse","hw-graphic","hw-monitor");
+$host = get_node_data($hostDN,$attributes);
+$hostip = explode('_',$host['ipaddress']);
+# print_r($hostip); echo "<br><br>";
+$dhcphlpcont = $host['dhcphlpcont'];
+$objectDN = $dhcphlpcont;
+$rbsDN = $host['hlprbservice'];
+
+$rbs_dhcpopt = "";
+$host_dhcpopt = "";
+$dhcp_selectbox = "";
+
+
+# Falls nicht DHCP Dienst dann kein RBS Setup
+if ($dhcphlpcont == ""){
+
+ $rbs = "<td class='tab_d_ohne' colspan='2'>
+ Sie m&uuml;ssen den Rechner zuerst in einem DHCP Dienst anmelden, bevor Sie ihn
+ einem Remote Boot Dienst zuordnen k&ouml;nnen <br>(DHCP Optionen!!).<br></td>
+ </tr>
+ <input type='hidden' name='rbs' value='".$rbsDN."'>";
+}else{
+
+ ###########################################################
+ # RBS Setup # Nur wenn angezeigt wenn Host in DHCP
+ $rbs_selectbox = "";
+ $rbs_dhcpopt = "";
+ $altrbs = alternative_rbservices($rbsDN);
+
+
+ $rbs_selectbox .= "<td class='tab_d'>
+ <select name='rbs' size='4' class='medium_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_selectbox .= "<option value=''>Kein RBS</option>
+ </select></td>";
+
+ # RBS Daten
+ if ($rbsDN == ""){
+
+ $rbs = "<td class='tab_d_ohne'><b>Remote Boot Dienst: </b>&nbsp;</td>
+ <td class='tab_d_ohne'>
+ Rechner ist in keinem Remote Boot Dienst angemeldet<br></td></tr>
+ <tr valign='top'><td class='tab_d'>
+ RBS ausw&auml;hlen: <br></td>".$rbs_selectbox;
+ }else{
+
+ $rbs = "";
+ $rbsdata = get_node_data($rbsDN,array("tftpserverip"));
+ #print_r($rbsdata); echo "<br>";
+ $exp2 = explode(',',$host['hlprbservice']);
+ $exprbs = explode('=',$exp2[0]); $rbserv = $exprbs[1];
+ $exprbsau = explode('=',$exp2[2]); $rbsau = $exprbsau[1];
+ $rbs .= "<tr valign='top'>
+ <td class='tab_d_ohne'><b>Remote Boot Dienst: </b>&nbsp;</td>
+ <td class='tab_d_ohne'>
+ Remote Boot Service <b>".$rbserv."</b> / AU <b>".$rbsau."</b></td>
+ </tr>
+ <tr>
+ <td class='tab_d_ohne'>DHCP Option <b>next-server</b> &nbsp;(TFTP Boot Server IP):</td>
+ <td class='tab_d_ohne'><b>".$host['dhcpoptnext-server']."</b>&nbsp;</td>
+ </tr>
+ <tr>
+ <td class='tab_d'>DHCP Option <b>filename</b> &nbsp;(initiale remote Bootdatei):</td>
+ <td class='tab_d'><b>".$host['dhcpoptfilename']."</b>&nbsp;</td>
+ </tr>
+ <tr valign='top'><td class='tab_d'>
+ RBS Einbindung &auml;ndern: <br></td>".$rbs_selectbox."
+ </tr>";
+
+ $rbs_dhcpopt = "
+ ";
+ }
+
+}
+
+$template->assign(array("HOSTDN" => $hostDN,
+ "HOSTNAME" => $host['hostname'],
+ "DOMAINNAME" => $host['domainname'],
+ "HWADDRESS" => $host['hwaddress'],
+ "IPADDRESS" => $hostip[0],
+ "DESCRIPTION" => $host['description'],
+ "OLDDHCP" => $objectDN,
+ "OLDFIXADD" => $host['dhcpoptfixed-address'],
+ "OLDRBS" => $rbsDN,
+ "RBS" => $rbs,
+ "HOSTLINK" => "<a href='host.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "DHCPLINK" => "<a href='dhcphost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "HWLINK" => "<a href='hwhost.php?dn=".$hostDN."&sbmnr=".$sbmnr."' class='headerlink'>",
+ "AUDN" => $auDN,
+ "SBMNR" => $sbmnr));
+
+
+
+
+# Rechnerspezifische PXEs
+$hostpxeconfigs = get_pxeconfigs($hostDN, array("dn","cn","description","timerange"));
+
+$template->assign(array("PXEDN" => "",
+ "PXECN" => "Keine PXE Config angelegt",
+ "PXEDESC" => "",
+ "PXETR" => "",));
+$template->define_dynamic("Rechnerpxes", "Webseite");
+
+if (count($hostpxeconfigs) != 0){
+ for ($i=0;$i<count($hostpxeconfigs);$i++){
+ $pxelink = "<a href='pxe.php?dn=".$hostpxeconfigs[$i]['dn']."&mnr=1&sbmnr=".$sbmnr."&mcnr=".$i."&nodedn=".$hostDN."' class='headerlink'>".$hostpxeconfigs[$i]['cn']."</a>";
+
+ $trange = "";
+ if (count($hostpxeconfigs[$i]['timerange']) > 1 ){
+ foreach ($hostpxeconfigs[$i]['timerange'] as $tr){
+ $exptime = array_merge(explode('_',$tr), array($hostpxeconfigs[$i]['cn']));
+ $timeranges[$i][] = $exptime; # Für grafische Wo-Ansicht
+ if ($exptime[0] == "X"){$exptime[0]="t&auml;glich";}
+ # if ($exptime[1] == "X" && $exptime[2] == "X"){$exptime[1] = ""; $exptime[2]= "";}
+ $trange .= $exptime[0].", von ".$exptime[1].":00 bis ".$exptime[2].":59 <br> ";
+ }
+ }else{
+ $exptime = array_merge(explode('_',$hostpxeconfigs[$i]['timerange']), array($hostpxeconfigs[$i]['cn']));
+ $timeranges[$i] = $exptime; # Für grafische Wo-Ansicht
+ if ($exptime[0] == "X"){$exptime[0]="t&auml;glich";}
+ # if ($exptime[1] == "X" && $exptime[2] == "X"){$exptime[1] = ""; $exptime[2]= "";}
+ $trange .= $exptime[0].", von ".$exptime[1].":00 bis ".$exptime[2].":59";
+ }
+ $template->assign(array("PXEDN" => $hostpxeconfigs[$i]['dn'],
+ "PXECN" => $pxelink,
+ "PXEDESC" => $hostpxeconfigs['description'],
+ "PXETR" => $trange, ));
+ $template->parse("RECHNERPXES_LIST", ".Rechnerpxes");
+
+ }
+}
+
+# Default PXEs des RBS
+$defaultpxeconfigs = get_pxeconfigs($rbsDN,array("dn","cn","description","timerange","filename"));
+
+$template->assign(array("DEFPXEDN" => "",
+ "DEFPXECN" => "Keine PXE Config angelegt",
+ "DEFPXEDESC" => "",
+ "DEFPXETR" => "",));
+$template->define_dynamic("Defpxes", "Webseite");
+
+if (count($defaultpxeconfigs) != 0){
+ for ($i=0;$i<count($defaultpxeconfigs);$i++){
+ if ($defaultpxeconfigs[$i]['filename'] == "default"){
+ $defpxelink = "<a href='showpxe.php?dn=".$defaultpxeconfigs[$i]['dn']."&mnr=1&sbmnr=".$sbmnr."&mcnr=-1&hostdn=".$hostDN."' class='headerlink'>".$defaultpxeconfigs[$i]['cn']."</a>";
+
+ $deftrange = "";
+ if (count($defaultpxeconfigs[$i]['timerange']) > 1 ){
+ foreach ($defaultpxeconfigs[$i]['timerange'] as $tr){
+ $exptime = array_merge(explode('_',$tr), array($defaultpxeconfigs[$i]['cn']));
+ $timeranges[$i][] = $exptime; # Für grafische Wo-Ansicht
+ if ($exptime[0] == "X"){$exptime[0]="t&auml;glich";}
+ # if ($exptime[1] == "X" && $exptime[2] == "X"){$exptime[1] = ""; $exptime[2]= "";}
+ $deftrange .= $exptime[0].", von ".$exptime[1].":00 bis ".$exptime[2].":59 <br> ";
+ }
+ }else{
+ $exptime = array_merge(explode('_',$defaultpxeconfigs[$i]['timerange']), array($defaultpxeconfigs[$i]['cn']));
+ $timeranges[$i] = $exptime; # Für grafische Wo-Ansicht
+ if ($exptime[0] == "X"){$exptime[0]="t&auml;glich";}
+ # if ($exptime[1] == "X" && $exptime[2] == "X"){$exptime[1] = ""; $exptime[2]= "";}
+ $deftrange .= $exptime[0].", von ".$exptime[1].":00 bis ".$exptime[2].":59";
+ }
+
+ $template->assign(array("DEFPXEDN" => $defaultpxeconfigs[$i]['dn'],
+ "DEFPXECN" => $defpxelink,
+ "DEFPXEDESC" => $defaultpxeconfigs['description'],
+ "DEFPXETR" => $deftrange, ));
+ $template->parse("DEFPXES_LIST", ".Defpxes");
+ }
+ }
+}
+
+##########################################################
+# PXE Wochenübersicht
+
+# erst Defaults vom RBS Dienst
+for ($i=0; $i<count($defaultpxeconfigs); $i++){
+ # Timerange Komponenten
+ if (count($defaultpxeconfigs[$i]['timerange']) > 1 ){
+ foreach ($defaultpxeconfigs[$i]['timerange'] as $tr){
+ $exptime = array_merge(explode('_',$tr),array($defaultpxeconfigs[$i]['cn']));
+ $wopldeftranges[$i][] = $exptime; # Für grafische Wo-Ansicht
+ }
+ }else{
+ $exptime = array_merge(explode('_',$defaultpxeconfigs[$i]['timerange']), array($defaultpxeconfigs[$i]['cn']));
+ $wopldeftranges[$i] = $exptime; # Für grafische Wo-Ansicht
+ }
+}
+# Diese dann mit möglichen Rechnerspezifischen überschreiben
+for ($i=0; $i<count($hostpxeconfigs); $i++){
+ # Timerange Komponenten
+ if (count($hostpxeconfigs[$i]['timerange']) > 1 ){
+ foreach ($hostpxeconfigs[$i]['timerange'] as $tr){
+ $exptime = array_merge(explode('_',$tr),array($hostpxeconfigs[$i]['cn']));
+ $wopltranges[$i][] = $exptime; # Für grafische Wo-Ansicht
+ }
+ }else{
+ $exptime = array_merge(explode('_',$hostpxeconfigs[$i]['timerange']), array($hostpxeconfigs[$i]['cn']));
+ $wopltranges[$i] = $exptime; # Für grafische Wo-Ansicht
+ }
+}
+
+include("pxe_wochenplan.php");
+
+###################################################################################
+
+include("computers_footer.inc.php");
+
+?> \ No newline at end of file
diff --git a/ldap-site-mngmt/webinterface/computers/rbshost_change.php b/ldap-site-mngmt/webinterface/computers/rbshost_change.php
new file mode 100644
index 00000000..3a812931
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/rbshost_change.php
@@ -0,0 +1,95 @@
+<?php
+include('../standard_header.inc.php');
+
+$syntax = new Syntaxcheck;
+
+$hostip = $_POST['hostip'];
+
+$rbs = $_POST['rbs'];
+$oldrbs = $_POST['oldrbs'];
+
+$hostDN = $_POST['hostdn'];
+$sbmnr = $_POST['sbmnr'];
+
+$rbs = htmlentities($rbs);
+$oldrbs = htmlentities($oldrbs);
+
+
+/*echo "new dhcp:"; print_r($dhcp); echo "<br>";
+echo "old dhcp:"; print_r($olddhcp); echo "<br>";
+echo "new rbs:"; print_r($rbs); echo "<br>";
+echo "old rbs:"; print_r($oldrbs); echo "<br>";
+echo "Host DN:"; print_r($hostDN); echo "<br>";
+echo "submenuNR:"; print_r($sbmnr); echo "<br><br>";*/
+
+
+$seconds = 40;
+$url = 'rbshost.php?dn='.$hostDN.'&sbmnr='.$sbmnr;
+
+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>";
+
+
+##########################################
+# RBS
+
+if ($rbs != "none" && $rbs != $oldrbs){
+ if ($rbs != ""){
+ $exp = ldap_explode_dn($rbs, 1);
+ $rbscn = $exp[0];
+ $rbsau = $exp[2];
+
+ $dhcpdata = get_node_data($rbs,array("tftpserverip","initbootfile"));
+ $entryrbs ['hlprbservice'] = $rbs;
+ $entryrbs ['dhcpoptnext-server'] = $dhcpdata['tftpserverip'];
+ $entryrbs ['dhcpoptfilename'] = $dhcpdata['initbootfile'];
+ if ($oldrbs != ""){
+ echo "RBS replace "; print_r($oldrbs); echo " with "; print_r($entryrbs); echo "<br>";
+ if ($result = ldap_mod_replace($ds,$hostDN,$entryrbs)){
+ rbs_adjust_host($hostDN, $rbs);
+ $mesg = "Remote Boot Service erfolgreich zu <b>".$rbscn." [Abt.: ".$rbsau."]</b> ge&auml;ndert<br><br>";
+ }else{
+ $mesg = "Fehler beim &auml;ndern des Remote Boot Services zu <b>".$rbscn."</b>!<br><br>";
+ }
+ }else{
+ echo "RBS add "; print_r($entryrbs); echo "<br>";
+ if ($result = ldap_mod_add($ds,$hostDN,$entryrbs)){
+ rbs_adjust_host($hostDN, $rbs);
+ $mesg = "Remote Boot Service erfolgreich zu <b>".$rbscn." [Abt.: ".$rbsau."]</b> ge&auml;ndert<br><br>";
+ }else{
+ $mesg = "Fehler beim &auml;ndern des Remote Boot Services zu <b>".$rbscn."</b>!<br><br>";
+ }
+ }
+ }else{
+ $entryrbs ['hlprbservice'] = array();
+ $entryrbs ['dhcpoptnext-server'] = array();
+ $entryrbs ['dhcpoptfilename'] = array();
+ echo "RBS delete "; echo "<br>";
+ if ($result = ldap_mod_del($ds,$hostDN,$entryrbs)){
+ $mesg = "Rechner erfolgreich aus RBS gel&ouml;scht<br><br>";
+ }else{
+ $mesg = "Fehler beim l&ouml;schen aus RBS!<br><br>";
+ }
+ }
+}
+if ($rbs == "none"){
+ echo "RBS none <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/computers/showpxe.dwt b/ldap-site-mngmt/webinterface/computers/showpxe.dwt
new file mode 100644
index 00000000..d6f37f66
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/showpxe.dwt
@@ -0,0 +1,57 @@
+<table border='0' cellpadding='5' cellspacing='0' width='100%'>
+
+ <tr>
+ <td height='20'><h4><a href='rbshost.php?dn={HOSTDN}&mnr=1&sbmnr={SBMNR}&mcnr=-1' class='headerlink'><< Zur&uuml;ck zu Rechner &nbsp;{HOST}</a></h4></td>
+ </tr>
+ <tr>
+ <td height='20'>&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td colspan='2'><h3>Default PXE Config &nbsp;<code class='font_object'> {PXECN} </code> </h3></td>
+ </tr>
+ <tr>
+ <td height='10'></td>
+ </tr>
+
+ <tr>
+ <td colspan='3'>Diese PXE Config wird vom RBS Betreiber verwaltet (Sie haben keine Schreibrechte).</td>
+ </tr>
+ <tr>
+ <td>
+ <table cellpadding='7' cellspacing='0' border='0' align='left' width='80%' style='border-color: black; border-style: solid; border-width: 2 2 2 2;'>
+
+ <tr>
+ <td width='8%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>#</td>
+ <td width='12%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>Flags</td>
+ <td width='80%' style='border-color: black; border-style: solid; border-width: 0 0 3 0;'>Menu Label&nbsp;</td>
+ </tr>
+
+ <!-- BEGIN DYNAMIC BLOCK: Bootmenu -->
+
+ <tr>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'>{POSITION}&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'>{MEDEF} {MEPWD} {MEHIDE}&nbsp;</td>
+ <td style='border-color: black; border-style: solid; border-width: 0 0 1 0;{BGCDEF}'><font size='+1'>{ANZEIGE}&nbsp;</font></td>
+ </tr>
+ </form>
+ <!-- END DYNAMIC BLOCK: Bootmenu -->
+
+ </table></td>
+ </tr>
+ <tr>
+ <td><h4>Flags:</h4></font>
+ <ul>
+ <li><b>D</b> -> Default Men&uuml;eintrag</li>
+ <li><b>P</b> -> Passwort gesch&uuml;tzt</li>
+ <li><b>H</b> -> Hidden</li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td height='20'></td>
+ </tr>
+
+
+
+</table>
diff --git a/ldap-site-mngmt/webinterface/computers/showpxe.php b/ldap-site-mngmt/webinterface/computers/showpxe.php
new file mode 100644
index 00000000..8ed9b70d
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/computers/showpxe.php
@@ -0,0 +1,95 @@
+<?php
+
+include('../standard_header.inc.php');
+
+# 1. Seitentitel - wird in der Titelleiste des Browser angezeigt.
+$titel = "Computers Management";
+# 2. Nummer des zugehörigen Hauptmenus (Registerkarte) beginnend bei 0, siehe Dokumentation.doc.
+$mainnr = 3;
+$mnr = -1;
+$sbmnr = -1;
+$mcnr = -1;
+# 3. Dateiname und evtl. Pfad des Templates für die Webseite
+$webseite = "showpxe.dwt";
+
+include("../class.FastTemplate.php");
+
+include('computers_header.inc.php');
+
+###################################################################################
+
+$mnr = $_GET['mnr'];
+$sbmnr = $_GET['sbmnr'];
+$mcnr = $_GET['mcnr'];
+
+
+# Menuleisten erstellen
+createMainMenu($rollen, $mainnr);
+createComputersMenu($rollen, $mnr, $auDN, $sbmnr, $mcnr);
+
+###################################################################################
+
+$pxeDN = $_GET['dn'];
+
+$hostdn = $_GET['hostdn'];
+$hostdnarray = ldap_explode_dn($hostdn, 1);
+
+$attributes = array("dn","cn","rbservicedn","filename","timerange","kbdmap","menumasterpasswd","menutitle");
+$pxe = get_node_data($pxeDN,$attributes);
+#print_r($pxe);
+$expcn = explode('_',$pxe['cn']);
+$name = array_slice($expcn,1);
+$pxecn = implode('_',$name);
+
+
+
+
+# Bootmenü Einträge
+$menuentries = get_menuentries($pxeDN,array("dn","menuposition","label","menulabel","menudefault","menupasswd","menuhide"));
+# print_r($menuentries); echo "<br>";
+$maxpos = count($menuentries)+1;
+
+
+################################################
+# Bootmenü Einträge
+
+$template->define_dynamic("Bootmenu", "Webseite");
+$template->assign(array("PXECN" => $pxecn,
+ "HOSTDN" => $hostdn,
+ "HOST" => $hostdnarray[0],
+ "SBMNR" => $sbmnr,
+ "MENDN" => "",
+ "MENULABEL" => "",
+ "ANZEIGE" => "Kein Bootmen&uuml; Eintrag angelegt",
+ "MEDEF" => "",
+ "MEPWD" => "",
+ "MEHIDE" => "",
+ "BGCDEF" => "",
+ "POSITION" => ""));
+foreach ($menuentries as $me){
+ $anzeige = "";
+ if ($me['label'] != "" && $me['menulabel'] == ""){$anzeige .= $me['label'];}
+ if ($me['menulabel'] != ""){$anzeige .= $me['menulabel'];}
+ if ($me['menudefault'] == 1){$medef = "<b>D</b>"; $bgcdef = "background-color:#EEDD82;";}
+ if ($me['menupasswd'] != ""){$mepwd = "<b>P</b>";}
+ if ($me['menuhide'] == 1){$mehide = "<b>H</b>"; $bgcdef = "background-color:#A0A0A0;";}
+ $template->assign(array("MENDN" => $me['dn'],
+ "ANZEIGE" => $anzeige,
+ "ANZEIGENAME" => $anzeige,
+ "POSITION" => $me['menuposition'],
+ "MEDEF" => $medef,
+ "MEPWD" => $mepwd,
+ "MEHIDE" => $mehide,
+ "BGCDEF" => $bgcdef,
+ "AUDN" => $auDN));
+ $template->parse("BOOTMENU_LIST", ".Bootmenu");
+ $medef = "";
+ $bgcdef = "";
+}
+
+
+###################################################################################
+
+include("computers_footer.inc.php");
+
+?>