Re: Multiple Group related Samba backends

Jan Schneider <[email protected]>
Newsgroups gmane.comp.horde.gollem
Message-ID <[email protected]>
Zitat von Murray Trainer <[email protected]>:

> Hi All,
>
> Our LDAP users home Samba shares are accessible via Gollem - that works
> fine.  We also have some group Samba shares that only members of the
> LDAP group can access.  I have setup Horde to access groups via LDAP and
> that works fine.  I have setup a smb backend for one of the group Samba
> shares and only members of the group can access it.  That's all great
> but we don't want anyone who is not a member of the group to even see
> the name of the share.  Any ideas how to achieve this?

require_once 'Horde/Group.php';
$groups = &Group::singleton();
if ($groups->userIsInGroup(Auth::getAuth(), $group_dn)) {
     // Put share definition for $group_dn here.
}

(untested)

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/

-- 
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.