[gollem] gollem H4 (alpha2) hostspec config

Zoltan Arpadffy zoli at polarhome.com
Sat Oct 8 11:20:46 UTC 2011


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.

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

Thank you in advance.

Regards,
Z

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.

Jan.


More information about the gollem mailing list