From: hickert Date: Wed, 20 Oct 2010 09:41:27 +0000 (+0000) Subject: Updated rpcHandle request. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=90aa0f3525b2058cb9333d7a449d94bf26938c67;p=gosa.git Updated rpcHandle request. -Allow empy username and passwords git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20099 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 1ebe81b73..ab656f727 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -314,12 +314,12 @@ class config { } - function getRpcHandle($connectUrl="", $username="", $userPassword="", $authModeDigest=FALSE) + function getRpcHandle($connectUrl=NULL, $username=NULL, $userPassword=NULL, $authModeDigest=FALSE) { // Get conenct information, if no info was given use the default values from gosa.conf - $connectUrl = (!empty($connectUrl)) ? $connectUrl : $this->get_cfg_value('core','gosaRpcServer'); - $username = (!empty($username)) ? $username : $this->get_cfg_value('core','gosaRpcUser'); - $userPassword = (!empty($userPassword)) ? $userPassword : $this->get_cfg_value('core','gosaRpcPassword'); + $connectUrl = ($connectUrl != NULL) ? $connectUrl : $this->get_cfg_value('core','gosaRpcServer'); + $username = ($username != NULL) ? $username : $this->get_cfg_value('core','gosaRpcUser'); + $userPassword = ($userPassword != NULL) ? $userPassword : $this->get_cfg_value('core','gosaRpcPassword'); $authModeDigest = $authModeDigest; // Create jsonRPC handle on demand.