[gollem] php error on Auth::Getuser
Martin Lohmeier
martin at mein-horde.de
Sun Sep 11 09:08:39 PDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Orosz Tamás wrote:
> Hi all,
>
> I use Horde 3.0.5 and Gollem H3-1.0 releases. I would to prevent each user to
> see another user's home on file backend, so I set the root variable to
> Auth::getUser(), but I got this error message:
>
> Fatal error: Call to undefined function: getuser() in
> /data/www/horde/gollem/config/backends.php on line 80
>
> My backends.php is:
>
> $backends['file'] = array(
> 'name' => 'Storage',
> 'driver' => 'file',
> 'preferred' => '',
> 'hordeauth' => true,
> 'params' => array(
> // The base location under which the user home directories live.
> 'vfsroot' => '/data/www/horde/storage/',
> ),
> 'loginparams' => array(),
> 'root' => Auth::getUser(),
> 'home' => Auth::getAuth(),
> 'createhome' => true,
> // 'filter' => '^regex$',
> 'attributes' => array('type', 'name', 'download', 'modified', 'size')
> );
>
> Can somebody help me, please?
>
> Thanks,
> Thomas
Hi Thomas,
1. There is no method 'getUser' in horde's Auth Class. I think 'getAuth'
is what you are looking for (see API reference [1])
2. Your backends.php should look loke this:
$backends['file1'] = array(
'name' => 'Home',
'driver' => 'file',
'preferred' => '',
'hordeauth' => false,
'params' => array(
// The base location under which the user home directories live.
'vfsroot' => '/var/svr/mein-horde.de-ssl/vfs-horde/user/' .
Auth::getAuth() . '/',
),
'loginparams' => array(),
'root' => '/',
'home' => '/',
'createhome' => false,
// 'filter' => '^regex$',
'attributes' => array('type', 'name', 'download', 'modified', 'size')
);
$backends['file2'] = array(
'name' => 'Shared',
'driver' => 'file',
'preferred' => '',
'hordeauth' => false,
'params' => array(
// The base location under which the user home directories live.
'vfsroot' => '/var/svr/mein-horde.de-ssl/vfs-horde/share/',
),
'loginparams' => array(),
'root' => '/',
'home' => '/',
'createhome' => false,
// 'filter' => '^regex$',
'attributes' => array('type', 'name', 'download', 'modified', 'size',)
);
bye, Martin
[1] http://dev.horde.org
- --
Powered by Mac OS X
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDJFaHOvJj+wS6JuIRAnaSAJ4ihZwG+V78GJ/spe4oDkYbIHtgEQCfRcKL
Nx9KpS/aReKn/XdvhpHQZJU=
=HHI6
-----END PGP SIGNATURE-----
More information about the gollem
mailing list