Re: Dynamic SMB location in gollem backend
Matthew <[email protected]> Wed, 08 Jan 2014 23:22:54 +0000
| Newsgroups | gmane.comp.horde.gollem |
|---|---|
| Message-ID | <[email protected]> |
On 08/01/14 12:12, Jan Schneider wrote: >>> 'hostspec' => 'localhost/'.$GLOBALS['registry']->getAuth(true), >>> >>> Because that info isn't there yet when this backend config gets >>> called. Any >>> ideas as to how to achieve this? >>> >>> MTIA, Matthew >>> >> >> Works for me with username: >> 'share' => $_SESSION['horde']['0auth/authId'], >> 'host' => 'localhost', > > $GLOBALS['registry']->getAuth() would be the correct way, but I wonder > if this is necessary at all. Unless you have a really strange Samba > setup, all you need to do is to create a "homes" share (or how ever > you have named the personal user shares). Folks, many thanks for the replies on this, much appreciated. I think I do have a slightly strange Samba setup, a 'homes' share does not work - it does specifically need to be the username. I guess its something in how Zentyal (an Ubuntu-based server distro) configures Samba. Anyway, I finally got this figured. I originally tried: 'share' => $GLOBALS['registry']->getAuth(true) Which wasn't working for me, so I guessed that getAuth perhaps wasn't ready yet when the backends.local.php was run. But as you said it should work, I checked again, and it turns out it was returning the full username - in my setup, [email protected] (required for my IMP-based auth) whereas Samba just requires my.name as a login and a share name. The weird thing was that: 'hordeauth' => true, Works just fine for actually authenticating, ie taking just the my.name part of the current login - whereas (at least in this context) getAuth wasn't. But via the Horde code I discovered I can do 'share' => $GLOBALS['registry']->getAuth('bare'), Which works as expected. While I'm here - with the ear of a horde staffer - this is my first time to install and use Horde... and it's entirely awesome - already a big hit with my users! Zentyal optionally has Zarafa as groupware but it uses it's own MTA - I like that Horde works with stock dovecot/sieve etc and yet has all the fancy groupware stuff that folk want - and also is so hugely configurable. It's a great package and I'll be advocating it; many thanks for the work put into it. Matthew -- gollem mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]