summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d4baae0)
raw | patch | inline | side by side (parent: d4baae0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Oct 2010 09:41:27 +0000 (09:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Oct 2010 09:41:27 +0000 (09:41 +0000) |
-Allow empy username and passwords
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20099 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20099 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_config.inc | patch | blob | history |
index 1ebe81b739ff1cf4f6a2719e29edf01bb3243825..ab656f7277f7523f43eb6861e9193ad3c9ee9710 100644 (file)
}
- 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.