[gollem] Pass common set of credentials to Gollem

Jeff Graves jeff at image-src.com
Wed Feb 19 14:48:10 PST 2003


Actually, now that I look at it...without that change in Gollem.php I
have another issue. Setting the backends.php with 'username' and
'password' params, I still get the File Manager login screen. If I
type a valid (or invalid) username/password combo I get the Horde
login screen...

Jeff Graves
Customer Support Engineer
Image Source, Inc.
10 Mill Street
Bellingham, MA 02019

jeff at image-src.com - Email
508.966.5200 X31 - Phone
508.966.5170 - Fax

-----Original Message-----
From: gollem-bounces at lists.horde.org
[mailto:gollem-bounces at lists.horde.org]On Behalf Of Jeff Graves
Sent: Wednesday, February 19, 2003 2:44 PM
To: gollem at lists.horde.org
Subject: RE: [gollem] Pass common set of credentials to Gollem


I changed backends.php to as suggested and it still won't
automatically log the user on to the FTP site. I get the File Manager
Login screen. Does it have something to do with this code in
./lib/Gollem.php:


        // Set authentication parameters.
        if (!empty($gollem['hordeauth'])) {
            $uid = Auth::getAuth();
            if ($gollem['hordeauth'] != 'full' &&
                ($pos = strpos($uid, '@')) !== false) {
                $uid = substr($uid, 0, $pos);
            }
            $gollem['params']['username'] = $uid;
            $gollem['params']['password'] =
Auth::getCredential('password');
        } else {
            foreach ($vfs->getRequiredCredentials() as $credential) {
                $gollem['params'][$credential] =
Horde::getPost($credential);
            }
        }

I tried changing the else bracket to:

            $gollem['params']['password'] =
Auth::getCredential('password');
        } elseif (empty($gollem['params']['username'])) {
            foreach ($vfs->getRequiredCredentials() as $credential) {
                $gollem['params'][$credential] =
Horde::getPost($credential);
            }
        }

Since username and password are already set but it didn't work
either...am I on the right track here?

Jeff Graves
Customer Support Engineer
Image Source, Inc.
10 Mill Street
Bellingham, MA 02019

jeff at image-src.com - Email
508.966.5200 X31 - Phone
508.966.5170 - Fax

-----Original Message-----
From: gollem-bounces at lists.horde.org
[mailto:gollem-bounces at lists.horde.org]On Behalf Of Chuck Hagenbuch
Sent: Wednesday, February 19, 2003 2:24 PM
To: gollem at lists.horde.org
Subject: Re: [gollem] Pass common set of credentials to Gollem


Quoting Jeff Graves <jeff at image-src.com>:

> $backends['hordeftp'] = array(
>     'name' => 'FTP Server',
>     'driver' => 'ftp',
>     'preferred' => '',
>     'params' => array('hostspec' => 'ftp.image-src.com',
>                   'port' => 21,
> 		      'user' => 'username',
> 		      'password' => 'password')

'username' => 'foo', not 'user'.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
must ... find ... acorns ... *thud*

--
Gollem mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: gollem-unsubscribe at lists.horde.org


--
Gollem mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: gollem-unsubscribe at lists.horde.org



More information about the gollem mailing list