From: hickert Date: Fri, 28 May 2010 14:34:18 +0000 (+0000) Subject: Added funtion to retrieve a rpc handle X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5bee381dd395cf28512632beeb7703bcde6c1ef8;p=gosa.git Added funtion to retrieve a rpc handle git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18792 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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