diff options
Diffstat (limited to 'ldap-site-mngmt/webinterface/lib/rbs_management_functions.php')
-rw-r--r-- | ldap-site-mngmt/webinterface/lib/rbs_management_functions.php | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/ldap-site-mngmt/webinterface/lib/rbs_management_functions.php b/ldap-site-mngmt/webinterface/lib/rbs_management_functions.php index 6fd64737..71ea576f 100644 --- a/ldap-site-mngmt/webinterface/lib/rbs_management_functions.php +++ b/ldap-site-mngmt/webinterface/lib/rbs_management_functions.php @@ -195,7 +195,7 @@ function rbs_adjust_host($hostDN, $rbs){ } # Bei Ă„nderung der TFTP Server IP eines RBS-Objekts entsprechend DHCP Option next-server -# in den Hostobjekten anpassen +# in den Hostobjekten anpassen und DHCP modify time in den AUs aktualisieren function adjust_dhcpnextserver($tftpIP, $rbsDN){ global $ds, $suffix, $ldapError; @@ -224,15 +224,7 @@ function adjust_dhcpnextserver($tftpIP, $rbsDN){ } if ( count($host_au) != 0 ){ $host_au = array_unique($host_au); - $entry ['dhcpmtime'] = time(); - foreach ($host_au as $au){ - $results = ldap_mod_replace($ds,$au,$entry); - if ($results){ - #echo "<br><b>dhcpMTime</b> erfolgreich aktualisiert!<br>" ; - }else{ - echo "<br>Fehler beim Aktualisieren der <b>dhcpMTime</b>!<br>" ; - } - } + update_dhcpmtime($host_au); } } @@ -271,15 +263,7 @@ function adjust_dhcpfilename($initbootfile, $rbsDN, $type){ } if ( count($host_au) != 0 ){ $host_au = array_unique($host_au); - $entry ['dhcpmtime'] = time(); - foreach ($host_au as $au){ - $results = ldap_mod_replace($ds,$au,$entry); - if ($results){ - #echo "<br><b>dhcpMTime</b> erfolgreich aktualisiert!<br>" ; - }else{ - echo "<br>Fehler beim Aktualisieren der <b>dhcpMTime</b>!<br>" ; - } - } + update_dhcpmtime($host_au); } } |