From: hickert Date: Tue, 17 May 2005 06:06:23 +0000 (+0000) Subject: Some Errors fixed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c729b3c5b3716a50efe3dc31bbed2654063bcd57;p=gosa.git Some Errors fixed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@218 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/setup_checks.inc b/include/setup_checks.inc index b7640a2ed..58a0728dc 100644 --- a/include/setup_checks.inc +++ b/include/setup_checks.inc @@ -762,24 +762,24 @@ function show_setup_page4($withoutput = true) // This values also represent out default values # first try to get $base - if(!$ds = ldap_connect (validate($uri))) + if(!$ds = @ldap_connect (validate($uri))) { $fault = true; } - elseif(!ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) + elseif(!@ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) { $fault = true; } - elseif(! $r = ldap_bind ($ds)) + elseif(! $r = @ldap_bind ($ds)) { $fault = true; } else { - $sr= ldap_search ($ds, "", "objectClass=*", array("namingContexts")); + $sr= @ldap_search ($ds, "", "objectClass=*", array("namingContexts")); - $attr= ldap_get_entries($ds,$sr); + $attr= @ldap_get_entries($ds,$sr); if((empty($attr))) { $base= "dc=example,dc=net"; @@ -855,10 +855,8 @@ function show_setup_page4($withoutput = true) { $ldap= new LDAP($_SESSION['ldapconf']['admin'], $_SESSION['ldapconf']['password'], $_SESSION['ldapconf']['uri']); - if($withoutput){ $m= schema_check($_SESSION['ldapconf']['uri'], $_SESSION['ldapconf']['admin'], $_SESSION['ldapconf']['password']); $_SESSION['classes']= $m; - } if ($ldap->error != "Success") { @@ -905,7 +903,8 @@ function show_setup_page5($withoutput=true) // get smarty $smarty = get_smarty(); - $classes = $_SESSION['classes']; + if(isset($_SESSION['classes'])) + $classes = $_SESSION['classes']; $info= posix_getgrgid(posix_getgid()); $smarty->assign ("webgroup", $info['name']); @@ -958,7 +957,10 @@ function create_user_for_setup($withoutput=true) $ldapconf = $_SESSION['ldapconf']; $smarty = get_smarty(); - $classes= $_SESSION['classes']; + + + if(isset($_SESSION['classes'])) + $classes= $_SESSION['classes']; // Everything runns perfect ... // So we do a last test on this page