I “fixed” a problem in our installation (1.6.001) with eGWOSync not being able to log-in to anything other then the default domain.
The problem is that $GLOBALS[‘egw_info’][‘user’][‘domain’] is being set in functions.inc.php based on values which are not set when the client connects via xmlrpc (see below).
I changed xml_functions.inc.php as follows to get us going:
*** 783,788 ****
— 783,789 ----
if($data[‘domain’])
{
$domain = $data[‘domain’]->scalarval();
Am I missing something or is this a bug?
Any suggestions on a recommended workaround if it is a bug?
Here’s the line that sets up the $GLOBALS[‘egw_info’][‘user’][‘domain’]:
$GLOBALS[‘egw_info’][‘user’][‘domain’] = egw_session::search_instance(
isset($_POST[‘login’]) ? $_POST[‘login’] : (isset($_SERVER[‘PHP_AUTH_USER’]) ? $_SERVER[‘PHP_AUTH_USER’] : $_SERVER[‘REMOTE_USER’]),