summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/computers/host_add.php
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/computers/host_add.php')
-rw-r--r--ldap-site-mngmt/webinterface/computers/host_add.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/ldap-site-mngmt/webinterface/computers/host_add.php b/ldap-site-mngmt/webinterface/computers/host_add.php
index bde6f26a..0f01fe75 100644
--- a/ldap-site-mngmt/webinterface/computers/host_add.php
+++ b/ldap-site-mngmt/webinterface/computers/host_add.php
@@ -5,7 +5,7 @@ $hostname = $_POST['hostname'];
$hostdesc = $_POST['hostdesc'];
$mac = $_POST['mac'];
$ip = $_POST['ip'];
-
+$dhcp = $_POST['dhcpcont'];
$hostname = htmlentities($hostname);
$hostdesc = htmlentities($hostdesc);
@@ -67,13 +67,15 @@ if ( $hostname != ""){
$hostDN = "HostName=".$hostname.",cn=computers,".$auDN;
# print_r($hostDN); echo "<br>";
- if (add_host($hostDN,$hostname,$hostdesc,$mac,$ip,$atts)){
+ if (add_host($hostDN,$hostname,$hostdesc,$mac,$ip,$atts,$dhcp)){
$mesg .= "<br>Neuer Rechner erfolgreich angelegt<br>";
}
else{
$mesg .= "<br>Fehler beim anlegen des Rechners!<br>";
}
+ # DHCP
+
$url = 'hostoverview.php';
}
}