From b9d2bd338f68aace2eb9e999896a787014ac7e46 Mon Sep 17 00:00:00 2001 From: Tarik Gasmi Date: Thu, 7 Jun 2007 17:49:06 +0000 Subject: Aktuelle Version LDAP-Site-Mngmt Webinterface git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1156 95ad53e4-c205-0410-b2fa-d234c58c8868 --- ldap-site-mngmt/webinterface/computers/host_change.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'ldap-site-mngmt/webinterface/computers/host_change.php') 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
"; # 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