Code

Removed old style schema check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 May 2010 11:44:59 +0000 (11:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 May 2010 11:44:59 +0000 (11:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18683 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/index.php
gosa-core/include/class_ldap.inc

index 06fb9d3b7722da008eca5d9f83f16d6efb33892f..f8a84e87681c7fcb251b70f75773fe085504d779 100644 (file)
@@ -273,33 +273,6 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
         exit();
     }
 
-    /* Check for schema file presence */
-    if ($config->get_cfg_value("core","schemaCheck") == "true") {
-        $recursive = ($config->get_cfg_value("core","ldapFollowReferrals") == "true");
-        $tls =       ($config->get_cfg_value("core","ldapTLS") == "true");
-
-        if(!count($ldap->get_objectclasses())) {
-            msg_dialog::display(_("LDAP error"), _("Cannot obtain information about the available LDAP schema!"), ERROR_DIALOG);
-            displayLogin();
-            exit()  ;
-        }else{
-            $cfg = array();
-            $cfg['admin']     = $config->current['ADMINDN'];
-            $cfg['password']  = $config->current['ADMINPASSWORD'];
-            $cfg['connection']= $config->current['SERVER'];
-            $cfg['tls']       = $tls;
-            $str = check_schema($cfg, $config->get_cfg_value("core","rfc2307bis") == "true");
-            $checkarr = array();
-            foreach($str as $tr) {
-                if(isset($tr['IS_MUST_HAVE']) && !$tr['STATUS']) {
-                    msg_dialog::display(_("LDAP error"), _("Your LDAP setup contains old schema definitions:")."<br><br>".$tr['MSG'], ERROR_DIALOG);
-                    displayLogin();
-                    exit();
-                }
-            }
-        }
-    }
-
     /* Check for locking area */
     $ldap->cat($config->get_cfg_value("core","config"), array("dn"));
     $attrs= $ldap->fetch();
index 21fc089307554f4e25d9449088097a3e13ed8ec9..ba2dafe6db5e376595bf59764de6d1bcf6fcef87 100644 (file)
@@ -1204,13 +1204,6 @@ class LDAP{
     $objectclasses = array();
     global $config;
 
-    /* Only read schema if it is allowed */
-    if(isset($config) && preg_match("/config/i",get_class($config))){
-      if ($config->get_cfg_value("core","schemaCheck") != "true"){
-        return($objectclasses);
-      } 
-    }
-
     /* Return the cached results. */
     if(class_available('session') && session::global_is_set("LDAP_CACHE::get_objectclasses") && !$force_reload){
       $objectclasses = session::global_get("LDAP_CACHE::get_objectclasses");