From c7b4e4a81d7f38c0f1f927f6804ef281c4f67dcd Mon Sep 17 00:00:00 2001
From: Tarik Gasmi
Date: Tue, 31 Jul 2007 07:29:53 +0000
Subject: Actualized LDAP SiteManagement Code - Web Interface, DHCP
Generationscript
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1284 95ad53e4-c205-0410-b2fa-d234c58c8868
---
ldap-site-mngmt/webinterface/computers/dhcphost_change.php | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
(limited to 'ldap-site-mngmt/webinterface/computers/dhcphost_change.php')
diff --git a/ldap-site-mngmt/webinterface/computers/dhcphost_change.php b/ldap-site-mngmt/webinterface/computers/dhcphost_change.php
index 96bbb715..a35a29cb 100644
--- a/ldap-site-mngmt/webinterface/computers/dhcphost_change.php
+++ b/ldap-site-mngmt/webinterface/computers/dhcphost_change.php
@@ -27,7 +27,7 @@ echo "Host DN:"; print_r($hostDN); echo "
";
echo "submenuNR:"; print_r($sbmnr); echo "
";*/
-$seconds = 40;
+$seconds = 2;
$url = 'dhcphost.php?dn='.$hostDN.'&sbmnr='.$sbmnr;
echo "
@@ -53,6 +53,7 @@ if ($dhcp != "none" && $dhcp != $olddhcp){
if ($olddhcp != ""){
echo "DHCP replace "; print_r($olddhcp); echo " with "; print_r($entrydhcp); echo "
";
if ($result = ldap_mod_replace($ds,$hostDN,$entrydhcp)){
+ update_dhcpmtime();
$mesg = "Rechner erfolgreich in DHCP ".$dhcpcn." [Abt.: ".$dhcpau."] angemeldet
";
}else{
$mesg = "Fehler beim ändern des DHCP Dienstes zu ".$dhcpcn."!
";
@@ -63,6 +64,7 @@ if ($dhcp != "none" && $dhcp != $olddhcp){
}
echo "DHCP add "; print_r($entrydhcp); echo "
";
if ($result = ldap_mod_add($ds,$hostDN,$entrydhcp)){
+ update_dhcpmtime();
$mesg = "Rechner erfolgreich in DHCP ".$dhcpcn." [Abt.: ".$dhcpau."] angemeldet
";
}else{
$mesg = "Fehler beim ändern des DHCP Dienstes zu ".$dhcpcn."!
";
@@ -78,6 +80,7 @@ if ($dhcp != "none" && $dhcp != $olddhcp){
#}
echo "DHCP delete "; echo "
";
if ($result = ldap_mod_del($ds,$hostDN,$entrydhcp)){
+ update_dhcpmtime();
$mesg = "Rechner erfolgreich aus DHCP gelöscht
";
}else{
$mesg = "Fehler beim löschen aus DHCP Dienst!
";
@@ -96,6 +99,7 @@ if ($fixedaddress != "none" && $fixedaddress != $oldfixedaddress){
if ($oldfixedaddress != ""){
echo "Fixed Address ändern"; echo "
";
if ($result = ldap_mod_replace($ds,$hostDN,$entryfixadd)){
+ update_dhcpmtime();
$mesg = "Option Fixed-Address erfolgreich auf ".$fixedaddress." geändert
";
}else{
$mesg = "Fehler beim ändern der Option Fixed-Address auf ".$fixedaddress."!
";
@@ -103,6 +107,7 @@ if ($fixedaddress != "none" && $fixedaddress != $oldfixedaddress){
}else{
echo "Fixed Address auf IP Adresse setzen"; echo "
";
if ($result = ldap_mod_add($ds,$hostDN,$entryfixadd)){
+ update_dhcpmtime();
$mesg = "Option Fixed-Address erfolgreich auf ".$fixedaddress." gesetzt
";
}else{
$mesg = "Fehler beim setzen der Option Fixed-Address auf ".$fixedaddress."!
";
@@ -112,6 +117,7 @@ if ($fixedaddress != "none" && $fixedaddress != $oldfixedaddress){
$entryfixadd ['dhcpoptfixed-address'] = array();
echo "No Fixed Address"; echo "
";
if ($result = ldap_mod_del($ds,$hostDN,$entryfixadd)){
+ update_dhcpmtime();
$mesg = "Option Fixed-Address erfolgreich gelöscht
";
}else{
$mesg = "Fehler beim löschen der Option Fixed-Address!
";
--
cgit v1.2.3-55-g7522