Code

Added getter method for instancePassword
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Nov 2010 09:48:00 +0000 (09:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Nov 2010 09:48:00 +0000 (09:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20219 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_GOsaRegistration.inc
gosa-core/include/class_config.inc

index 33c3394ac5d83d052a1018abdf0259eaddbd2395..904ca664f0ac367e19a7fa72168146051c70a747 100644 (file)
@@ -45,6 +45,9 @@ class GOsaRegistration
 
     function registrationNotWanted()
     {
+        // While we are registered this will always be FALSE.
+        if($this->isInstanceRegistered()) return(FALSE);
+
         // Check if the registration process was postponed or completely(>=0) canceled (-1)
         $date = $this->config->configRegistry->getPropertyValue('GOsaRegistration','askForRegistration');
         return($date == -1);
index 5df8c8ef85976088d2bc713834ba584df0e0ad0b..b872cb5d828d35449dbfec18597b26e4e55f14a0 100644 (file)
@@ -102,6 +102,12 @@ class config  {
     }    
 
 
+    function getInstancePassword()
+    {
+        return($this->instancePassword);
+    }    
+
+
     /*! \brief Check and reload the configuration
      * 
      * This function checks if the configuration has changed, since it was