From 3cf2c52592ee07fa1eae555c77f3214f3e7f3c18 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Nov 2010 09:48:00 +0000 Subject: [PATCH] Added getter method for instancePassword git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20219 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_GOsaRegistration.inc | 3 +++ gosa-core/include/class_config.inc | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/gosa-core/include/class_GOsaRegistration.inc b/gosa-core/include/class_GOsaRegistration.inc index 33c3394ac..904ca664f 100644 --- a/gosa-core/include/class_GOsaRegistration.inc +++ b/gosa-core/include/class_GOsaRegistration.inc @@ -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); diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 5df8c8ef8..b872cb5d8 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -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 -- 2.30.2