[ingo] problems with hordeauth and vfs-ftp-driver

Martin Luethi horde at humbapa.ch
Fri Jan 23 06:30:04 PST 2004


hi list,

I configured my vfs-ftp-driver with one global ftp-user:

$split = explode('@', Auth::getAuth());
$backends['procmail'] = array(
    'driver' => 'vfs',
    'preferred' => '',
    'hordeauth' => false,
    'params' => array(
        'hostspec' => 'localhost',
        'procmailrc' => '/'.$split[1].'/_mail/'.$split[0].'/.procmailrc',
        'port' => 21,
        'username' => 'linux',
        'password' => '*****',
        'vfstype' => 'ftp'
    ),
    'script' => 'procmail',
    'scriptparams' => array(
        'path_style' => 'maildir'
    )
);

when I now try to activate a script the methode "setScriptActive"
(lib/Driver/vfs.php) overrides the params "username" and "password"
even with "'hordeauth' => false".

I fixed that in "lib/Driver/vfs.php" (see patch)

but I am not sure if hordeauth is meant to be "false" (what about the other
drivers?)

what do you think?


g. martin luethi
-------------- next part --------------
Index: Driver/vfs.php
===================================================================
RCS file: /repository/ingo/lib/Driver/vfs.php,v
retrieving revision 1.9
diff -u -r1.9 vfs.php
--- Driver/vfs.php	1 Jan 2004 15:15:28 -0000	1.9
+++ Driver/vfs.php	23 Jan 2004 14:04:01 -0000
@@ -46,8 +46,10 @@
         if ($this->_params['vfstype'] != 'ftp') {
             return PEAR::raiseError(_(sprintf("VFS type '%s' not yet implemented.", $this->_params['vfstype'])));
         }
-        $this->_params['username'] = $username;
-        $this->_params['password'] = $password;
+        if ($_SESSION['ingo']['backend']['hordeauth']) {
+            $this->_params['username'] = $username;
+            $this->_params['password'] = $password;
+        }
 
         require_once HORDE_LIBS . 'VFS.php';
         $vfs = &VFS::singleton($this->_params['vfstype'], $this->_params);


More information about the ingo mailing list