Code

Applied patch from 'bcooksley' see #1023
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Aug 2010 15:52:28 +0000 (15:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Aug 2010 15:52:28 +0000 (15:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19489 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_config.inc

index 7c9fe51fc80b69af961f9acfb0e5f8ccd9589073..1ebe81b739ff1cf4f6a2719e29edf01bb3243825 100644 (file)
@@ -697,12 +697,15 @@ class config  {
 
         /* If no samba servers are found, look for configured sid/ridbase */
         if (count($this->data['SERVERS']['SAMBA']) == 0){
-            if (!isset($this->current["SAMBASID"]) || !isset($this->current["SAMBARIDBASE"])){
-                msg_dialog::display(_("Configuration error"), _("sambaSID and/or sambaRidBase missing in the configuration!"), ERROR_DIALOG);
+            $sambaSID = $this->get_cfg_value("core","sambaSID"); 
+            $sambaRIDBase = $this->get_cfg_value("core","sambaRidBase"); 
+            if (!isset($sambaSID) || !isset($sambaRIDBase)){ 
+                msg_dialog::display(_("Configuration error"), 
+                        _("sambaSID and/or sambaRidBase missing in the configuration!"), ERROR_DIALOG);
             } else {
                 $this->data['SERVERS']['SAMBA']['DEFAULT']= array(
-                        "SID" => $this->current["SAMBASID"],
-                        "RIDBASE" => $this->current["SAMBARIDBASE"]);
+                        "SID" => $sambaSID ,
+                        "RIDBASE" => $sambaRIDBase);
             }
         }