[gollem] gollem H4 (alpha2) hostspec config

Jan Schneider jan at horde.org
Tue Oct 11 09:47:03 UTC 2011


Please don't top-post.

Zitat von Zoltan Arpadffy <zoli at polarhome.com>:

> Zitat von Zoltan Arpadffy <zoli at polarhome.com>:
>
>> Hello,
>>
>> thank you for releasing gollem for H4.
>>
>> I was testing it during the weekend and realized that in H3 it was
>> easy to take over the SESSION variables to provide a single sign on
>> fature.
>>
>> I use IMP for authentication and later in gollem backend I reuse the
>> server name with the same creditials, like:
>>
>> $backends['ftp'] = array(
>>    'name' => 'FTP Server',
>>    'driver' => 'ftp',
>>    'preferred' => '',
>>    'hordeauth' => true,
>>    'params' => array(
>>        // The hostname/IP Address of the FTP server
>>        'hostspec' => $_SESSION['imp']['server'],
>>        // The port number of the FTP server
>>        'port' => 21,
>> ... etc
>>
>> Unfortunately, in H4 the $_SESSION['imp']['server'] does not work...
>>
>> Is there any equivalent in H4?
>
> $GLOBALS['registry']->mail->server() will get you an array with IMP's
> backend configuration.
>
> Hello,
>
> thank you for answering Jan.
>
> Unfortunatelym when I try to use  
> $GLOBALS['registry']->mail->server() I get an error: Connection to  
> FTP server failed.
>
> Obviously, the returned value is not a hostname that is expected,  
> because the explicilty hardcoded hostname works well.

I explicitly mentioned that this function returns an array with  
backend configuration.

> Could you please, tell me exatly what should go into the hostspec or  
> at least how can I debug the values passing here?

Something like:
$config = $GLOBALS['registry']->mail->server();
then use $config['hostspec'] or how ever that element is called. I  
don't know it off-hand.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the gollem mailing list