Re: Support for dynamic ftp server names, and configuring show_dotfiles

Amos Shapira <[email protected]>
Newsgroups gmane.comp.horde.gollem
Message-ID <[email protected]>
On 8/3/05, Michael M Slusarz <[email protected]> wrote:
> Quoting Amos Shapira <[email protected]>:

> You should be able to add some code to config/backends.php to do this.
> Just change the params->hostspec value to foo_function() and define
> foo_function() at the bottom of the file and write your dynamic lookup
> code there.

OK, I managed to get this function called and log the user name from
Auth::getAuth(), as a test. I suppose it can now fetch any HTTP
parameter passed from the redirecting application and return it
as the 'hostspec' string.

> 
> > 2. Pass the username and password to Gollem, to be passed
> > to the FTP server.
> 
> You mean pass it through via the URL? (e.g.
> login.php?username=foo1&password=foo2)  This will work minus the
> obvious security issues inherent with this.

I've just tried this - for testing only, I typed in the gollem url
with "username"
and "password" parameters but it didn't quite do what I would expect -
I got Gollem's login page, where the username and password
fields where filled with the values I supplied in the URL, then I had to click
"login" to log in.

I managed to get this after I told Horde that Gollem is the application which
handles authentication.

I suspect it rejected the original HTTP request because it was missing a
"Horde" HTTP request parameter (a session identifier?). Is there a way
to tell Gollem to "just take this user name and password, create a Horde
session and use the username/password to login user's home
directory"?

> michael

Thanks,

--Amos
-- 
Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.