summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 90aa0f3)
raw | patch | inline | side by side (parent: 90aa0f3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Oct 2010 09:44:15 +0000 (09:44 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Oct 2010 09:44:15 +0000 (09:44 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20100 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_config.inc | patch | blob | history |
index ab656f7277f7523f43eb6861e9193ad3c9ee9710..fa421a05c69d61778b21601155bcfd23bc4c0ad9 100644 (file)
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 = ($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');
+ $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.
if(!isset($this->jsonRPChandle[$connectUrl][$username]) || !$this->jsonRPChandle[$connectUrl][$username]){
$this->jsonRPChandle[$connectUrl][$username] = new jsonRPC($this, $connectUrl, $username, $userPassword, $authModeDigest);