assign(array("RBSCN" => $rbscn,
"TFTP" => "",
"TFTPIP" => "",
"INITBOOTFILE" => "",
"TFTPKERNEL" => "",
"TFTPPXE" => "",
"TFTPCLIENTCONF" => "",
"NFS" => "",
"NFSIP" => "",
"NFSPATH" => "",
"NBD" => "",
"NBDIP" => "",
"HDN" => "",
"HN" => "",
"IP" => "",
"OFFERSELF" => $auDN,
"SELFOU" => $au_ou,
"MNR" => $mnr,
"SBMNR" => $sbmnr));
# RBS Anbieten (ausser eigene AU)
$expdn = ldap_explode_dn($auDN, 0); # Mit Merkmalen
$expdn = array_slice($expdn, 2);
$expou = ldap_explode_dn($auDN, 1); # nur Werte
$expou = array_slice($expou, 2, -3);
#print_r($expou); echo "
";
#print_r($expdn); echo "
";
for ($i=0; $idefine_dynamic("Rbsoffers", "Webseite");
foreach ($rbsoffers as $offer){
$template->assign(array("RBSOFFER" => $offer['dn'],
"RBSOFFEROU" => $offer['ou'],));
$template->parse("RBSOFFERS_LIST", ".Rbsoffers");
}
### Rechner
$hostorgroup = $exp[0];
$hosts_array = get_hosts($auDN,array("dn","hostname","ipaddress"));
$template->define_dynamic("TftpHosts", "Webseite");
$template->define_dynamic("NfsHosts", "Webseite");
$template->define_dynamic("NbdHosts", "Webseite");
foreach ($hosts_array as $item){
$template->assign(array("HDN" => $item['dn'],
"HN" => $item['hostname'],
"IP" => $item['ipaddress']));
$template->parse("TFTPHOSTS_LIST", ".TftpHosts");
$template->assign(array("HDN" => $item['dn'],
"HN" => $item['hostname'],
"IP" => $item['ipaddress']));
$template->parse("NFSHOSTS_LIST", ".NfsHosts");
$template->assign(array("HDN" => $item['dn'],
"HN" => $item['hostname'],
"IP" => $item['ipaddress']));
$template->parse("NBDHOSTS_LIST", ".NbdHosts");
}
###################################################################################
include("rbs_footer.inc.php");
?>