From 12183ece8e4cb1bb81072a72f696572c8b3a07ee Mon Sep 17 00:00:00 2001 From: Tarik Gasmi Date: Tue, 18 Sep 2007 15:18:38 +0000 Subject: ldap-site-mngmt: actualized WebIF and DHCPConfig Generationscript git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1340 95ad53e4-c205-0410-b2fa-d234c58c8868 --- .../webinterface/standard_header.inc.php | 42 ++++++++++++---------- 1 file changed, 23 insertions(+), 19 deletions(-) (limited to 'ldap-site-mngmt/webinterface/standard_header.inc.php') diff --git a/ldap-site-mngmt/webinterface/standard_header.inc.php b/ldap-site-mngmt/webinterface/standard_header.inc.php index 62e51f9b..f86de2a0 100644 --- a/ldap-site-mngmt/webinterface/standard_header.inc.php +++ b/ldap-site-mngmt/webinterface/standard_header.inc.php @@ -38,28 +38,32 @@ if (!($ds = uniLdapConnect($uid,$userPassword))){ "; die; -} +} -# 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']; +if ($auDN != ""){ -# AU Domain Daten holen -$domain_data = get_domain_data($auDN,array("dn")); + # 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']; echo "
";} + + $domprefix = str_replace('.'.$domsuffix,'',$assocdom); + # print_r($domprefix); -$expAuDn = explode(",",$auDN); -if ($expAuDn[1] == "ou=RIPM"){ - $domDN = "ou=DNS,".$suffix; } -else{$domDN = $domain_data[0]['dn']; echo "
";} - -$domprefix = str_replace('.'.$domsuffix,'',$assocdom); -# print_r($domprefix); ?> \ No newline at end of file -- cgit v1.2.3-55-g7522