"; $rollen = $_SESSION['rollen']; #echo "rollen: "; print_r($rollen); echo "
"; if (!($ds = uniLdapConnect($uid,$userPassword))){ echo " Zentrales Rechner / IP Management

Es konnte keine Verbindung zum LDAP Server hergestellt werden!

"; die; } if ($auDN != ""){ # AU Daten holen $attributes = array("ou","associateddomain","maxipblock","freeipblock","cn","description"); $au_data = get_au_data($auDN,$attributes); $assocdom = $au_data[0]['associateddomain']; $au_ou = $au_data[0]['ou']; $au_cn = $au_data[0]['cn']; $au_desc = $au_data[0]['description']; $au_mipb = $au_data[0]['maxipblock']; $au_fipb = $au_data[0]['freeipblock']; # AU Domain Daten holen $domain_data = get_domain_data($auDN,array("dn")); $expAuDn = explode(",",$auDN); if ($expAuDn[1] == "ou=RIPM"){ $domDN = "ou=DNS,".$suffix; } else{$domDN = $domain_data[0]['dn']; } $domprefix = str_replace('.'.$domsuffix,'',$assocdom); # print_r($domprefix); } ?>