From 5bee381dd395cf28512632beeb7703bcde6c1ef8 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 28 May 2010 14:34:18 +0000 Subject: [PATCH] Added funtion to retrieve a rpc handle git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18792 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index c0ceb969c..0836bade5 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -295,6 +295,20 @@ class config { } + function getRpcHandle() + { + $server = $this->get_cfg_value('core','gosaRpcServer'); + $user = $this->get_cfg_value('core','gosaRpcUser'); + $passwd = $this->get_cfg_value('core','gosaRpcPassword'); + + $handle = new jsonRPC($server); + $handle->login($user, $password); + + //Fixme Add checks here - login successful aso. + return($handle); + } + + /*! \brief Get a LDAP link object * * This function can be used to get an ldap object, which in turn can -- 2.30.2