Code

Updated registration process
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Nov 2010 15:44:29 +0000 (15:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Nov 2010 15:44:29 +0000 (15:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20224 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_GOsaRegistration.inc

index 2090e9deb633f02af066a6d63e0118e6d511c9e1..2c788b10202c9f0a81a845a2c07bf59445933fa9 100644 (file)
@@ -88,8 +88,9 @@ class GOsaRegistration
             return($this->isInstanceRegisteredWithServer());
         }else{
 
-            // Server is down, now check if we've an instancePassword set in our gosa.conf.             
-            return(!empty($this->config->instancePassword));
+            // Server is down, now check if we've an instancePassword set in our gosa.conf.
+            $instancePassword = $this->config->configRegistry->getPropertyValue('GOsaRegistration','instancePassword'); 
+            return(!empty($instancePassword));
         }
     }
 
@@ -110,6 +111,15 @@ class GOsaRegistration
     {
         return (array(
                     "plProperties"  => array(
+                        array(
+                            "name"          => "instancePassword",
+                            "type"          => "string",
+                            "default"       => "",
+                            "description"   => "",
+                            "check"         => "gosaProperty::isString",
+                            "migrate"       => "",
+                            "group"         => "registration",
+                            "mandatory"     => FALSE),
                         array(
                             "name"          => "askForRegistration",
                             "type"          => "integer",
@@ -119,7 +129,9 @@ class GOsaRegistration
                             "migrate"       => "",
                             "group"         => "registration",
                             "mandatory"     => FALSE),
-                        ))); 
+                        )
+                    )
+                    );
     }
 }