Re: gollem H4 (alpha2) hostspec config
Jan Schneider <[email protected]> Tue, 11 Oct 2011 11:47:03 +0200
| Newsgroups | gmane.comp.horde.gollem |
|---|---|
| Message-ID | <[email protected]> |
Please don't top-post. Zitat von Zoltan Arpadffy <[email protected]>: > 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/ -- Gollem mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]